JTrax
Posts: 12
Joined: Wed May 04, 2016 7:13 pm

Command line params to installer

Maybe this is covered elsewhere but I did not readily see it. I want to run the setup with an optional command line param for debugging. If the param DEBUGMODE passed in true then the installer should do some advanced logging and my scripts can read the property and do the same advanced logging (I would code that in). can someone point me in the direction of doing that please?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Command line params to installer

Hello,

The setup package can create a log during installation. Launch the setup package with the appropriate switches depending on the information you need about the installation. For details, please check the How do I create an installation log? article.

Note that you can set a property through the command line. Based on the value of the related property you can increase the verbosity of your custom actions. This type of properties can be set through the command line like this: PROPERTY="value".

Sample command line:

Code: Select all

msiexec.exe /i "C:\Example.msi" MY_PROP="myValue"
Let me know if that helped, otherwise please give me more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JTrax
Posts: 12
Joined: Wed May 04, 2016 7:13 pm

Re: Command line params to installer

PERFECT! That is exactly what I was looking for!! Thanks!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Command line params to installer

You're welcome,

If you have other questions, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”