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!

octavioh
Posts: 4
Joined: Thu Aug 14, 2008 11:34 am

Conditional installation of prereqs

Hi,

My install offers several types of installations, and different types of installations have different prerequisites. I have a custom dialog where the users select the desired installation type. Can I show the prerequisites dialog AFTER that selection has been done? Also, I don't see the way to use properties in order to indicate the conditional installation of a prereq; only searches, registry keys and so on.

TIA, regards,

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

Re: Conditional installation of prereqs

Hi,
I have a custom dialog where the users select the desired installation type. Can I show the prerequisites dialog AFTER that selection has been done?
I'm afraid that this is not supported by Advanced Installer. The prerequisites are installed by the EXE bootstrapper, therefore they are launched before the main package runs.
I don't see the way to use properties in order to indicate the conditional installation of a prereq; only searches, registry keys and so on.
Please note that the installer properties are available only during the main installation. Since the prerequisites are launched by an EXE bootstrapper, the Windows Installer process has not started yet, therefore the properties cannot be accessed. Also, a prerequisite uses its detection criteria to determine if it will run or not.

I'm afraid that what you need is not supported by Windows Installer or Advanced Installer. However, you can try this:
- in the Media page create a build for each installation type
- in the "Prerequisites" page configure the builds in which the prerequisites are included
- after you build the project, you will have an installation package (with different prerequisites) for each installation type
- create a custom EXE which allows the user to select the installation type
- based on the option chosen by the user the EXE should launch a specific package

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

Return to “Common Problems”