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!

RobLamb
Posts: 1
Joined: Wed May 16, 2007 10:57 am

Accepting command line arguments

Hi,

Simple question I'm sure.

I need to create an installer that is a .exe file that accepts 2 command line arguments. The installer is executed from a 3rd party application so I have no control over the arguments passed to the installer. At the moment the installer just opens a help page detailing the command line arguments that can be passsed. How can I accept these arguments?

Example:
My installer is named setup.exe therefore the command line would be:
"setup.exe" "[DefaultInstallPath]" "[ThirdParty.dll]"

Thanks
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can pass property values thought the command line like this: setup.exe PROPERTY_NAME=value

You can read more about command line options here:
http://msdn2.microsoft.com/en-us/library/aa367988.aspx

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”