We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

aweber
Posts: 63
Joined: Mon Jun 18, 2018 7:45 pm

uninstall cleanup but not on upgrade

It is my understanding that upgrades perform an uninstall and an install (order is selected - I see that).

Can we differentiate so that on upgrade my registry and file locations are NOT cleaned-up? They should only be cleaned-up (removed) on a true application uninstall...where a new version is not being installed.

Otherwise user preferences, etc will be deleted.

Thanks,
AJ
aweber
Posts: 63
Joined: Mon Jun 18, 2018 7:45 pm

Re: uninstall cleanup but not on upgrade

OK, So I found "Upgrade Options" hidden in the "Execution Stage Conditions" for Custom Actions...

This may have been what I was asking about. Surprised no one brought it to my attention! :)
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: uninstall cleanup but not on upgrade

Hello AJ and welcome to our forums,

Indeed, an upgrade means an uninstall of an old version of the product, if any found and then a new install of the current new product version.

In order to obtain what you want, you can follow the steps of the "Prevent Repair or Uninstall" tutorial.

Also, here is a step-by-step guidance which I hope will help you :
1) Go to "Registry" page from the "Resources" group.
2) Right click on the Registry Key you want to preserve -> "Properties".
3) Go to "Operations" tab.
4) Tick "Preserve key content" with the condition

Code: Select all

OLDPRODUCTS
In order to do this for a file / folder, follow these steps :
1) Go to "Files and Folders" page from the "Resources" group
2) Right click on a file / folder
3) Go to "Operations" tab.
4) Tick "Do not overwrite existing files" from the "Overwrite Behavior" tab with the condition

Code: Select all

OLDPRODUCTS
If you have any further questions or doubts, don't hesitate to contact us.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”