function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
satya chikkalasatya chikkala 

Force.com Migration Tool to deploy managed packages without using AppExchange

Hi,

I am trying to install a managed package using the Migration tool and ANT scripts. However, I am able to do it in two steps 

1- Install a managed package in dev environment
2- Retrieve the package into the local system via ANT
3- Connect to another dev environment and deploy the package from local system via ANT

Is there any way where I can directly use ANT scripts to install the managed package into Salesforce?

Regards,
Satya
 
gokuro72gokuro72
I would also like to be able to deploy a new version for example of a managed package via Migration tool
gokuro72gokuro72
also looking to deploy managed packages to SFDC orgs using ANT 
gokuro72gokuro72
found this, have not tried yet, will report my findings

https://andyinthecloud.com/2013/06/23/look-ma-no-hands-automating-install-and-uninstall-of-packages/
gokuro72gokuro72
below example file will install the bizible2 package version number 6.9

\src\installedPackages\bizible2.installedPackage
 
<?xml version="1.0" encoding="UTF-8"?>
  <InstalledPackage xmlns="http://soap.sforce.com/2006/04/metadata">
    <versionNumber>6.9</versionNumber>
</InstalledPackage>