Component Tree Cmd line parameters.

Got a problem you cannot solve? Try here.
Post Reply
Beninja
Posts: 1
Joined: Wed Sep 05, 2012 7:15 am

Component Tree Cmd line parameters.

Post by Beninja »

I have an installer that uses the component tree. I also am running it silently most of the time from a .cmd file with custom parameters. I am wondering, is there is a way to change which components are installed by changing a variable or entering a cmd?

Thanks,
Ben
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Component Tree Cmd line parameters.

Post by FrancescoT »

Dear Ben,

InstallAware permits a fully customization of command line parameters, so of course it is possible.

On our forum there are many topics about this.

Anyway, you can use a custom variable in your project that is initialized passing it from command line.

Example:

Code: Select all

Set Variable MY_VAR to $MY_VAR$
If you place the above code line at the very beginning of your script and you run your setup package as:
setup.exe MY_VAR=VALUE
your variable will initialized as VALUE.

Then in your script you can conditionally check that variable to do what you prefer.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply