Do not remove feature from previous installation - Advanced Installer Community
RichRowan
Posts: 6
Joined: Tue Apr 08, 2014 2:42 pm

Do not remove feature from previous installation

Hi,

I'm trying to stop my installer from uninstalling a feature from a previous version installation if it has been unselected in the Custom dialog page. I'm using a test installer to try and get the correct functionality.

Currently our installer has a custom upgrade rule to "Find and remove products" and in Upgrade features has "CustomFeature", also Migrate Features is checked. CustomFeature is added through the Custom Dialog page in version 1.0.

However the functionality I want to add is that if the user uses: Typical, or unselects CustomFeature in the Custom dialog page, when installing version 2.0, then it won't uninstall the CustomFeature from version 1.0.

Is this possible to do?

Is there a property I can set to remove CustomFeature from the REMOVE argument for 1.0 uninstall?
Or
Would I have to just 'detect' old versions, and then call the uninstall for previous version manually if CustomFeature is installed in 2.0?

I hope I've explained this clearly.

Using AI version 7.3.1. (In process of getting upgrade to 11.0 approved)

Rich
Attachments
UpgradeTest.zip
2 aip files
(5.11 KiB) Downloaded 223 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Do not remove feature from previous installation

Hello Rich and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm afraid I don't fully understand what you are trying to achieve. Can you please give us a more detailed (maybe exemplify) description of the scenario you are trying to implement? Do you want that all files under the "CustomFeature" from v1 not to be removed by the upgrade installation? If so, you can take a look on our "Prevent Repair or Uninstall" article which should be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”