parent
7512f5f2a1
commit
5afb45dbb3
2 changed files with 23 additions and 3 deletions
|
|
@ -41,7 +41,7 @@ BASE_MENUS = {
|
||||||
MenuEntry('Software Bundle', 'auto_install_software_bundle'),
|
MenuEntry('Software Bundle', 'auto_install_software_bundle'),
|
||||||
),
|
),
|
||||||
'Configure System': (
|
'Configure System': (
|
||||||
MenuEntry('Configure Browsers', 'auto_config_browsers'),
|
MenuEntry('Apply ITS Settings', 'auto_apply_its_settings'),
|
||||||
MenuEntry('Open Shell', 'auto_config_open_shell'),
|
MenuEntry('Open Shell', 'auto_config_open_shell'),
|
||||||
MenuEntry('Disable Fast Startup', 'auto_disable_fast_startup', selected=False),
|
MenuEntry('Disable Fast Startup', 'auto_disable_fast_startup', selected=False),
|
||||||
MenuEntry('Disable Telemetry', 'auto_shutup_10'),
|
MenuEntry('Disable Telemetry', 'auto_shutup_10'),
|
||||||
|
|
@ -54,6 +54,7 @@ BASE_MENUS = {
|
||||||
MenuEntry('Windows Activation', 'auto_activate_windows'),
|
MenuEntry('Windows Activation', 'auto_activate_windows'),
|
||||||
MenuEntry('Windows Explorer', 'auto_config_explorer'),
|
MenuEntry('Windows Explorer', 'auto_config_explorer'),
|
||||||
MenuEntry(r'Windows\Temp Fix', 'auto_windows_temp_fix'),
|
MenuEntry(r'Windows\Temp Fix', 'auto_windows_temp_fix'),
|
||||||
|
MenuEntry('Configure Browsers', 'auto_config_browsers'),
|
||||||
MenuEntry('Create System Restore', 'auto_system_restore_create'),
|
MenuEntry('Create System Restore', 'auto_system_restore_create'),
|
||||||
),
|
),
|
||||||
'System Information': (
|
'System Information': (
|
||||||
|
|
|
||||||
|
|
@ -223,6 +223,9 @@ def check_os_and_set_menu_title(title):
|
||||||
|
|
||||||
def load_preset(menus, presets, title, enable_menu_exit=True):
|
def load_preset(menus, presets, title, enable_menu_exit=True):
|
||||||
"""Load menu settings from preset and ask selection question(s)."""
|
"""Load menu settings from preset and ask selection question(s)."""
|
||||||
|
msp = False
|
||||||
|
|
||||||
|
# Menu exit entry
|
||||||
if not enable_menu_exit:
|
if not enable_menu_exit:
|
||||||
MENU_PRESETS.actions['Main Menu'].update({'Disabled':True, 'Hidden':True})
|
MENU_PRESETS.actions['Main Menu'].update({'Disabled':True, 'Hidden':True})
|
||||||
|
|
||||||
|
|
@ -259,11 +262,17 @@ def load_preset(menus, presets, title, enable_menu_exit=True):
|
||||||
for option in ('Disable Fast Startup', 'Enable Hibernation'):
|
for option in ('Disable Fast Startup', 'Enable Hibernation'):
|
||||||
menus['Configure System'].options[option]['Selected'] = True
|
menus['Configure System'].options[option]['Selected'] = True
|
||||||
|
|
||||||
|
# Apply ITS settings?
|
||||||
|
msp = ask('Is this an ITS system?')
|
||||||
|
if msp:
|
||||||
|
option = 'Apply ITS Settings'
|
||||||
|
menus['Configure System'].options[option]['Selected'] = True
|
||||||
|
|
||||||
# ESET NOD32 AV
|
# ESET NOD32 AV
|
||||||
print('')
|
print('')
|
||||||
if ask('Install ESET NOD32 AV?'):
|
if msp or ask('Install ESET NOD32 AV?'):
|
||||||
option = 'ESET NOD32 AV'
|
option = 'ESET NOD32 AV'
|
||||||
if ask(' For ITS/VIP?'):
|
if msp or ask(' For VIP?'):
|
||||||
option = f'{option} (MSP)'
|
option = f'{option} (MSP)'
|
||||||
menus['Install Software'].options[option]['Selected'] = True
|
menus['Install Software'].options[option]['Selected'] = True
|
||||||
|
|
||||||
|
|
@ -420,6 +429,11 @@ def auto_enable_regback():
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def auto_apply_its_settings():
|
||||||
|
"""Apply ITS settings."""
|
||||||
|
TRY_PRINT.run('Apply ITS settings...', apply_its_settings)
|
||||||
|
|
||||||
|
|
||||||
def auto_system_restore_enable():
|
def auto_system_restore_enable():
|
||||||
"""Enable System Restore."""
|
"""Enable System Restore."""
|
||||||
cmd = [
|
cmd = [
|
||||||
|
|
@ -955,6 +969,11 @@ def uninstall_firefox():
|
||||||
|
|
||||||
|
|
||||||
# Misc Functions
|
# Misc Functions
|
||||||
|
def apply_its_settings():
|
||||||
|
"""Apply ITS settings."""
|
||||||
|
create_custom_power_plan(enable_sleep=False)
|
||||||
|
|
||||||
|
|
||||||
def check_secure_boot_status():
|
def check_secure_boot_status():
|
||||||
"""Check Secure Boot status."""
|
"""Check Secure Boot status."""
|
||||||
is_secure_boot_enabled(raise_exceptions=True, show_alert=True)
|
is_secure_boot_enabled(raise_exceptions=True, show_alert=True)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue