update batch installer and uninstaller
This commit is contained in:
@@ -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
|
||||
|
@@ -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. :^(
|
||||
|
Reference in New Issue
Block a user