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.
精彩评论