2
I’m making a program in C# to automate a situation here in the company, only that I am facing problems with it
I am wanting to delete a windows registry key gets located on HKEY_LOCAL_MACHINE SOFTWARE Microsoft Mslicensing
In case I’d like to delete the key Mslicensing or delete everything within it.
I’m using the following command
string caminho = @"SOFTWARE\Microsoft\MSLicensing";
Registry.LocalMachine.DeleteSubKey(caminho, true);
I am running VS as an administrator I already put a manifest with high level and still can not delete.
Thank you for your attention.
I think instead of
Registry
would be theRegistryKey
ofMicrosoft.Win32
... But why are you wanting to do this? Mslicensing is just one example and you intend to delete the registration of a software your own?– Leandro Angelo
Check out the Microsoft documentation (https://docs.microsoft.com/en-us/windows/win32/winprog64/shared-registry-keys). Could be key redirection problem, I’ve had problems of this type.
– user178974