开发者

Run two executable after Installation is complete

I am making an Installer using VS Setup project(using VS 2010). Everything is fine except that when I am trying to run two executable file in "Committed" event of the installer they are running before Finish/Close button of Installer is clicked.

I want these executable files to run after I have clicked Close/Finish button of the installer. i.e. whole installation i开发者_如何学Gos completed.

Is there any way to accomplish this??

Thanks in advance


This is the normal behavior. Commit actions run as part of InstallExecuteSequence, so before the finish dialog is displayed.

If you want to execute an action when pressing Finish, you need to use control events:

  • modify your MSI so the custom actions are not used by InstallUISequence or InstallExecuteSequence tables
  • for the Finish button create a published DoAction control event for each custom action

This is not supported by Visual Studio. So you can either try modifying your generated MSI with Orca or use another setup authoring tool which supports it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜