在升级安装过程中删除旧文件版本 [英] Deleting old file versions during an upgrade install
问题描述
我正在InstallShield Pro 2010中使用纯InstallScript安装.
I am working with a pure InstallScript installation in InstallShield Pro 2010.
第三方jar文件已在我们的软件中替换为较新的版本.运行升级安装时,将安装新的jar,但旧的jar也将保留.随之而来的是坏事.
A third-party jar file has been replaced with a newer version in our software. When an upgrade installation is run, the new jar is installed, but the old jar also remains. Bad Things ensue.
如何让InstallShield更新文件夹的内容,并删除该位置中当前版本未包括的其他文件?
我已经查看了Component-> Overwrite选项,但这似乎仅在安装程序遇到与正在安装的文件同名的现有文件时"适用.
I've looked at the Component -> Overwrite options, but this only seems to apply "when the installer encounters an existing file with the same name as the one being installed".
此外,我意识到我可以在脚本中添加一些内容来删除有问题的文件,但是我需要一个可扩展的解决方案.随着时间的推移,还将替换其他文件,我宁愿不必每次都在安装程序中手动添加修复程序.
Also, I realize that I could add something to the scripts to remove the offending file, but I need a scalable solution. There will be other files replaced over time, and I'd rather not have to manually add a fix to the installer every time this happens.
推荐答案
您可以只在构建之间更改JAR文件的名称吗?
Can you just not change the name of the JAR file from build to build?
我不知道InstallScript具有robocopy/mirror样式副本.您必须对这种行为进行脚本编写,我看到它不能很快结束.
I'm not aware of InstallScript having a robocopy /mirror style copy. You'd have to script this behavior and I could see it not ending well quickly.
这篇关于在升级安装过程中删除旧文件版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!