PDA

View Full Version : Upgrading from IS11.5 to IS2014 and am having problems with the uninstall code



shaight
01-13-2015, 09:59 AM
Hi,

I am trying to upgrade my installs from IS11.5 to IS2014 and am having problems with the uninstall code.

In IS11.5, I have functions OnBegin, OnMoving and OnMoved. For IS2014 I made Custom Actions MyOnBegin, MyOnMoving and MyOnMoved. I pass in the value of SUPPORTDIR using CustomActionData. That all works fine.

The problem is that the uninstall code I have in MyOnMoving and MyOnMoved is getting executed during the install.

In IS11.5 I have this working code:
if (MsiEvaluateCondition(ISMSI_HANDLE,"REMOVE=\"ALL\"")) then
// uninstall only code
Endif;

However, in IS2014, this condition ALWAYS evaluates to ‘true’, causing the uninstall code to be executed during the install.:mad:

I have tried at least 20 variations of that condition, and scanned the internet from start to finish to find a solution and still can’t get it to work.

Can you please tell me what I can do to separate the uninstall code?

Thanks