Optionally install prerequisites (please Help) - 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!

jojoba2010
Posts: 24
Joined: Wed Nov 02, 2011 6:44 pm

Optionally install prerequisites (please Help)

Hi,
I am using Advanced Installer( version 8.3 ) and Client/Server Application. My prerequisites are these:

1. install windows installer 3.1
2. install .NET Framework 2.0
3. install SQL Express
4. install my application

How can I have an optional install. The main server will run steps 1-4 as defined above, but client installs don't need SQL Express so steps 1,2,4 would be needed. and ALL SHOULD BE IN SINGLE .aip AND EXE(OR MSI) SETUP FILE.IMEAN I WANNA SINGLE SETUP FILE BUT END USER WILL CHOOSE CLIENT or SERVER.

LIKE THIS IMAGE:
Untitled.png
Untitled.png (45.34 KiB) Viewed 2144 times
Thanks for the assistance.
Jojoba
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Optionally install prerequisites (please Help)

Hi Jojoba,

To achieve this behavior you must first specify an invalid install condition for your prerequisite (e.g. default one when adding a new prerequisite). Once you have done this, access the prerequisite's properties and enable "Skip post-install searches" flag from the Options tab. This way the prerequisite will always be marked for installation and the user can determine if it'll be installed or not.

If the prerequisite is global, the user can uncheck it in the bootstrapper's global prerequisites list shown before the main installation starts. If it's feature-based the user can enable or disable its feature in the CustomizeDlg.

Please keep in mind that this approach will not allow the installer to correctly detect if the SQL Express prerequisite already exists on the target machine.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”