简体   繁体   English

安装程序项目2017不删除安装程序项目2015的先前版本

[英]Setup project 2017 not removing previous version of setup project 2015

So, i have been using setup project 2015 for Visual studio and it has been working fine. 因此,我一直在使用Visual Studio的安装项目2015,并且运行良好。 It installs my application and removes older versions. 它会安装我的应用程序并删除较旧的版本。

I recently decided to start using Visual Studio 2017, which is incompatible with setup project 2015. So, i upgraded to Setup project 2017, Added a new setup project to my solution and used all the same settings from the 2015 one. 我最近决定开始使用与安装项目2015不兼容的Visual Studio2017。因此,我升级到了安装项目2017,向我的解决方案中添加了一个新的安装项目,并使用了与2015相同的所有设置。

Although, when i install my application, it removes previous versions of the 2017 installer, not the 2015. So if you install my application with the 2015 msi, and then with the 2017 msi, you will have 1 version in your control panel(the newest one), but if you launch the application it's the old 2015 MSI version. 虽然,当我安装我的应用程序时,它会删除2017年安装程序的早期版本,而不是2015年。因此,如果先使用2015年的msi安装我的应用程序,然后再使用2017年的msi安装,则控制面板中将有1个版本(最新版本),但是如果您启动该应用程序,则它是旧的2015 MSI版本。

Copying the UpgradeCode to the 2017 installer also didn't work UpgradeCode复制到2017安装程序也不起作用

Any solution to this? 有什么解决办法吗? :/ (It's not a RemovePreviousVersions = true issue or anything. :/(这不是RemovePreviousVersions = true问题或其他任何问题。

Edit: it also goes from 16MB to 10MB(control panel), but if i manually remove the old version and install the new version, it's 16mb in size 编辑:它也从16MB变为10MB(控制面板),但是如果我手动删除旧版本并安装新版本,则大小为16MB

BackwardCompatibleIDGeneration设置为true对我有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM