Tuesday, March 29, 2016

Burn: w327: Will not uninstall package...


Often, while testing burn based installers, I faced this while Uninstalling the Bundle:


[371C:31D8][2016-03-29T10:17:20]w327: Will not uninstall package: Client, found dependents: 2
[371C:31D8][2016-03-29T10:17:20]w328: Found dependent: {ac89aba7-d9da-4814-b665-8879004bcd8e}, name: EMS 2016
[371C:31D8][2016-03-29T10:17:20]w328: Found dependent: {af2cf989-bff2-466f-b0e6-9461caabc59a}, name: EMS 2016

This happens, when Product Code of package (Client in my case) is left in registry. Here is mine in this case:
HKEY_CLASSES_ROOT\Installer\Dependencies\{68055460-0787-4ED4-BC4D-422F5959EDD8}


I had to open my Client.msi in Orca.exe to get its Product Code, because in my Wix, I'm using * in product code which might be generating a new code on every build.

Dependencies {ac89aba7-d9da-4814-b665-8879004bcd8e} and {af2cf989-bff2-466f-b0e6-9461caabc59a} should be under above mentioned registry; Here's a screen shot:


So how to get rid of these, when Burn/Bundle refuse to uninstall it:

  1. Uninstall msi package
    • From original MSI file, right click on it and choose Uninstall and proceed 
    OR
    • From command line, type "msiexec /x {PRODUCT CODE OF MSI}
    for example in my case here: msiexec /x {68055460-0787-4ED4-BC4D-422F5959EDD8} and follow the instructions.


  2. Now if above registry key is still intact, simply remove it.






No comments: