From 988a0e7b411227e7cc4a0f2e93837ebe56fe944b Mon Sep 17 00:00:00 2001 From: zeffy Date: Thu, 5 Oct 2017 20:55:31 -0700 Subject: [PATCH] update batch installer and uninstaller --- setup-batch/install_wufuc.bat | 2 +- setup-batch/uninstall_wufuc.bat | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/setup-batch/install_wufuc.bat b/setup-batch/install_wufuc.bat index d963a15..835ec7e 100644 --- a/setup-batch/install_wufuc.bat +++ b/setup-batch/install_wufuc.bat @@ -121,7 +121,7 @@ if /I not "%CONTINUE%"=="Y" goto :cancel :install sfc /SCANFILE="%systemroot%\System32\wuaueng.dll" -set "regkey=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\svchost2.exe" +set "regkey=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\svchost.exe" copy /Y "%wufuc_dll_fullpath%" "%systemroot%\System32\" reg add "%regkey%" /v GlobalFlag /t REG_DWORD /d 0x00000100 /f reg add "%regkey%" /v VerifierDlls /t REG_SZ /d "%wufuc_dll%" /f diff --git a/setup-batch/uninstall_wufuc.bat b/setup-batch/uninstall_wufuc.bat index 9fbf457..cb0aba2 100644 --- a/setup-batch/uninstall_wufuc.bat +++ b/setup-batch/uninstall_wufuc.bat @@ -62,10 +62,9 @@ if /I not "%CONTINUE%"=="Y" goto :cancel echo. :uninstall -set "wufuc_task=wufuc.{72EEE38B-9997-42BD-85D3-2DD96DA17307}" -rundll32 "%wufuc_dll%",Rundll32Unload -net start Schedule -schtasks /Delete /TN "%wufuc_task%" /F +set "regkey=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\svchost.exe" +del /F "%systemroot%\System32\%wufuc_dll%" +reg del "%regkey%" /f echo. echo Unloaded and uninstalled wufuc. :^(