简体   繁体   English

VisualStudio 2010安装程序项目向InstallShield无缝过渡

[英]VisualStudio 2010 setup project to InstallShield seamless transition

I just installed VS2013. 我刚刚安装了VS2013。 As there is no longer the Setup Project, I installed InstallShield LE. 由于不再存在安装项目,因此我安装了InstallShield LE。 I used integrated import wizard and hoped any newer build would automatically update older versions created with VS Setup project. 我使用了集成的导入向导,希望任何较新的版本都会自动更新使用VS安装程序项目创建的较旧版本。 Well, I used to alter the Product Version, which prompted me to alter the Product Code, and that was it. 好吧,我曾经更改过产品版本,这促使我更改了产品代码,仅此而已。 Now I thought this should work with InstallShield as well, so I updated the product version and manually generated the product code. 现在,我认为这也可以与InstallShield一起使用,因此我更新了产品版本并手动生成了产品代码。 I had the older application installed and tried to reinstall it with this new IS LE setup. 我安装了较旧的应用程序,并尝试使用此新的IS LE安装程序重新安装它。 And the result is: There are two applications installed, which have exactly the same name and path (it installed in the same directory), but different version. 结果是:安装了两个应用程序,它们的名称和路径完全相同(安装在同一目录中),但版本不同。 I can really see 2 programs with the same name in "Programs and Features". 我确实可以在“程序和功能”中看到2个同名程序。 I checked the upgrade code, it is the same for both. 我检查了升级代码,两者都相同。 What did I do wrong? 我做错了什么?

Thanks 谢谢

Check the installation type, ie per user or per machine. 检查安装类型,即每个用户或每台计算机。 It must be the same for both versions, otherwise Windows Installer will skip removing the old versions and you will end up with both versions on your machine. 两个版本必须相同,否则Windows Installer将跳过删除旧版本的操作,最终在计算机上使用两个版本。

A verbose log created when you install the new version should also be helpful, you can search for FindRelatedProducts and RemoveExistingProducts standard actions in it, to see why the old version is not removed. 在安装新版本时创建的详细日志也将有所帮助,您可以在其中搜索FindRelatedProducts和RemoveExistingProducts标准操作,以了解为什么未删除旧版本。

Well finally we were able to solve the problem. 好了,终于我们能够解决问题了。 You need to place an entry to the Upgrades Path section. 您需要在“升级路径”部分中放置一个条目。 Oddly enough You need to do this manually and it's not done automatically by the IS import wizard. 奇怪的是,您需要手动执行此操作,并且IS导入向导不会自动完成此操作。

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

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