InstrallShield Major Upgrade not completely uninstalling previous version

白昼怎懂夜的黑 提交于 2019-12-14 02:27:44

问题


I have an InstallShield 2016 InstallScript MSI project.

I used the Major Upgrade option but with that approach what I see is that files of previous version gets removed, registry entries get deleted, etc. However, the uninstallation logic that is in the InstallScript (*.rul) files does not seem to get executed and hence the uninstall of previous version is not complete.

Basically, it seems Major Upgrade does not execute InstallScript code? Please advise.

thanks,


回答1:


Many years ago I had to convert an Installscript MSI project to Basic MSI because of a bug that caused all changes performed by Installscript custom actions to be rolled back on major upgrade. Could that bug still be in there?

I do not know. If I were you, I would immediately convert my setup to Basic MSI to avoid the very problematic Installscript MSI setup type.

To convert the project, you can create a new Basic MSI project file, close it, open the Installscript MSI project file and then export all components by right clicking the components (in the component view) and go "Export Into..." (or something like that) and then browse to your new Basic MSI project file. This way you can migrate all components, but the custom actions and dialog changes you have to migrate yourself - as far as I know.

I would contact Installshield support and ask for their help. Who knows, maybe they have tools to help you with such a conversion. They will certainly have more information on the problem you are experiencing. However, my 2 cents still stand on converting to Basic MSI. It is the right format to use. Installscript MSI is not popular with corporations for corporate deployment.



来源:https://stackoverflow.com/questions/49909059/instrallshield-major-upgrade-not-completely-uninstalling-previous-version

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