Archive: Delete registry entry for all users


Delete registry entry for all users
My application adds registry entries in HKCU for local user stuff.

On a reinstall or an uninstall I would like my NSIS installer to delete these HKCU entries for all the users on the computer.

Anyone know of a mechanism to handle this.

Thanks


Enumerate all local users and load their registry hives (HKCU) one by one. You can use it to delete settings of logged off users:

http://nsis.sourceforge.net/EnumUsersReg