Run batch file in Windows Installer Commit

后端 未结 5 988
梦如初夏
梦如初夏 2020-12-06 03:18

I am having no success in modifying a Windows Installer MSI to run a batch file after the primary output has been installed. I have searched for this and found many suggesti

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-06 04:03

    Make an EXE that makes a temporary .bat file to change to the whatever directory you want and CALL another bat file that does what you need.

    Tell the custom action to use that exe.

    The first argument to a CPP exe is the path to the exe itself. This can be used to orient yourself, and that information could be used in the making of the temporary .bat

提交回复
热议问题