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!

vietnq254
Posts: 3
Joined: Sun May 11, 2014 8:43 pm

Pass parameters for setup file

Hello,

By default, the setup file will have some parameters such as qn/, /quite,...
Now I want to have a new parameter, e.x.: /campaign:[value]

Code: Select all

/campaign: fixed parameter
[value]: the value that can be changed
My objective is run the setup file like:

Code: Select all

> setup.exe /campaign:MyCompany
And the setup has a variable, property (or something like that) that save the value "MyCompany"

Is there any way to do that?

Thank you.
vietnq254
Posts: 3
Joined: Sun May 11, 2014 8:43 pm

Re: Pass parameters for setup file

I did it myself.

Code: Select all

setup.exe CAMPAIGN="MyCompany"
In Custom Action, I added "Set installer property"

Code: Select all

Property: PARAM_PROP
Value: [CAMPAIGN]  --creat new
Execution Stage Condition: CAMPAIGN
Great tool!

Thank you.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Pass parameters for setup file

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm glad you sorted this out. Indeed, in order to achieve what you want you can use an installer property which can be set from command line like you did:

Code: Select all

setup.exe CAMPAIGN="MyCompany"
You can also take a look on our "Msiexec" and "EXE" command lines articles which should be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”