Reputation: 1321
I'm using script at Run exe after msi installation? to add a "run application" window at the end of my install. However, i would like to pass a commandargument to the application, how can I do that?
Thank you
Upvotes: 2
Views: 1692
Reputation: 3689
If you have a property in you msi package (for example, INSTALLDIR), you may pass in as parameter using syntax: [PROPERTYNAME].
So, you should find your custom action and add into exe String list of properties (for example, "[INSTALLDIR] " "[COMMONFILESDIR64]" etc)
Run msi installer with command line: msiexec /i(or x) setup.msi /l*vx log.txt - and see the log file. msiexec will write ALL properties to this file.
Upvotes: 1