update batch installer and uninstaller

This commit is contained in:
zeffy
2017-10-05 20:55:31 -07:00
parent 4ea832a47b
commit 988a0e7b41
2 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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. :^(