SteveA
Posts: 22
Joined: Fri Jan 30, 2009 2:36 am

Uninstall custom action runs during reinstall

I have a .exe custom action that runs during InstallExecuteSequence --> Uninstall. This .exe calls my site and asks for feedback on why the application is being uninstalled. This action executes fine during uninstalls, but it also executes when the user installs a newer version of the application that I've created by bumping the version number in Advanced Installer and letting Advanced Installer create a new Product Code. I don't want the action to execute in this case since the user isn't really uninstalling the application. Is there a way to keep the custom action from executing during a reinstall?

Thanks
Steve
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Uninstall custom action runs during reinstall

Hi,

You must have to following condition :

Code: Select all

 (REMOVE="ALL" AND (NOT UPGRADINGPRODUCTCODE)) 
set in the Expression field of the Execution Condition group from the Custom Action Properties page. This condition will run the custom action if an uninstall is performed and no upgrade will take place. If an upgrade is performed the condition is false so the custom action will not run.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SteveA
Posts: 22
Joined: Fri Jan 30, 2009 2:36 am

Re: Uninstall custom action runs during reinstall

Ok, but where is the "CODE: SELECT ALL" option?

Thanks
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Uninstall custom action runs during reinstall

Hi,

"CODE: SELECT ALL" is not an option from Advanced Installer.
This represents a feature of the forum to present pieces of code.
If you click “SELECT ALL” all the code written bellow will be selected, so you can copy it, if you desire.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”