How to uninstall with msiexec using product id guid without .msi file present

前端 未结 7 1541
南笙
南笙 2020-12-08 07:24

I\'m trying to automate the uninstallation of packages created using WiX for the purposes of changing the installed software stack & configuration without reprovisioning

7条回答
  •  失恋的感觉
    2020-12-08 07:53

    Thanks all for the help - turns out it was a WiX issue.

    When the Product ID GUID was left explicit & hardcoded as in the question, the resulting .msi had no ProductCode property but a Product ID property instead when inspected with orca.

    Once I changed the GUID to '*' to auto-generate, the ProductCode showed up and all works fine with syntax confirmed by the other answers.

提交回复
热议问题