Skip to content

Uninstall Previous Per-User Install In Per-Machine Scope? #8794

Answered by robmen
NoMoreFood asked this question in Questions
Discussion options

You must be logged in to vote

It turns out the log file wasn't necessary, but seeing it helped illuminate the problem. Your CustomAction element uses the Property attribute.

<CustomAction Id="DoUninstallHKCU" Property="UninstallHKCU" ExeCommand="[WIN_DIR_STAT_HKCU] /s"
              Execute="immediate" Impersonate="no" Return="ignore"/>

Per the documentation for CustomAdction Property it specifies the executable to be executed:

This attribute is also used with the ExeCommand attribute to create a type 50 custom action that uses the value of the given property to specify the path to the executable.

That means the value of the Property UninstallHKCU is used as the executable to launch. However, there is no UninstallHKCU

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@NoMoreFood
Comment options

Comment options

You must be logged in to vote
4 replies
@NoMoreFood
Comment options

@NoMoreFood
Comment options

@robmen
Comment options

@NoMoreFood
Comment options

Answer selected by NoMoreFood
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants