In-use files not updated by MSI-installer (Visual Studio Installer project)

后端 未结 5 715
清歌不尽
清歌不尽 2020-11-28 16:41

I\'m using the Visual Studio Installer Projects extension to build the MSI-installer for my application. However, my application is meant to be running at all times, and if

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 17:25

    According to below link

    https://social.msdn.microsoft.com/Forums/windows/en-US/0b40b367-3341-43d8-b82e-1ace546969f8/how-can-installation-stop-and-restart-existing-service-?forum=winformssetup

    "There is no good support in VS installs to stop and start services. During install, the issue is that custom actions run after everything is installed so it's too late to stop a service that you are upgrading or replacing. Yes, they have names like "BeforeInstall" but they really are not before the install."

提交回复
热议问题