diff --git a/.bin/Scripts/functions/setup.py b/.bin/Scripts/functions/setup.py index 0c592623..d11504a0 100644 --- a/.bin/Scripts/functions/setup.py +++ b/.bin/Scripts/functions/setup.py @@ -41,12 +41,6 @@ SETTINGS_ESET = { }, }, } -SETTINGS_EXPLORER_SYSTEM_HW = { - # Enable RegBack - r'System\CurrentControlSet\Control\Session Manager\Configuration Manager': { - 'DWORD Items': {'EnablePeriodicBackup': 1}, - }, - } SETTINGS_EXPLORER_SYSTEM = { # Disable Location Tracking r'Software\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}': { @@ -73,10 +67,6 @@ SETTINGS_EXPLORER_SYSTEM = { r'Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots': { 'DWORD Items': {'Value': 0}, }, - # Enable RegBack - r'System\CurrentControlSet\Control\Session Manager\Configuration Manager': { - 'DWORD Items': {'EnablePeriodicBackup': 1}, - }, } SETTINGS_EXPLORER_USER = { # Disable silently installed apps @@ -125,6 +115,12 @@ SETTINGS_MOZILLA_FIREFOX_64 = { 'uBlock0@raymondhill.net': MOZILLA_FIREFOX_UBO_PATH}, }, } +SETTINGS_REGBACK = { + # Enable RegBack + r'System\CurrentControlSet\Control\Session Manager\Configuration Manager': { + 'DWORD Items': {'EnablePeriodicBackup': 1}, + }, + } VCR_REDISTS = [ {'Name': 'Visual C++ 2010 x32...', 'Cmd': [r'2010sp1\x32\vcredist.exe', '/passive', '/norestart']}, @@ -200,10 +196,6 @@ def config_classicstart(): sleep(1) popen_program(cs_exe) -def config_explorer_system_hw(): - """Configure Windows Explorer for all users via Registry settings (HW).""" - write_registry_settings(SETTINGS_EXPLORER_SYSTEM_HW, all_users=True) - def config_explorer_system(): """Configure Windows Explorer for all users via Registry settings.""" write_registry_settings(SETTINGS_EXPLORER_SYSTEM, all_users=True) @@ -221,6 +213,10 @@ def config_privacy_settings(): '/quiet'] run_program(cmd) +def enable_regback(): + """Enable RegBack.""" + write_registry_settings(SETTINGS_REGBACK, all_users=True) + def enable_system_restore(): """Enable System Restore and set disk usage to 5%""" cmd = [ diff --git a/.bin/Scripts/system_checklist.py b/.bin/Scripts/system_checklist.py index 9803d90c..d2271a8f 100644 --- a/.bin/Scripts/system_checklist.py +++ b/.bin/Scripts/system_checklist.py @@ -47,10 +47,12 @@ if __name__ == '__main__': function=config_explorer_system, cs='Done') try_and_print(message='Privacy...', function=config_privacy_settings, cs='Done') - try_and_print(message='Updating Clock...', - function=update_clock, cs='Done') + try_and_print(message='Enabling RegBack...', + function=enable_regback, cs='Done') try_and_print(message='Enabling System Restore...', function=enable_system_restore, cs='Done') + try_and_print(message='Updating Clock...', + function=update_clock, cs='Done') # Cleanup print_info('Cleanup') diff --git a/.bin/Scripts/system_checklist_hw.py b/.bin/Scripts/system_checklist_hw.py index ba696934..01d6d551 100644 --- a/.bin/Scripts/system_checklist_hw.py +++ b/.bin/Scripts/system_checklist_hw.py @@ -42,8 +42,8 @@ if __name__ == '__main__': # Configure print_info('Configure') if global_vars['OS']['Version'] == '10': - try_and_print(message='Explorer...', - function=config_explorer_system_hw, cs='Done') + try_and_print(message='Enabling RegBack...', + function=enable_regback, cs='Done') try_and_print(message='Enabling System Restore...', function=enable_system_restore, cs='Done')