Update install_wufuc.bat
This commit is contained in:
@@ -21,34 +21,21 @@ echo This is free software, and you are welcome to redistribute it
|
|||||||
echo under certain conditions; see COPYING.txt for details.
|
echo under certain conditions; see COPYING.txt for details.
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
call :set_uninstall 0
|
|
||||||
call :set_unattended 0
|
|
||||||
call :set_norestart 0
|
|
||||||
|
|
||||||
:loop_args
|
|
||||||
if [%1]==[] goto :check_admin
|
|
||||||
if /I "%1"=="/UNINSTALL" call :set_uninstall 1
|
|
||||||
if /I "%1"=="/UNATTENDED" call :set_unattended 1
|
|
||||||
if /I "%1"=="/NORESTART" call :set_norestart 1
|
|
||||||
shift /1
|
|
||||||
goto :loop_args
|
|
||||||
:set_uninstall
|
|
||||||
set "UNINSTALL=%~1"
|
|
||||||
exit /b
|
|
||||||
:set_unattended
|
|
||||||
set "UNATTENDED=%~1"
|
|
||||||
exit /b
|
|
||||||
:set_norestart
|
|
||||||
set "NORESTART=%~1"
|
|
||||||
exit /b
|
|
||||||
|
|
||||||
:check_admin
|
|
||||||
fltmc >nul 2>&1 || (
|
fltmc >nul 2>&1 || (
|
||||||
echo This batch script requires administrator privileges. Right-click on
|
echo This batch script requires administrator privileges. Right-click on
|
||||||
echo the script and select "Run as administrator".
|
echo the script and select "Run as administrator".
|
||||||
goto :die
|
goto :die
|
||||||
)
|
)
|
||||||
|
|
||||||
|
:loop_args
|
||||||
|
if [%1]==[] goto :check_requirements
|
||||||
|
if /I "%1"=="/UNINSTALL" set "UNINSTALL=1"
|
||||||
|
if /I "%1"=="/UNATTENDED" set "UNATTENDED=1"
|
||||||
|
if /I "%1"=="/NORESTART" set "NORESTART=1"
|
||||||
|
shift /1
|
||||||
|
goto :loop_args
|
||||||
|
|
||||||
|
:check_requirements
|
||||||
echo Checking system requirements...
|
echo Checking system requirements...
|
||||||
|
|
||||||
set "systemfolder=%systemroot%\System32"
|
set "systemfolder=%systemroot%\System32"
|
||||||
@@ -192,7 +179,7 @@ goto :die
|
|||||||
:die
|
:die
|
||||||
echo.
|
echo.
|
||||||
if "%UNATTENDED%"=="1" (
|
if "%UNATTENDED%"=="1" (
|
||||||
timeout /T 5 /NOBREAK
|
timeout /t 5 /nobreak
|
||||||
) else (
|
) else (
|
||||||
echo Press any key to exit...
|
echo Press any key to exit...
|
||||||
pause >nul
|
pause >nul
|
||||||
|
Reference in New Issue
Block a user