Visual Studio Installer > How To Launch App at End of Installer

前端 未结 6 915
再見小時候
再見小時候 2020-11-29 17:59

This is probably a stupid question and my Googling just is not functioning today.

I have an application I added a Visual Studio Installer > Setup Wizard project to.

6条回答
  •  清酒与你
    2020-11-29 18:30

    Warning: The application will end up running as a high privilege account, which has security and user experience implications.

    To run any application after the installation is complete,

    1. Right-click on your setup project, click on Custom Actions.
    2. Then right-click on Commit, Add Custom Action, and choose the file you would like to run. (Note that it has to be in your application folder already, which shouldn't be a problem in your case since you are running your program anyway.
    3. Simply choose the output of your project.
    4. Then, click on this added .exe, and change InstallerClass to false. This is crucial because it will look for an installer program otherwise.
    5. You could even pass parameters to your .exe by adding them to the Arguments property

提交回复
热议问题