开发者

MSI run after install WITH command arguments

开发者 https://www.devze.com 2023-02-02 02:52 出处:网络
I\'m using script at Run exe after msi installation? to add a \"run application\" window at the end of my install. However, i wo开发者_开发百科uld like to pass a commandargument to the application, ho

I'm using script at Run exe after msi installation? to add a "run application" window at the end of my install. However, i wo开发者_开发百科uld like to pass a commandargument to the application, how can I do that?

Thank you


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消