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!

tquick2
Posts: 1
Joined: Fri Dec 27, 2013 5:26 pm

prevent prerequisites based on launch condition

I'm still learning my way around Advanced Installer after using IS for many years.

I need to detect that a third party application with a certain minimum version is installed and if not, avoid installing the prerequisites. My application is a .Net 4.0 application and the 4.0 framework is a prerequisite for my application and a few custom actions are required to register my product during the installation. The custom actions are being built using WiX toolset and calling a function from an attached native dll. One of the certification requirements from the third party is that my application does not install anything if their application is not installed or their application's version is too old to work with my application.

The test for determining that the third party app is present requires instantiating a COM object and if that succeeds then calling a function from the COM object to determine that the minimum version is present. There is no other supported method for determining whether the other app is installed.

Is there a way to prevent the prerequisites from installing if the third party application version validation fails?

Regards,
Tony
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: prevent prerequisites based on launch condition

Hello Tony and welcome to Advanced Installer forums,

In order to achieve that, you can edit the Prerequisite Install Conditions Tab of the related Prerequisite.
The Install Conditions section allows you to condition the prerequisite based on custom searches. These searches will also be used to verify if the prerequisite was installed correctly. You can create multiple searches for the same prerequisite.
The Prerequisite Search Dialog allows you to add a new search to the installation conditions of a prerequisite or edit an existing one.

You can also take a look on the Add Prerequisite article which may be useful to you.

Please let us know if you need any help.

Happy Holidays,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”