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

Loading…
Cancel
Save