This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to prevent Uninstall disabled features
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 26, 2013
01:45 AM
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.
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 18, 2013
09:34 AM
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.