Launch after install, with no UI?

前端 未结 4 759
灰色年华
灰色年华 2020-12-31 04:41

How do I launch my application after install with no UI (or in quiet mode)? Thanks!


I had a installer with UI which has an option to run after install. Now I w

4条回答
  •  渐次进展
    2020-12-31 05:32

    I would assume that you are launching your app from a custom action, which is triggered through a property bound to the checkbox. If that is the case, you can try specifying that property as a command line argument to setup.exe. Say, if your custom action is bound to the MSI property LAUNCH_NEW_VERSION, you can call setup.exe like this:

    setup.exe /q LAUNCH_NEW_VERSION=1
    

    The standard setup bootstrapper should pass that property/value to the MSI engine. If it doesn't, you might consider invoking the .msi directly instead of calling the bootstrapper exe to run your installer.

提交回复
热议问题