如何确保我的WinForm应用程序的部署将覆盖旧版本 [英] How do I ensure my winform application deployment overwrites old versions
本文介绍了如何确保我的WinForm应用程序的部署将覆盖旧版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个MSI安装包从VS2008部署项目我的项目。但我有问题,当涉及到升级安装,已安装的版本不被覆盖。我如何确保以前安装的版本会被覆盖?
解决方案
- 在Visual Studio中选择安装项目在Solution Explorer
- 中打开属性窗口
- 不要右键点击并选择属性。
- 选择查看 - 属性窗口
- 设置RemovePreviousVersions为true
- 增加版本到一个更高的数字
- 选择是在即将到来的消息框
如果您构建和部署这个新的设置,使用旧版本号的设置将被删除。
重要:安装的版本号是从你的应用程序或程序集版本号完全独立
I have created a msi install package for my project from the VS2008 deployment project. but I am having problems when it comes to upgrading installs, The previously installed version does not get overwritten. How do I ensure that previously installed versions get overwritten?
解决方案
- In Visual Studio select your Setup project within the Solution Explorer
- Open the Properties Window
- don't right click and select properties.
- select View - Properties Window
- set RemovePreviousVersions to true
- increment the version to a higher number
- select yes in the upcoming message box
If you built and deploy this new setup, a setup with an older version number will be deleted.
Important: the setup version number is completely independent from your application or assembly version number!
这篇关于如何确保我的WinForm应用程序的部署将覆盖旧版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文