We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jennnn
Posts: 3
Joined: Fri Aug 31, 2012 4:25 pm

Launch Condition on Search(Registry key exists) fatal error

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?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Launch Condition on Search(Registry key exists) fatal er

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure why you are encountering this behavior. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jennnn
Posts: 3
Joined: Fri Aug 31, 2012 4:25 pm

Re: Launch Condition on Search(Registry key exists) fatal er

Thanks for your reply...I've sent both of those files.
Any information is appreciated,
Jenny
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Launch Condition on Search(Registry key exists) fatal er

Hello Jenny,

I'm afraid I misunderstood your scenario. Please keep in mind that this is the default behavior when a launch condition isn't fulfilled.

If you want to edit the "Fatal Error" dialog you need to use our "Dialog Editor" feature which is available only in an "Enterprise" or higher project type.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jennnn
Posts: 3
Joined: Fri Aug 31, 2012 4:25 pm

Re: Launch Condition on Search(Registry key exists) fatal er

Thanks...that was my question--glad to hear it is working.

Return to “Building Installers”