Closed eduardomb08 closed 4 years ago
I came across some machines that did not have the EnableLUA for some reason. In that case the code would throw a NullReferenceException.
According to the docs here the default value for EnableLUA is True.
The proposed change makes the IsUacEnabled property return True if the key or subkey are not found instead of throwing the exception.
I came across some machines that did not have the EnableLUA for some reason. In that case the code would throw a NullReferenceException.
According to the docs here the default value for EnableLUA is True.
The proposed change makes the IsUacEnabled property return True if the key or subkey are not found instead of throwing the exception.