Uninstall Previous Per-User Install In Per-Machine Scope? #8794
-
When running interactively, I want my installer to remove a previously-installed per-user exe-based application but it is not executing as expected. MSIEXEC returns error 1721 in a verbose log indicating the package is bad. Any ideas how to accomplish this or what I am doing wrong? https://github.com/windirstat/windirstat/blob/master/setup/WinDirStat.wxs |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Would need to see a verbose log file. |
Beta Was this translation helpful? Give feedback.
-
It turns out the log file wasn't necessary, but seeing it helped illuminate the problem. Your <CustomAction Id="DoUninstallHKCU" Property="UninstallHKCU" ExeCommand="[WIN_DIR_STAT_HKCU] /s"
Execute="immediate" Impersonate="no" Return="ignore"/> Per the documentation for
That means the value of the Property The fix should be easy. <CustomAction Id="DoUninstallHKCU" Property="WIN_DIR_STAT_HKCU" ExeCommand="/s"
Execute="immediate" Impersonate="no" Return="ignore"/> Now, it should execute the searched "path to the uninstaller" and pass the PS: I don't often answer questions here with this much detail (too busy with customers), but I've used WinDirStat with great success in the past. Thank you for your contributions to it. PPS: The above is a good example of support offered to FireGiant customers. |
Beta Was this translation helpful? Give feedback.
It turns out the log file wasn't necessary, but seeing it helped illuminate the problem. Your
CustomAction
element uses theProperty
attribute.Per the documentation for
CustomAdction Property
it specifies the executable to be executed:That means the value of the Property
UninstallHKCU
is used as the executable to launch. However, there is noUninstallHKCU
…