From e7c519f605e06009c47c014064880ba2427b351d Mon Sep 17 00:00:00 2001 From: 2Shirt <1923621+2Shirt@users.noreply.github.com> Date: Fri, 12 Oct 2018 12:58:44 -0600 Subject: [PATCH] Only run DISM for Win8+ * Avoids pausing the script for "Unsupported OS" "errors" --- .bin/Scripts/system_diagnostics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/Scripts/system_diagnostics.py b/.bin/Scripts/system_diagnostics.py index affc4b4b..aebadb07 100644 --- a/.bin/Scripts/system_diagnostics.py +++ b/.bin/Scripts/system_diagnostics.py @@ -125,7 +125,7 @@ if __name__ == '__main__': result = try_and_print(message='SFC scan...', function=run_sfc_scan, other_results=other_results) system_ok &= check_result(result, other_results) - if D7_MODE: + if D7_MODE and global_vars['OS']['Version'] in ('8', '8.1', '10'): result = try_and_print(message='DISM RestoreHealth...', function=run_dism, other_results=other_results, repair=True) system_ok &= check_result(result, other_results)