From d9e35a6163d6c845c8b5bf721a69e60fbd2844fd Mon Sep 17 00:00:00 2001 From: zeffy Date: Thu, 29 Jun 2017 21:43:28 -0700 Subject: [PATCH] restart wuauserv during install --- setup-batch/install_wufuc.bat | 4 ++ .../utility scripts/debugview_helper.bat | 66 ------------------ setup-batch/wufuc.xml | Bin 3812 -> 3814 bytes 3 files changed, 4 insertions(+), 66 deletions(-) delete mode 100644 setup-batch/utility scripts/debugview_helper.bat diff --git a/setup-batch/install_wufuc.bat b/setup-batch/install_wufuc.bat index 9789681..8aa8180 100644 --- a/setup-batch/install_wufuc.bat +++ b/setup-batch/install_wufuc.bat @@ -154,8 +154,12 @@ schtasks /Create /XML "%wufuc_xml%" /TN "%wufuc_task%" /F schtasks /Change /TN "%wufuc_task%" /TR "'%systemroot%\system32\rundll32.exe' """%wufuc_dll%""",Rundll32Entry" schtasks /Change /TN "%wufuc_task%" /ENABLE rundll32 "%wufuc_dll%",Rundll32Unload +net stop wuauserv schtasks /Run /TN "%wufuc_task%" +timeout /nobreak /t 3 >nul +net start wuauserv + echo. echo Installed and started wufuc, you can now continue installing updates! :^) echo. diff --git a/setup-batch/utility scripts/debugview_helper.bat b/setup-batch/utility scripts/debugview_helper.bat deleted file mode 100644 index 1eb265e..0000000 --- a/setup-batch/utility scripts/debugview_helper.bat +++ /dev/null @@ -1,66 +0,0 @@ -@echo off -title wufuc utility - debugview helper -:: Copyright (C) 2017 zeffy - -:: This program is free software: you can redistribute it and/or modify -:: it under the terms of the GNU General Public License as published by -:: the Free Software Foundation, either version 3 of the License, or -:: (at your option) any later version. - -:: This program is distributed in the hope that it will be useful, -:: but WITHOUT ANY WARRANTY; without even the implied warranty of -:: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -:: GNU General Public License for more details. - -:: You should have received a copy of the GNU General Public License -:: along with this program. If not, see . - -echo Copyright ^(C^) 2017 zeffy -echo This program comes with ABSOLUTELY NO WARRANTY. -echo This is free software, and you are welcome to redistribute it -echo under certain conditions; see COPYING.txt for details. -echo. - -fltmc >nul 2>&1 || ( - echo This batch script requires administrator privileges. Right-click on - echo %~nx0 and select "Run as administrator". - goto :die -) -if /I "%PROCESSOR_ARCHITECTURE%"=="AMD64" ( - goto :is_x64 -) else ( - if /I "%PROCESSOR_ARCHITEW6432%"=="AMD64" ( - goto :is_x64 - ) - if /I "%PROCESSOR_ARCHITECTURE%"=="x86" ( - goto :is_x86 - ) -) -goto :die - -:is_x86 -set "wufuc_dll=%~dp0..\wufuc32.dll" -goto :unload - -:is_x64 -set "wufuc_dll=%~dp0..\wufuc64.dll" - -:unload -rundll32 "%wufuc_dll%",Rundll32Unload - -net stop wuauserv - -set "wufuc_task=wufuc.{72EEE38B-9997-42BD-85D3-2DD96DA17307}" -net start Schedule -schtasks /Change /TN "%wufuc_task%" /ENABLE -schtasks /Run /TN "%wufuc_task%" - -timeout /nobreak /t 3 >nul -net start wuauserv - -echo Restarted wufuc and wuauserv. - -:die -echo. -pause -exit diff --git a/setup-batch/wufuc.xml b/setup-batch/wufuc.xml index 129cfa5e193ed55bc5f46a3a0aec22fbc722ad8e..f0c46c4b6fc88e9ca7d534de5da82fa0fceabec4 100644 GIT binary patch delta 30 kcmaDN`%HF&76)qyLlHyiW{D$`z0Co`xrT_o{