ewanb
Posts: 28
Joined: Mon Jun 05, 2006 1:53 pm
Location: Glasgow

Remove registry key under HKEY_CURRENT_USER for all users.

Hi,

We have an application that uses a 3rd party GUI library that stores user interface customizations in the registry under HKCU for each user. When updating to a newer version of our product we need to remove these settings so that changes to the GUI layout appear correctly. It's easy to do this for the user who performs the install but is there any way to do it for the other users of the machine?

Note that this is different from this scenario http://advancedinstaller.com/forums/vie ... f=2&t=8723 because we want to remove a key that is present not repair one that is missing.

All suggestions gratefully received,
Regards,
Ewan
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Remove registry key under HKEY_CURRENT_USER for all users.

Hi Ewan,

I'm afraid that this is not supported by Windows Installer. During an install, Windows Installer cannot access the HKEY_CURRENT_USER hive of another user. A solution would be to manage the registry entries from within the application.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ewanb
Posts: 28
Joined: Mon Jun 05, 2006 1:53 pm
Location: Glasgow

Re: Remove registry key under HKEY_CURRENT_USER for all users.

I suspected that might be the answer. Oh well, code it is!

Thanks for the fast response,
Ewan

Return to “Common Problems”