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
Sachin_KSachin_K 

Adding fixes to installed unmanaged package

What are the different ways we can create a fix solution to already installed unmanaged package. Can we create a generic patch package which can be installed and overwrite the code of  already installed package ? or do we need to use change set. What would be the most generic approach here.

Best Answer chosen by Sachin_K
bob_buzzardbob_buzzard
You can't apply patches or upgrades to unmanaged packages - that is only supported for managed packages.  With unmanaged you have two choices:

(1) Export the data, uninstall the pacakge, install the latest version and import the data.  There could be a lot of work there depending on the complexity of the relationships between the data.
(2) Deploy the updated items via a change set, the ant migration tool or the Force.com IDE (eclipse).  This will simply overwrite the installed package with the fixed code.

I pretty much always go with the second option.

All Answers

bob_buzzardbob_buzzard
You can't apply patches or upgrades to unmanaged packages - that is only supported for managed packages.  With unmanaged you have two choices:

(1) Export the data, uninstall the pacakge, install the latest version and import the data.  There could be a lot of work there depending on the complexity of the relationships between the data.
(2) Deploy the updated items via a change set, the ant migration tool or the Force.com IDE (eclipse).  This will simply overwrite the installed package with the fixed code.

I pretty much always go with the second option.
This was selected as the best answer
Sachin_KSachin_K
Thanks for the reply Bob