开发者

Running custom command at Visual Studio Installer?

How to program and run a custom service installation command through the开发者_如何学Go Microsoft Visual Studio Installer? I want to execute the command during the msi installation process.


Right-click your Installer project, go to View->Custom Actions.

Now, if you'd like to execute something during the installation process, you should add a custom action to the Install section. If you want to execute something after the installation is finished, add a custom action to the Commit section.

You can execute EXEs, DLLs (make sure your Class Library inherits from the System.Configuration.Install.Installer class), and also scripts (JS and VBS). Creating Custom Action DLLs is pretty straight forward. See this MSDN walkthrough.


To execute a command during the MSI installation process, you would put the custom action in the Custom Actions section by adding into the Commit section.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜