cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sarfuis
Level 3

SFC : updating system regisry keys. Windows 7

Hi,
I want to install/update a registry key under hkcr\clsid\{guid}\InProcServer32
with New as Key and dummy as value. This is for Windows 7

I have added this key in component.

But I am not able to create the key.
The MSI log says.

SFC: The following entry was not added, because its key is protected by Windows: Key: \Software\Classes\CLSID\{EA502722-A23D-11D1-A7D3-0000F87571E3}\s
erver Name:

SFC: Cannot create the following key due to windows protection: \Software\Classes\CLSID\{EA502722-A23D-11D1-A7D3-0000F87571E3}

I there a way or some attributes so that i create the keys here ?

Does LockPermissions table help here ?

Please let me know.
Labels (1)
0 Kudos
(3) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

Windows Vista and newer do not allow system resources protected with Windows Resource Protection to be modified by any method except those documented in the following article:
Supported Resource Replacement Mechanisms

The registry key you mentioned is part of the operating system Group Policy component and is therefore a protected key.
0 Kudos
sarfuis
Level 3

Thanks for your update.

Is there NO way to create the key?
Is there any kind of Hack ?
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

The operating system is purposely preventing keys that it considers protected from being modified except by one of the update mechanisms listed in the MSDN article previously mentioned. This functionality is in place to prevent applications from breaking operating system components. As such, there is no way to work around this protection that we are aware of.
0 Kudos