johngraumann
Posts: 11
Joined: Fri Jan 04, 2008 12:14 am

Conditional prerequisite command line (for silent install)

Hello,

I would like to be able to pass in different command line parameters to my prerequisites depending on whether or not the installation was run with the "/exebasicui" flag. My goal is to have a single installer that can be run silent or non-silent, depending on the command line parameters. Currently I can get everything to work except the prerequisites.

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Conditional prerequisite command line (for silent instal

Hello,

The "Install Command Lines" field supports Formatted type only if the prerequisites are feature-based.
In this case, you could use UILevel property in a custom action for example to condition some properties referenced in those fields.
(e.g. If UILevel indicates a silent installation, set all referenced properties values to the prerequisites' silent command lines.)

If your prerequisites are not feature-based then I'm afraid there's nothing you can do to change their command lines at install time.

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

Return to “Common Problems”