|
|
@ -71,7 +71,7 @@ IF %CHANGES% LSS 1 IF %ADMIN% NEQ 1 ( |
|
|
|
SET /A NOW=%DATE:~-4%%DATE:~3,2%%DATE:~0,2% |
|
|
|
SET /A NOW=%DATE:~-4%%DATE:~3,2%%DATE:~0,2% |
|
|
|
SET /A SINCE=%NOW% |
|
|
|
SET /A SINCE=%NOW% |
|
|
|
reg query "HKLM\Software\FWS\Updates" /v ChangesAvailableSince 1>NUL 2>NUL |
|
|
|
reg query "HKLM\Software\FWS\Updates" /v ChangesAvailableSince 1>NUL 2>NUL |
|
|
|
IF %ERRORLEVEL% EQU 0 OR /F "tokens=3 delims= " %%A IN ('reg query "HKLM\Software\FWS\Updates" /v ChangesAvailableSince') DO SET /A SINCE=%%A |
|
|
|
IF %ERRORLEVEL% EQU 0 FOR /F "tokens=3 delims= " %%A IN ('reg query "HKLM\Software\FWS\Updates" /v ChangesAvailableSince') DO SET /A SINCE=%%A |
|
|
|
|
|
|
|
|
|
|
|
REM Some wording changes if there's only 1 single change to apply |
|
|
|
REM Some wording changes if there's only 1 single change to apply |
|
|
|
IF %CHANGES% EQU 1 ( |
|
|
|
IF %CHANGES% EQU 1 ( |
|
|
@ -108,13 +108,13 @@ IF %CHANGES% LSS 1 IF %ADMIN% EQU 1 ( |
|
|
|
ELSE ( |
|
|
|
ELSE ( |
|
|
|
IF %CAN_REPORT% EQU 1 ( |
|
|
|
IF %CAN_REPORT% EQU 1 ( |
|
|
|
SET watext=%INTRO% %L_FOR_YOUR_SYSTEM%.~~%L_YOU_CAN_SCHEDULE%.~~%L_INSTALL_FORCED_IN% %REMAINING% %L_DAYS% |
|
|
|
SET watext=%INTRO% %L_FOR_YOUR_SYSTEM%.~~%L_YOU_CAN_SCHEDULE%.~~%L_INSTALL_FORCED_IN% %REMAINING% %L_DAYS% |
|
|
|
SET wainput= %L_SCHEDULE_ON_SHUTDOWN%; %L_REPORT% |
|
|
|
SET wainput= %L_SCHEDULE_ON_SHUTDOWN%; %L_REPORT%; %L_DISPLAY_AVAILABLE_UPDATES% |
|
|
|
IF %ADMIN% EQU 1 ( |
|
|
|
IF %ADMIN% EQU 1 ( |
|
|
|
IF %RUN_ON_SHUTDOWN% NEQ 1 ( |
|
|
|
IF %RUN_ON_SHUTDOWN% NEQ 1 ( |
|
|
|
SET wainput= %L_SCHEDULE_ON_SHUTDOWN%; %L_REPORT%; %L_INSTALL_NOW%; %L_CHECK_ONLINE_FOR_UPDATES% |
|
|
|
SET wainput= %L_SCHEDULE_ON_SHUTDOWN%; %L_REPORT%; %L_DISPLAY_AVAILABLE_UPDATES%; %L_INSTALL_NOW%; %L_CHECK_ONLINE_FOR_UPDATES% |
|
|
|
) ELSE ( |
|
|
|
) ELSE ( |
|
|
|
SET watext=%INTRO% %L_FOR_YOUR_SYSTEM%.~~%L_ALREADY_SCHEDULED_ON_SHUTDOWN%.~~%L_INSTALL_FORCED_IN% %REMAINING% %L_DAYS% |
|
|
|
SET watext=%INTRO% %L_FOR_YOUR_SYSTEM%.~~%L_ALREADY_SCHEDULED_ON_SHUTDOWN%.~~%L_INSTALL_FORCED_IN% %REMAINING% %L_DAYS% |
|
|
|
SET wainput= %L_MAINTAIN_ON_SHUTDOWN%; %L_CANCEL_SCHEDULE_ON_SHUTDOWN%; %L_INSTALL_NOW%; %L_CHECK_ONLINE_FOR_UPDATES% |
|
|
|
SET wainput= %L_MAINTAIN_ON_SHUTDOWN%; %L_CANCEL_SCHEDULE_ON_SHUTDOWN%; %L_DISPLAY_AVAILABLE_UPDATES%; %L_INSTALL_NOW%; %L_CHECK_ONLINE_FOR_UPDATES% |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -126,8 +126,9 @@ ELSE ( |
|
|
|
CALL %wabat% |
|
|
|
CALL %wabat% |
|
|
|
IF !waoutnum! EQU 0 goto shutdown |
|
|
|
IF !waoutnum! EQU 0 goto shutdown |
|
|
|
IF !waoutnum! EQU 1 goto later |
|
|
|
IF !waoutnum! EQU 1 goto later |
|
|
|
IF !waoutnum! EQU 2 goto now |
|
|
|
IF !waoutnum! EQU 2 goto display |
|
|
|
IF !waoutnum! EQU 3 goto check |
|
|
|
IF !waoutnum! EQU 3 goto now |
|
|
|
|
|
|
|
IF !waoutnum! EQU 4 goto check |
|
|
|
) ELSE ( |
|
|
|
) ELSE ( |
|
|
|
SET watext=%INTRO% %L_FOR_YOUR_SYSTEM%.~~%AVAILABLE_SINCE% %L_SINCE% %AGE% %L_DAYS%.~~%L_CANT_REPORT_ANYMORE% |
|
|
|
SET watext=%INTRO% %L_FOR_YOUR_SYSTEM%.~~%AVAILABLE_SINCE% %L_SINCE% %AGE% %L_DAYS%.~~%L_CANT_REPORT_ANYMORE% |
|
|
|
start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe FINISH TB |
|
|
|
start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe FINISH TB |
|
|
@ -154,6 +155,13 @@ start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe FINISH NOBACK TB |
|
|
|
SET /A WAIT=WAIT+10800 |
|
|
|
SET /A WAIT=WAIT+10800 |
|
|
|
goto loop |
|
|
|
goto loop |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:display |
|
|
|
|
|
|
|
SET watext=%L_THESE_UPDATES_ARE_PENDING% |
|
|
|
|
|
|
|
FOR /F "tokens=3 delims= " %%A IN ('reg query "HKLM\Software\FWS\Updates" /v PendingChangesList') DO SET LIST=%%A |
|
|
|
|
|
|
|
SET wainput=%LIST:,=~% |
|
|
|
|
|
|
|
start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe NOBACK FT |
|
|
|
|
|
|
|
goto begin |
|
|
|
|
|
|
|
|
|
|
|
:shutdown |
|
|
|
:shutdown |
|
|
|
reg add "HKLM\Software\FWS\Updates\User" /v RunOnShutdown /t REG_DWORD /d 1 /f |
|
|
|
reg add "HKLM\Software\FWS\Updates\User" /v RunOnShutdown /t REG_DWORD /d 1 /f |
|
|
|
SET watext=%L_UPDATES_SCHEDULED% |
|
|
|
SET watext=%L_UPDATES_SCHEDULED% |
|
|
|