InstallShield fails because of a bad uninstall

前端 未结 3 541
太阳男子
太阳男子 2021-01-22 04:42

I\'m building an InstallShield project, which does a [Major Upgrade][1] to an existing install (i.e. I changed the Product Code while retaining the Upgrade Co

3条回答
  •  逝去的感伤
    2021-01-22 05:34

    If there was only one deployment without that condition, then you could write a custom action where you can run the command line below:

    msiexec.exe /x {PRODUCT_CODE_OF_OLD_MSI} REMOVE="ALL" /qn

    Another trick that may work is to Schedule RemoveExistingProducts action before InstallInitialize action as stated here: How to uninstall previous version as part of msi install?

    You could also write your own custom MSI DLL that terminates running processes before continuing.

提交回复
热议问题