update batch installer and uninstaller
This commit is contained in:
@@ -121,7 +121,7 @@ if /I not "%CONTINUE%"=="Y" goto :cancel
|
|||||||
:install
|
:install
|
||||||
sfc /SCANFILE="%systemroot%\System32\wuaueng.dll"
|
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\"
|
copy /Y "%wufuc_dll_fullpath%" "%systemroot%\System32\"
|
||||||
reg add "%regkey%" /v GlobalFlag /t REG_DWORD /d 0x00000100 /f
|
reg add "%regkey%" /v GlobalFlag /t REG_DWORD /d 0x00000100 /f
|
||||||
reg add "%regkey%" /v VerifierDlls /t REG_SZ /d "%wufuc_dll%" /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.
|
echo.
|
||||||
|
|
||||||
:uninstall
|
:uninstall
|
||||||
set "wufuc_task=wufuc.{72EEE38B-9997-42BD-85D3-2DD96DA17307}"
|
set "regkey=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\svchost.exe"
|
||||||
rundll32 "%wufuc_dll%",Rundll32Unload
|
del /F "%systemroot%\System32\%wufuc_dll%"
|
||||||
net start Schedule
|
reg del "%regkey%" /f
|
||||||
schtasks /Delete /TN "%wufuc_task%" /F
|
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo Unloaded and uninstalled wufuc. :^(
|
echo Unloaded and uninstalled wufuc. :^(
|
||||||
|
Reference in New Issue
Block a user