I have a problem with uninstalling a WiX 3.5-authored setup.

On Windows 7:
- Uninstall product via the "Programs and Features" dialog via select
the "Uninstall" option from either the toolbar above the list or from
the context menu.

Observations:
- Uninstall runs with a reduced Windows Installer default UI, only
showing a progress bar and an estimate
- No UAC prompt is shown, even though UAC is enabled
- The uninstall seems to complete successfully (the MSI log says as
much), and all installed files are removed. However, some empty
folders remain (a lesser issue), and the entry for the program is not
removed from the list of installed programs (remains after refreshing
using F5). Regedit shows that the respective Windows Installer
registry keys for the product are still present.

Now, an attempt to install the product again will fail, because
Windows Installer probably assumes the product is still installed (log
has UPGRADINGPRODUCTCODE set).

Workaround:
Either
- Simply repeat the steps as described above. This time around, a UAC
prompt is shown, and the entry is successfully removed from the list
(and the keys from the registry).
Or do not uninstall via ARP the "Uninstall" option at all, but:
- Select "Change" instead of "Uninstall". Full setup UI is displayed
(customized WixUI_Custom UI). Select the "Remove" option. Uninstall
completes successfully.

What is the difference between these two ways of uninstalling? REMOVE
is ALL in all cases. Obviously, the repeated uninstall attempt has an
"MSI_LUA: Credential Request return = 0x0" log entry the first one has
not. Other than that, they both have:

Line 64: MSI (s) (58:E0) [10:40:28:711]: MSI_LUA: Credential prompt is
not required at this point, product is managed and deployment
compliant
Line 112: MSI (s) (58:E0) [10:40:28:727]: MSI_LUA: Setting AdminUser
property to 1 because the product is already installed managed and
per-machine
Line 114: MSI (s) (58:E0) [10:40:28:727]: MSI_LUA: Setting
MsiRunningElevated property to 1 because the install is already
running elevated.

Only the repeated attempt and the "Change" attempt via UI have
"Executing op: ProductUnregister", the first does not.

Any help would be greatly appreciated. I can provide log excerpts as needed.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to