Pass command line to prerequisites - 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!

BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

Pass command line to prerequisites

Hi,

Is there any way to pass the command line as given to the bootstrapper .exe, in its entirety, to a bundled prerequisite?

Thanks,

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

Re: Pass command line to prerequisites

Hi,

This is only possible if your prerequisite is feature based. You can define a public property and use it in the command line field of the prerequisite( double click on it in the Prerequisite Page ) like this:

Code: Select all

[YOUR_PROPERTY]
Then you can set the property when executing the .EXE from the command line like it is described in this article. Something like:

Code: Select all

"C:\Example.exe" YOUR_PROPERTY="prerequisite_command_line"
Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”