From e00e74a38e43d1231602963e7a3bb8d0b17f3541 Mon Sep 17 00:00:00 2001 From: neroux Date: Tue, 18 Apr 2017 23:44:49 +0200 Subject: [PATCH] Added OS version check --- .../w7s08r2x64-wuaueng.dll-patch.bat | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/patch_scripts/windows7-x64-and-server2008r2-kb4012218-patch/w7s08r2x64-wuaueng.dll-patch.bat b/patch_scripts/windows7-x64-and-server2008r2-kb4012218-patch/w7s08r2x64-wuaueng.dll-patch.bat index 69ebe0c..3d9253c 100644 --- a/patch_scripts/windows7-x64-and-server2008r2-kb4012218-patch/w7s08r2x64-wuaueng.dll-patch.bat +++ b/patch_scripts/windows7-x64-and-server2008r2-kb4012218-patch/w7s08r2x64-wuaueng.dll-patch.bat @@ -9,6 +9,11 @@ net session >nul 2>&1 || ( echo Checking system requirements... echo. +wmic /output:stdout os get version | find "6.1" > nul || ( + echo Detected that you are not running Windows 7. Please verify that + echo you are trying to install the right patch file and try again. +) + wmic /output:stdout qfe get hotfixid | find "KB4012218" >nul || ( echo Detected that update KB4012218 is not installed, please verify that echo you are trying to install the right patch file and try again.