Fix no update IF/ELSE condition

master
Daniel Berteaud 9 years ago
parent ad4aeb199c
commit ccb603b756
  1. 22
      softwares/FWSUpdates/bin/chkupd.bat

@ -96,16 +96,17 @@ SET /A CAN_REPORT=0
IF %NOW% LEQ %MAX% SET /A CAN_REPORT=1 IF %NOW% LEQ %MAX% SET /A CAN_REPORT=1
IF %ADMIN% EQU 1 SET /A CAN_REPORT=1 IF %ADMIN% EQU 1 SET /A CAN_REPORT=1
IF %CHANGES% LSS 1 IF %ADMIN% EQU 1 ( IF %CHANGES% LSS 1 (
SET watext=%L_NO_UPDATE_AVAILABLE% %L_FOR_YOUR_SYSTEM%. IF %ADMIN% EQU 1 (
SET wainput= %L_CHECK_ONLINE_FOR_UPDATES% SET watext=%L_NO_UPDATE_AVAILABLE% %L_FOR_YOUR_SYSTEM%.
SET waoutnum=0 SET wainput= %L_CHECK_ONLINE_FOR_UPDATES%
start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe NOBACK RB SET waoutnum=0
IF errorlevel 2 goto cancel_no_update start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe NOBACK RB
IF errorlevel 1 goto previous IF errorlevel 2 goto cancel_no_update
IF !waoutnum! EQU 0 goto check IF errorlevel 1 goto previous
) IF !waoutnum! EQU 0 goto check
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%; %L_DISPLAY_AVAILABLE_UPDATES% SET wainput= %L_SCHEDULE_ON_SHUTDOWN%; %L_REPORT%; %L_DISPLAY_AVAILABLE_UPDATES%
@ -184,3 +185,4 @@ CALL %~dp0\sync.bat
start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe PB CLOSE start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe PB CLOSE
goto begin goto begin

Loading…
Cancel
Save