Old 8th July 2009, 07:22   #1
thek
Member
 
thek's Avatar
 
Join Date: Jun 2006
Location: Austria
Posts: 92
Question Uninstal Multiuser installation

Hello

My app can be used by all user on a computer.
For every user which uses it, there are some registry entrys in HKCU.

How do I delete all registry entrys, even for users not currently logged in?
(HKEY_USERS only contain the entrys for the currently logged in Users)

Is there some easier way then manualy loading every ntuser.dat into the registry and deleting the entrys?

Norbert
thek is offline   Reply With Quote
Old 10th July 2009, 11:43   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
http://nsis.sourceforge.net/EnumUsersReg

Stu
Afrow UK is offline   Reply With Quote
Old 13th July 2009, 15:25   #3
thek
Member
 
thek's Avatar
 
Join Date: Jun 2006
Location: Austria
Posts: 92
Again a "Blinding flash of the obvious"!
Thanks for the Info

But another question
Is there a reason why EnumUserReg doesn't load the "Default User"????
(as I understand the code, it will only work on Win 9X systems)
thek is offline   Reply With Quote
Old 13th July 2009, 15:36   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Nothing will have been written to the Default User hive as that is not an account. It's just the default setup which is cloned when creating new user accounts. The code will do both 9X and NT.

Stu
Afrow UK is offline   Reply With Quote
Old 13th July 2009, 16:04   #5
thek
Member
 
thek's Avatar
 
Join Date: Jun 2006
Location: Austria
Posts: 92
I know
But I want to set something in the registry for teh defaul User so that every new User also has it available.

If I don't write to the default user, any new user which is created after my install is doesn't have the settings

I solved it already by manualy loading the "Default User" hive befor calling EnumUsersReg (->works fine)

Thanks for the help
thek is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump