VS 2013 setup project update package fails for running executable

旧巷老猫 提交于 2020-01-06 23:51:18

问题


I have created a setup project (using VS 2013) to update my existing application on desktop clients. Previously, application has already been installed with same project output package. So,

  • I have changed the setup project version
  • Product code is updated in the meantime
  • RemovePreviouVersions is checked

MSI will be delivered via Microsoft SCCM 2012 R2 and has to support silent installation.

My problem is, application has been running through all clients and setup can't replace existing executable file with an error.

Any advice would be appreciated.

More Info:

Installer also prompts a dialog during interactive mode:

The following applications are using files which the installer must update.You can either close the application and click "Try Again", click "Continue" so that the installer continues the installation, and replaces these files when your system restarts.

Same behaviour is observed when installer is launched by "Run as administrator" option.

Thanks,


回答1:


This is not an error. That dialog is a standard FilesInUse dialog prompting the user to shut down programs to avoid a reboot at the end of the install. At the risk of stating the obvious, executables that are in use cannot be replaced until the process finishes, and most users would rather shut down a program than be required to reboot. This FilesInUse dialog will be shown anytime that installer UI is enabled. If you do a fully silent install then that dialog will not be shown (because silent really means silent), and if there are in fact files that needs replacing the install will reboot at the end automatically in a fully silent install.

Other tools that generate MSIs have support for closing down running apps, but then again no user wants to suddenly find that they have lost data because an install forcibly shut down an app they were running.

Apps can integrate with the Restart Manager if they want to be informed of install-related reboots and Windows will restart them after the reboot.

Restart Manager Support

How do I add support for Restart Manager



来源:https://stackoverflow.com/questions/35220056/vs-2013-setup-project-update-package-fails-for-running-executable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!