Passing config file to MSI as argument and need to use it by Custom action with Silent Installation

15,233

You can pass values to your MSI by command line. This is one way to pass values straight into your MSI, another way is using a transform to modify the MSI. See this answer: Using msiexec.exe custom command lines, or using transform files.

As far as I know there is no limit to how many values you can pass by command line:

msiexec.exe /I "C:\Install.msi" /QN /L*V "C:\msilog.log" STARTAPP=1 FIREWALLRULE="Long string here"

Quick explanation of command line above:

/L*V "C:\msilog.log"= verbose logging
/QN = run completely silently
STARTAPP="1" = Your property indicating the app should be started after install 
FIREWALLRULE="Long string here" = Your firewall rule to apply via a custom action
Share:
15,233

Related videos on Youtube

Rajkumar G
Author by

Rajkumar G

Updated on July 04, 2022

Comments

  • Rajkumar G
    Rajkumar G almost 2 years

    I have created Basic MSI Project for creating installer for my project in Installshield 2014 and it is working fine. I have also created a custom action to execute my exe file while installing the application.

    Then i create a Silent Installer using (/s) command line argument. I want to pass the Config file to my MSI setup and one of my Custom Action exe file need this Config file to setup basic project setup.

    e.g

    Installer.msi /s "c:\project\config.txt"

    How to pass this config file parameter to my exe as command line argument? I have searched in google and existing questions also. I didn't get way to do this. Till now i didn't get any way to do this. Please anyone help me to do this.

    Thanks in advance.