Checking for a product during a dialog - Advanced Installer Community

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!

vulgrin
Posts: 40
Joined: Fri Jan 11, 2008 9:49 pm

Checking for a product during a dialog

I'm trying to build a custom dialog and I can't quite get my head around conditions. I have a piece of text that I want to display to the user if an optional prerequisite is not installed. (in this case SQLExpress) The user has the option of using an external SQL Database if they don't want to use SQL Express.

How do I go about creating a condition to reflect that? Is there way to add a product code check for the SQL Express that is similar to the perquisites product code check?

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Checking for a product during a dialog

Hi,

For this you can use a search which tries to find a file or registry entry created only by the SQL Express installation. The property of the search can then be used in your custom dialog like this:

RESULT_PROPERTY means that the search was successful and SQL Express is installed (the search is named "RESULT_PROPERTY")
NOT RESULT_PROPERTY means that the search was not successful and SQL Express is not present on the machine (the search is named "RESULT_PROPERTY")

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”