cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Ratheesh_Nair
Level 2

How to prevent Uninstall disabled features

I am using Install script project, and my requirement is during upgrade i need to copy only few binaries in to my INSTALLDIR.

My project consist of Two features during upgrade i will hide the Feature1 " FeatureSetData (MEDIA, "Feature1", FEATURE_FIELD_SELECTED, FALSE, ""); " and i need to copy only Feature2.

"FeatureTransferData" will Installs features that are selected (for example, by end user selections in feature or setup type dialogs) and are currently not installed. How can i prevent uninstalling the Feature that are not selected from my INSTALLDIR?.

In my case Feature1 in my INSTALLDIR should not be uninstalled only Feature2 should be replaced with new one.
Labels (1)
0 Kudos
(1) Reply
tsnelson1
Level 3

If the old Feature2 is the same as the new Feature2 (same object GUID), if you have it selected, it should properly differentiate and component/file differences, and make appropriate replacements. The issue you are having is the Feature2 was unselected for install, which is the equivalent of uninstalling the feature.
0 Kudos