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!

psf
Posts: 43
Joined: Wed Jun 04, 2014 11:00 am

create launch condition based on registry value?

Is it possible in AI 11.4.1 to create a launch condition, such that the installation will only proceed if a registry entry is present and has a certain value? like in a visual studio deployment project, where you can specify a 'search target machine' action to search for a registry value and assign the resulting value to a property, which can then be used as a test in a launch condition?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: create launch condition based on registry value?

Hi,

In order to achieve what you want, you can create a custom launch condition as described in the second part of the Set launch conditions tutorial.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psf
Posts: 43
Joined: Wed Jun 04, 2014 11:00 am

Re: create launch condition based on registry value?

Thanks. I have created a registry search condition ok. But my next problem is testing that the value, which is of type REG_DWORD, has a specific numeric value. ie I want to check if my registry entry TEST (associated with property name PSF, has value 4 say. I have set the condition to be PSF=4 ,which validates ok in the condition edit control (and which displayed PSF as being one of the available properties) , but the check always seems to fail at install time - the description associated with the condition is displayed in a message box, even though the associated reg entry has that value. Have I got something wrong in the syntax ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: create launch condition based on registry value?

Hi,

When a "REG_DWORD" registry entry is searched, its value is returned with a "#" character in front of it. So, can you test the following condition and see if it works: PSF="#4" ?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psf
Posts: 43
Joined: Wed Jun 04, 2014 11:00 am

Re: create launch condition based on registry value?

Thanks for your help; that worked.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: create launch condition based on registry value?

You're welcome. Glad to help.

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

Return to “Common Problems”