开发者

Deleting old file versions during an upgrade install

I am working with a pure InstallScript installation in InstallShield Pro 2010.

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.

How can I g开发者_StackOverflow中文版et InstallShield to update the contents of a folder, AND delete any other files in that location that are not included in the current version?

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.


Can you just not change the name of the JAR file from build to build?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜