简体   繁体   English

使用 InstallShield 创建的 Setup.exe 文件已成功安装,但应用程序没有更新,它保留以前安装的版本

[英]Setup.exe file created with InstallShield is installed successfully but application doesnt update, it keeps previous installed version

Problem I'm facing is that Setup.exe with new app version is successfully installed but previous version that exists is not upgraded.我面临的问题是具有新应用程序版本的 Setup.exe 已成功安装,但存在的先前版本未升级。

When I run the application it opens in previous version(4.5), but in control panel next to the app name stands new application's version number(4.6).当我运行应用程序时,它会在以前的版本(4.5)中打开,但在应用程序名称旁边的控制面板中显示新应用程序的版本号(4.6)。 There is no two instances in Control Panel.控制面板中没有两个实例。

Setup.exe file is created using InstallShield 2018 Express. Setup.exe 文件是使用 InstallShield 2018 Express 创建的。 In Upgrade Paths I've added new path created from my previous setup.exe file.在升级路径中,我添加了从以前的 setup.exe 文件创建的新路径。 The upgrade code is same as for previous versions, and in General Information I've updated the Product Code.升级代码与以前的版本相同,在一般信息中我更新了产品代码。

For "Max Version" number I've tried with 4.6, 4.5.1, 5.0 and allways the same problem appears.对于“最大版本”编号,我尝试使用 4.6、4.5.1、5.0 并且总是出现相同的问题。

"Include Min Version" is set to No “包括最低版本”设置为否

I've done this several times in the past successfully but for some reason this time it doesn't work.过去我已经成功完成了几次,但由于某种原因,这次它不起作用。

With same setup.exe file application is successfully installed from scratch, but when previous version exists it doesn't work as expected.使用相同的 setup.exe 文件应用程序从头开始成功安装,但是当存在以前的版本时,它不能按预期工作。

None of the solutions I found online worked for me.我在网上找到的解决方案都不适合我。

It seems to me that your main application (executable?) is not getting upgraded.在我看来,您的主应用程序(可执行文件?)没有升级。 Make sure that you're logging the install.确保您正在记录安装。 Then after the install completes search the log for the Component GUID of the executable not upgrading to search for clues.然后在安装完成后在日志中搜索未升级的可执行文件的组件 GUID 以搜索线索。

One other thing to check for is a pending reboot.要检查的另一件事是挂起的重新启动。 If the application was in use it may not upgrade until a reboot happens.如果应用程序正在使用中,它可能在重新启动之前不会升级。

I have solved this with click on "Resequence RemoveExistingProducts" button in "Upgrade Paths" tab.我已经通过单击“升级路径”选项卡中的“重新排序 RemoveExistingProducts”按钮解决了这个问题。

Somehow this order of installing/removing product was changed.不知何故,这个安装/删除产品的顺序被改变了。

Screenshot截屏

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

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