Use specific versions to select UAC settings
This commit is contained in:
parent
d664100c50
commit
c5fca8f04f
1 changed files with 1 additions and 1 deletions
|
|
@ -1243,7 +1243,7 @@ def reset_windows_updates():
|
||||||
def restore_uac_defaults():
|
def restore_uac_defaults():
|
||||||
"""Restore UAC default settings."""
|
"""Restore UAC default settings."""
|
||||||
settings = REG_UAC_DEFAULTS_WIN10
|
settings = REG_UAC_DEFAULTS_WIN10
|
||||||
if OS_VERSION != 10:
|
if OS_VERSION in (7, 8, 8.1):
|
||||||
settings = REG_UAC_DEFAULTS_WIN7
|
settings = REG_UAC_DEFAULTS_WIN7
|
||||||
|
|
||||||
reg_write_settings(settings)
|
reg_write_settings(settings)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue