Deleting old file versions during an upgrade install

扶醉桌前 提交于 2019-12-10 14:55:19

问题


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 get 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.


回答1:


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.



来源:https://stackoverflow.com/questions/3874964/deleting-old-file-versions-during-an-upgrade-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!