Alex99
Posts: 42
Joined: Thu Feb 14, 2013 9:28 am

Uninstall CustomActions on upgrade

Hello. I use Advanced Installer v11.7 build 61774. I use upgrade by upgrade codes.
Upgrades.PNG
Upgrades.PNG (16.05 KiB) Viewed 2919 times
I have some Custom Actions on uninstall that cleans system. When I remove application from Control Panel->Programs and Features Custom Actions are executed. But when I upgrade my application they do not execute. I need they was executed. I use next condition for it:
ExecutionCondition.PNG
ExecutionCondition.PNG (6.18 KiB) Viewed 2919 times
I read http://www.advancedinstaller.com/forums ... =2&t=26076 and tried modify InstallExecuteSequence to ( Installed AND ( REMOVE = "ALL" OR AI_INSTALL_MODE = "Remove" OR UPGRADINGPRODUCTCODE)) but it didn't help.

Thanks in advance,
Alex
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall CustomActions on upgrade

Hi Alex,

The custom action should be executed during an upgrade if you check the "Upgrade" checkbox from the "Execution Stage Condition" section displayed in your second image. Can you try this and see if it works? First, make sure that you undo the modification that you did in the "InstallExecutionSequence" table.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”