开发者

How do we include a batch file in a msi installer which should run every time the msi is installed?

开发者 https://www.devze.com 2023-01-02 15:53 出处:网络
Wow do we include a batch file in a msi installer which should run every time the msi is installed?开发者_开发百科I\'m not sure but it might work if you create a custom action to execute cmd.exe and h

Wow do we include a batch file in a msi installer which should run every time the msi is installed?开发者_开发百科


I'm not sure but it might work if you create a custom action to execute cmd.exe and have the path and name of the batch file as a parameter.
Otherwise you can create a custom action that contains a vbscript file that executes the .bat file (or possibly you can use a vbscript instead of a bat file).

Just be aware that I've heard that some antivirus programs can get a bit nervous if you include scripts in your msi and might make the install fail.

0

精彩评论

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

关注公众号