始终在小升级中更新文件(如何) [英] Always update files in minor upgrade (how to)

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

问题描述

我正在使用 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:

重新安装模式=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天全站免登陆