Hi,
My ultimate goal is: I would like to have the installation quit if a specific registry key doesn't exist.
I have attempted to setup a Custom Behavior --> Search with a criteria of "Registry key exists". This seems to be working correctly without any errors.
Then I added a Launch Conditions --> Custom condition that refers to the Search.
When I run the installation, if the registry key does not exist, then I get an error page that reads, "...setup ended prematurely because of an error. Your system has not been modified. To install this program at a later time, please run the installation again."
Is this the correct behavior? The "ended prematurely" wording wasn't what I was expecting. I tried to look and see if I could modify this dialog text and I didn't see this particular "fatal error" dialog box available...? In the log, it says that a fatal error has occurred:
MSI (c) (CC:FC) [08:40:12:217]: Doing action: LaunchConditions
Action 8:40:12: LaunchConditions. Evaluating launch conditions
Action start 8:40:12: LaunchConditions.
Launch Condition Description
MSI (c) (CC:FC) [08:40:16:510]: Product: AcuPort Advanced 7.00 -- Launch Condition Description
Action ended 8:40:16: LaunchConditions. Return value 3.
MSI (c) (CC:FC) [08:40:16:560]: Doing action: FatalError
Action 8:40:16: FatalError.
Action start 8:40:16: FatalError.
MSI (c) (CC:3C) [08:40:16:626]: Note: 1: 2205 2: 3: AI_ControlEx
MSI (c) (CC:3C) [08:40:16:651]: Note: 1: 2228 2: 3: AI_ControlEx 4: SELECT `Dialog_`,`Control`,`Type`,`Parent`,`Attributes`,`Data` FROM `AI_ControlEx` WHERE `Dialog_` = 'FatalError'
Action ended 8:44:10: FatalError. Return value 1.
MSI (c) (CC:FC) [08:44:10:737]: Doing action: AI_SHOW_LOG
Action 8:44:10: AI_SHOW_LOG.
Action start 8:44:10: AI_SHOW_LOG.
MSI (c) (CC:B8) [08:44:10:807]: Invoking remote custom action. DLL: C:\Users\test\AppData\Local\Temp\MSI3C04.tmp, Entrypoint: LaunchLogFile
Action ended 8:44:10: AI_SHOW_LOG. Return value 1.
MSI (c) (CC:FC) [08:44:11:004]: Doing action: FatalError
Action 8:44:11: FatalError.
Is this the correct behavior or have I set something up wrong?
FOLLOW US
Get the latest news in Application Packaging