问题描述
我使用的是VS2008安装包,一般的伟大工程散发我的应用程序。当我创建应用程序的新版本,我进去递增版本
财产上的安装包,并验证删除previousVersions
属性设置为True。
I distribute my application using a VS2008 install package, which normally works great. When I create new versions of the app, I go in and increment the Version
property on the install package and verify the RemovePreviousVersions
property is set to True.
这只是正常的大部分时间 - 我只是运行安装包的新版本和旧版本卸载和更新的版本来替换它。
This works just fine most of the time - I just run the install package for the newer version and the older version is uninstalled and the newer version replaces it.
不过,偶尔安装包将成功运行,但是当我启动该程序的旧版本启动。显然,旧版本中的.exe仍然是present。
However, occasionally the install package will run successfully, but when I start the program the old version starts up. Apparently the old version of the .exe is still present.
我最终不得不完全卸载的软件,并安装新版本,它始终工作,而是一种痛苦。
I end up having to completely uninstall the software and install the new version, which always works, but is a pain.
该文件是未使用,据我可以告诉和安装包并没有告诉我重新启动。
The file isn't in use as far as I can tell and the install package doesn't tell me to reboot.
任何关于什么是怎么回事的想法?
Any ideas about what's going on here?
推荐答案
没有直接回答,而是一个升级和卸载+重新安装之间的主要区别在于,任何自定义卸载步骤不叫在2K8,但都在2K5。
Not a direct answer, but the key difference between an upgrade and an uninstall+ a reinstall is that any custom uninstall steps are not called in 2k8 but are in 2k5.
这是http://stackoverflow.com/questions/370940/visual-studio-2008-service-installer-project-upgrade-issue
另外一个区别与此相关的是,在2K8,该文件获取基础上,版本信息资源升级 - 如果你的模块不具有较新的版本,他们不被替换。
The other difference related to this is that in 2k8, the files get upgraded based on the version info resource - if your modules dont have newer versions, they dont get replaced.
在某些情况下,你强名称是否也有效果,但我pretty的信心的最后一段涵盖了你所看到的问题。
In some cases whether you strong name also has effects, but I'm pretty confident the last paragraph covers the issue you're seeing.
这篇关于.NET安装包有时不完全删除previous版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!