Has anyone worked out a clever way to auto install/uninstall packages from their orgs? I know this isn't natively supported but is a real pain point for iterating.
I have soap api driven calls to update the configurations to the org, but I would like to kick off the whole process automatically!
Attribution to: jordan.baucke
Possible Suggestion/Solution #1
I know it's an older question, but I figured I'd post a solution I just finished implementing which does exactly what is asked using only standard ant + ant-contib. It's built on top of the uninstall and install package code from Andrew Fawcett. We extended it to allow setting specific versions of the package and checking if the package needs to be uninstalled (i.e. a downgrade).
https://github.com/SalesforceFoundation/Cumulus/blob/dev/build.xml
- look at the updateDependentPackages macro and deployCI target to see how we use it
https://github.com/SalesforceFoundation/Cumulus/blob/dev/lib/ant-salesforce.xml
- look at getPackageVersion and updatePackageVersion
Attribution to: Jason Lantz
Possible Suggestion/Solution #2
Jordan,
I've used webrat and / or mechanize to do this in the past.
If you'd like I can help you kick out a script to do it.
Attribution to: Kevin P
Possible Suggestion/Solution #3
I've done it in the past with a screen-scraping approach, using (separately) Selenium, Watir, and JWebUnit. Also used it for automating deployment of metadata not supported by the API (e.g. time-based workflow rules, some of those little annoying checkbox settings, common configuration clicks, etc). Watir would be my first choice if I wanted something more flexible and database-driven/powerful; Selenium if it was more of just a record-playback automation.
Attribution to: jkraybill
Possible Suggestion/Solution #4
I created an installer driven by Selenium WebDriver, which is available here: https://code.google.com/p/force-managed-package-installer/
Attribution to: Sinead Coyle
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/1948