[wix-users] Uninstall user settings

Parkes, Kevin kevin.parkes at wacom.com
Thu Apr 20 08:41:38 PDT 2017


Thanks for the hint Nir Bar. I'm not familiar with NetUserEnum - if I pass 23 for level, it returns ERROR_INVALID_LEVEL. How do I get it to return USER_INFO_23 structures?


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Nir Bar
Sent: 20 April 2017 12:44
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Uninstall user settings

You can create a custom action to do that:- Enumerate users and get their SID with NetUserEnum that gets USER_INFO_23 structures
- Open the HKEY_USERS registry hive with SID string as subkey
- Delete the key


Nir Bar
JetBA.net- WiX User Interface Library



---- On Thu, 20 Apr 2017 14:02:57 +0300  Kevin Parkes <kevin.parkes at wacom.com> wrote ---- 

Correct, it's the app that makes the settings. I could add "removeKeyOnUninstall" but what about registry entries for users other than the current one? 
 
 
-----Original Message----- 
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Hoover, Jacob 
Sent: 19 April 2017 17:31 
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org> 
Subject: Re: [wix-users] Uninstall user settings 
 
I read this as his Application creates reg entries not his installer, in which case you would need to add a Registry element to the MSI authoring to "removeKeyOnUninstall" the app created keys. 
 
-----Original Message----- 
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of John Cooper 
Sent: Wednesday, April 19, 2017 11:08 AM 
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org> 
Subject: Re: [wix-users] Uninstall user settings 
 
Is this a perUser or perMachine application? Removal of the Components should remove the registry entries. If it doesn't, something is wrong with the authoring. Permissions issues can be an issue. Also, on 64-bit OS's, the path to a 32-bit key might not be what you expect. 
 
-- 
John Merryweather Cooper 
Senior Software Engineer -- Integration Development Group -- Enterprise Notification Service Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Office:  913-341-3434x431050 JoCooper at jackhenry.com 
 
 
 
 
 
-----Original Message----- 
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Parkes, Kevin 
Sent: Wednesday, April 19, 2017 11:02 AM 
To: 'wix-users at lists.wixtoolset.org' <wix-users at lists.wixtoolset.org> 
Subject: [wix-users] Uninstall user settings 
 
The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin. 
 
I have an application which creates registry entries under HKCU and my QA people are complaining that uninstalling the app doesn't remove the registry entries. Is there a (standard) way of handling this or is it just a case of "that's how Windows (Installer) works, live with it"? 
 
Thanks 
 
____________________________________________________________________ 
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/ 
 
NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. 
Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. 
 
 
____________________________________________________________________ 
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/ 
 
____________________________________________________________________ 
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/ 

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/






____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list