include vc redist and wuaueng.dll repair script
This commit is contained in:
@@ -82,9 +82,9 @@ for %%a in (%SUPPORTED_HOTFIXES%) do (
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Warning - Detected that no supported updates are installed!
|
||||
echo WARNING - Detected that no supported updates are installed!
|
||||
echo.
|
||||
echo This can be a false warning, if you are sure you know you need wufuc you
|
||||
echo This can be a false warning, if you are certain that need wufuc then you
|
||||
echo can continue (there will be no side effects even if you don't need it)
|
||||
|
||||
set /p CONTINUE=Enter 'Y' if you still want to continue:
|
||||
@@ -101,18 +101,26 @@ set /p CONTINUE=Enter 'Y' if you want to install wufuc:
|
||||
if /I not "%CONTINUE%"=="Y" goto :cancel
|
||||
echo.
|
||||
|
||||
set "vcredist_path=%~dp0_Redist\vcredist_%WINDOWS_ARCHITECTURE%.exe"
|
||||
if exist "%vcredist_path%" (
|
||||
echo Installing Microsoft Visual C^+^+ 2017 Redistributable ^(%WINDOWS_ARCHITECTURE%^)...
|
||||
"%vcredist_path%" /passive /norestart
|
||||
goto :install
|
||||
)
|
||||
|
||||
echo Couldn't locate and install Microsoft Visual C^+^+ 2017 Redistributable ^(%WINDOWS_ARCHITECTURE%^).
|
||||
|
||||
set /p CONTINUE=Enter 'Y' if you still want to continue:
|
||||
if /I not "%CONTINUE%"=="Y" goto :cancel
|
||||
echo.
|
||||
|
||||
:install
|
||||
set "wufuc_task=wufuc.{72EEE38B-9997-42BD-85D3-2DD96DA17307}"
|
||||
schtasks /Create /XML "%~dp0wufuc.xml" /TN "%wufuc_task%" /F
|
||||
echo %ERRORLEVEL%
|
||||
schtasks /Change /TN "%wufuc_task%" /TR "'%systemroot%\system32\rundll32.exe' """%wufuc_dll%""",Rundll32Entry"
|
||||
echo %ERRORLEVEL%
|
||||
schtasks /Change /TN "%wufuc_task%" /ENABLE
|
||||
echo %ERRORLEVEL%
|
||||
rundll32 "%wufuc_dll%",Rundll32Unload
|
||||
echo %ERRORLEVEL%
|
||||
schtasks /Run /TN "%wufuc_task%"
|
||||
echo %ERRORLEVEL%
|
||||
|
||||
echo.
|
||||
echo Installed and started wufuc!
|
||||
@@ -129,4 +137,4 @@ exit
|
||||
echo.
|
||||
echo Canceled by user, press any key to exit...
|
||||
pause >nul
|
||||
exit
|
||||
exit
|
||||
|
51
install/repair_wuaueng.dll.bat
Normal file
51
install/repair_wuaueng.dll.bat
Normal file
@@ -0,0 +1,51 @@
|
||||
@echo off
|
||||
title install wufuc (repair wuaueng.dll) - v0.6
|
||||
:: 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
:confirmation
|
||||
echo You may want to use this script if you previously modified wuaueng.dll
|
||||
echo with "aio-wuaueng.dll-patch.bat" or by other means.
|
||||
echo.
|
||||
echo This will run the sfc utility and it will restore any changes that were made.
|
||||
|
||||
set /p CONTINUE=Enter 'Y' if you want to repair wuaueng.dll:
|
||||
if /I not "%CONTINUE%"=="Y" goto :cancel
|
||||
|
||||
sfc /SCANFILE="%systemroot%\System32\wuaueng.dll"
|
||||
|
||||
:die
|
||||
echo.
|
||||
echo Press any key to exit...
|
||||
pause >nul
|
||||
exit
|
||||
|
||||
:cancel
|
||||
echo.
|
||||
echo Canceled by user, press any key to exit...
|
||||
pause >nul
|
||||
exit
|
@@ -68,4 +68,4 @@ exit
|
||||
echo.
|
||||
echo Canceled by user, press any key to exit...
|
||||
pause >nul
|
||||
exit
|
||||
exit
|
||||
|
Reference in New Issue
Block a user