Jump to content

[C# - Registry] Piriform registry key not accessible


nolme

Recommended Posts

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

  • Moderators

:blink:

 

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.