From 8e234ce0cd02fd6b5a3772dffcf9f69f8e11587b Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Mon, 26 Jun 2023 08:20:15 -0700 Subject: [PATCH] Add menu entry for MS Store updates in Auto Setup Addresses issue #216 --- scripts/auto_setup.py | 4 ++++ scripts/wk/setup/win.py | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/scripts/auto_setup.py b/scripts/auto_setup.py index a32898c4..d3712d69 100644 --- a/scripts/auto_setup.py +++ b/scripts/auto_setup.py @@ -70,6 +70,7 @@ BASE_MENUS = { 'Run Programs': ( MenuEntry('Device Manager', 'auto_open_device_manager'), MenuEntry('HWiNFO Sensors', 'auto_open_hwinfo_sensors'), + MenuEntry('Microsoft Store Updates', 'auto_open_microsoft_store_updates'), MenuEntry('Snappy Driver Installer', 'auto_open_snappy_driver_installer_origin'), MenuEntry('Windows Activation', 'auto_open_windows_activation'), MenuEntry('Windows Updates', 'auto_open_windows_updates'), @@ -99,6 +100,9 @@ PRESETS = { 'Install Software': ( 'Firefox', # Needed to handle profile upgrade nonsense ), + 'Run Programs': ( + 'Microsoft Store Updates', + ), 'System Summary': ( 'Operating System', 'Windows Activation', diff --git a/scripts/wk/setup/win.py b/scripts/wk/setup/win.py index e0894e01..e74e0d5c 100644 --- a/scripts/wk/setup/win.py +++ b/scripts/wk/setup/win.py @@ -480,6 +480,11 @@ def auto_open_hwinfo_sensors() -> None: TRY_PRINT.run('HWiNFO Sensors...', open_hwinfo_sensors) +def auto_open_microsoft_store_updates() -> None: + """Opem Microsoft Store Updates.""" + TRY_PRINT.run('Microsoft Store Updates...', open_microsoft_store_updates) + + def auto_open_snappy_driver_installer_origin() -> None: """Open Snappy Driver Installer Origin.""" TRY_PRINT.run('Snappy Driver Installer...', open_snappy_driver_installer_origin) @@ -922,6 +927,11 @@ def open_hwinfo_sensors() -> None: run_tool('HWiNFO', 'HWiNFO', popen=True) +def open_microsoft_store_updates() -> None: + """Open Microsoft Store to the updates page.""" + popen_program(['explorer', 'ms-windows-store:updates']) + + def open_snappy_driver_installer_origin() -> None: """Open Snappy Driver Installer Origin.""" run_tool('SDIO', 'SDIO', cwd=True, pipe=True, popen=True)