始终在次要升级中更新文件(方法) [英] Always update files in minor upgrade (how to)

查看:99
本文介绍了始终在次要升级中更新文件(方法)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用InstallShield Pro X创建安装软件包.升级工作正常.但是,即使创建日期!=修改文件上的日期,产品经理也希望升级在升级时替换所有文件.

I am creating an install package using InstallShield Pro X. The upgrade works properly. However, the product manager wants the upgrade to replace all files on an upgrade even if the create date != modify date on the file.

我看到要执行此操作,我需要设置REINSTALLMODE = vamus而不是vomus.但是,我看不到如何告诉InstallShield我希望它使用该设置.默认情况下,setup.exe始终将vomus传递给Windows安装程序.

I see that to do this I need to set REINSTALLMODE=vamus rather than vomus. However, I don't see how to tell InstallShield that I want it to use that setting. By default setup.exe always passes vomus to windows installer.

InstallShield项目中有一个名为ReinstallModeText的属性,我将其从omus更改为amus,但似乎没有任何作用.

There is a property in the InstallShield project named ReinstallModeText that I changed from omus to amus but that seemed to have no effect.

那么,如何在安装项目中进行设置,以便当setup.exe检测到要运行升级时,它会发送REINSTALLMODE = vamus?谢谢.

So, how what do I set in the install project so that when setup.exe detects to run an upgrade it sends REINSTALLMODE=vamus? Thanks.

更新:尝试在发布"部分的"MSI命令行"值中添加以下内容:

Update: Tried adding the following to the MSI Command Line value in the Release section:

REINSTALLMODE = vamus

REINSTALLMODE=vamus

这不起作用. Setup.exe没有在命令行上设置REINSTALL = ALL,而我这样做了.我将其添加到MSI命令行中,升级按预期进行.但是,问题不在于如果它是全新安装,那些属性仍会被设置并且安装程序将失败.

This did not work. Setup.exe didn't set REINSTALL=ALL on the command line what I did this. I added that to the MSI Command line and the upgrade worked as expected. But, not the problem is if it is a NEW install those properties are still being set and the installer fails.

推荐答案

在进一步研究和测试更多选项的过程中,我认为最好的答案是除了产品版本以外,还要修改产品代码并将其编写为主要升级,首先删除以前的版本,然后安装新文件.

In investigating this further and testing more options I think the best answer is to modify the product code in addition to the product version and author it as a major upgrade which removes the previous version first and then installs the new files.

主要问题是安装程序需要花费更长的时间才能运行.我还认为您不能将其作为补丁发布,但是在这一点上我可能是错误的.

The main problem with this is that it takes alot longer for the installer to run. I also think that you can not issue this as a patch, but I could be wrong on that count.

这篇关于始终在次要升级中更新文件(方法)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆