nolme Posted August 29, 2011 Share Posted August 29, 2011 Hi, I've find a strange thing on my computer (Win 7 x64 Pro Fr) with CCleaner 3.07 and Defraggler 2.05. (I've uninstalled both and installer only CCleaner 3.10 with the same problem This C#.NET code works : Ce code fonctionne : RegistryKey CurrentKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft"); This C#.NET code works too (HKCU) : RegistryKey CurrentKey = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Piriform"); This C#.NET code returns null : RegistryKey CurrentKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Piriform"); Here's the Registry export : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Piriform\CCleaner] "UpdateCheck"="1" @="C:\\Program Files\\CCleaner" I've checked Registry autorisations. I've added a manifest file : <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />. I've tried overloaded functions : RegistryKeyPermissionCheck.ReadSubTree, System.Security.AccessControl.RegistryRights.ReadKey Any idea ? Thanks, Vincent Link to comment Share on other sites More sharing options...
Moderators Nergal Posted August 29, 2011 Moderators Share Posted August 29, 2011 Not sure what you are asking or are trying to achieve ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF. Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark) ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T. Support at https://support.ccleaner.com/s/?language=en_US Pro users file a PRIORITY SUPPORT via email support@ccleaner.com Link to comment Share on other sites More sharing options...
nolme Posted August 30, 2011 Author Share Posted August 30, 2011 Hi, I need to retrieve default value at HKEY_LOCAL_MACHINE\SOFTWARE\Piriform\CCleaner which contain CCleaner install path only. Link to comment Share on other sites More sharing options...
nolme Posted September 13, 2011 Author Share Posted September 13, 2011 Hi, I've got a partial answer from a M$ forum : http://msdn.microsoft.com/en-us/library/aa384232%28v=VS.85%29.aspx I'm using a 64 bits Windows version under Windows 7 were a reflection mechanism is done for 32/64 bits compatibility. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now