Marin
Marin

Reputation: 1321

MSI run after install WITH command arguments

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

Answers (1)

Manushin Igor
Manushin Igor

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

Related Questions