简体   繁体   English

InstallShield LE不会将.EXE换成较新的版本

[英]InstallShield LE won't swap .EXE for newer version

I set up the Upgrade Paths just like described in the other answers on this site. 就像本网站上其他答案中所述,我设置了升级路径。 The entry in the add/remove programs changes to the latest version, the older version gets removed, but when I run the program it is not updated. 添加/删除程序中的条目更改为最新版本,较旧的版本被删除,但是当我运行该程序时,它不会更新。 The .EXE file is the older one, and the new one doesn't exist. .EXE文件是较旧的文件,而新文件不存在。 I change the product code and keep the upgrade code the same. 我更改了产品代码,并保持升级代码不变。 I create a new Upgrade path and point it in the direction of the older .MSI. 我创建了一个新的升级路径,并将其指向较旧的.MSI方向。

What is wrong? 怎么了?

See the MSDN Help Topic File Versioning Rules . 请参阅MSDN帮助主题文件版本控制规则 There are a number of pages off of that one including Both Files Have a Version . 该页面有很多页面,包括“ 两个文件都有版本”

InstallShield LE uses Windows Installer. InstallShield LE使用Windows Installer。

As Christopher answered above, just a bit more addition. 正如克里斯托弗(Christopher)所说,只是增加了一点。 I had the same problem and Installshield LE doesn't have the option to always overwrite exe (chooses "Windows Installer versioning rules (recommended)" as default) so you have to increment the exe file's version manually. 我遇到了同样的问题,Installshield LE没有始终覆盖exe的选项(默认选择“ Windows Installer版本控制规则(推荐)”),因此您必须手动增加exe文件的版本。

In YourSetupApplication -> Specify Application data -> Files tree, -Right click your exe file and select properties -Check the box that says Override system version and give the new updated version in the box. 在YourSetupApplication->“指定应用程序数据”->“文件”树中,-右键单击您的exe文件,然后选择属性。-选中“覆盖系统版本”框,并在框中输入新的更新版本。

Now you can rebuild the setup and install, it will overwrite the exe! 现在您可以重建设置并安装,它将覆盖exe!

Cheers! 干杯!

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

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