Cannot create registry key without value
jetersen opened this issue · comments
Joseph Petersen commented
There are some registry related things that depend on only having the key.
ie. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Network\NewNetworkWindowOff
Currently this is not possible:
context.Resource<RegistryValue>("Disable New Network Popup")
.Path(@"HKLM:\System\CurrentControlSet\Control\Network\NewNetworkWindowOff")
.Ensure(RegistryKeyState.Exist);
As value is checked before making sure the path exist:
RegistryKeyProvider is marked obsolete and yet also checks for value.