I am trying to deploy survey force app using changeset from one sandbox to another but it is throwing an error that managed package can not be moved using change sets. What is the best approach to move it from sandbox to sandbox and sandbox to prod.

2 Answers 2


You could use the ANT based Force.com Migration Tool to automate installing the required packages. In particular, look at <installPackage>.

<project name="installdemo" default="build" basedir=".">
    <!-- Load standard properties -->
    <property file="${basedir}/build.properties"/>    
    <!-- Import macros around sf:deploy to install/uninstall packages -->
    <import file="${basedir}/lib/ant-salesforce.xml"/>
    <!-- Default target -->  
    <target name="build">     
        <!-- Install the package with namespace packagea -->
        <installPackage namespace="packagea" version="1.0" packagePassword="fred1234"
           username="${sf.username}" password="${sf.password}"/>
        <!-- Uninstall the package with namespace pacakgea -->
        <uninstallPackage namespace="packagea"
           username="${sf.username}" password="${sf.password}"/>     

That example is from Andrew Fawcett's blog post - “Look ma, no hands!” : Automating Install and Uninstall of Packages!. That post also includes an example of installing packages from Apex via the Metadata API.


As managed packages are black box of functionality/features which can not be customized(as in unmanaged packages), it would be best to install them separately on different organizations(sandboxes/dev/production instances).

  • 1
    you mean I had to deploy in each sandbox like Dev, Qa, UAT and Prod. It is too much of doing repeated task tight?, I expected the ANT tool may help in deploying the Managed Packages.
    – Suresh
    Jun 21, 2016 at 18:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .