Hello,
I am using Advanced Installer 17.6 and am attempting to run my installer on Windows 10 x64. The functionality that I am expecting did work in a prior release of Advanced Installer.
I have a custom launch condition that attempts to determine if a prior version of my application is currently installed. The launch condition uses a custom action provided in a dll. If a prior version is detected a message should be displayed and the installation aborted. Rather than seeing the custom message associated with the Custom Launch Condition, the Fatal Error dialog displays. I can see in the Advanced Installer log file my custom action being called and correctly determining that a prior version exists. The return value of the custom action call is 1.
*********************************************************************
Begin CustomAction_CheckForPriorAcuityVersion
MSI (c) (84!B8) [09:46:23:598]: PROPERTY CHANGE: Deleting PRIOR_ACUITY_VER property. Its current value is ' '.
Acuity version to install: Acuity 7.30 SP3
OS is 64 bit
Registry Key: SOFTWARE\Wow6432Node\TCS Healthcare Technologies
Registry Key: SOFTWARE\Wow6432Node\TCS Healthcare Technologies found.
Sub-Key: Acuity 7.30 SP2 found.
Prior Acuity version found.
MSI (c) (84!B8) [09:46:23:602]: PROPERTY CHANGE: Modifying PRIOR_ACUITY_VER_FOUND property. Its current value is 'N'. Its new value: 'Y'.
MSI (c) (84!B8) [09:46:23:602]: PROPERTY CHANGE: Adding PRIOR_ACUITY_VER property. Its value is 'Acuity 7.30 SP2'.
End CustomAction_CheckForPriorAcuityVersion
*********************************************************************
Action ended 9:46:23: CustomAction_CheckForPriorAcuityVersion. Return value 1.
And later in the log file I see the text of the message that I am expecting to be displayed when the Launch condition runs however it has a return value of 3 which is handled as a fatal error..
Action start 9:46:23: LaunchConditions.
MSI (c) (84:EC) [09:46:23:705]: Product: Acuity 7.30 SP3 -- Acuity 7.30 SP2 is currently installed. You must first uninstall this version before Acuity 7.30 SP3 can be installed.
Action ended 9:46:23: LaunchConditions. Return value 3.
MSI (c) (84:EC) [09:46:23:706]: Doing action: FatalError
Just to be clear, the intent of the custom launch condition is to determine if a prior version of my application is installed and if so, display a message to the user and abort the installation. I am not sure what is preventing the message from being displayed to the user and subsequently causing the Fatal Error dialog to display.
I have provide a copy of the installation log file and the aip file.
Thanks,
Todd