diff --git a/packages/fwsupdates.xml b/packages/fwsupdates.xml index f5cbb43..7feed72 100755 --- a/packages/fwsupdates.xml +++ b/packages/fwsupdates.xml @@ -6,7 +6,7 @@ reboot="false" priority="95"> - + diff --git a/softwares/FWSUpdates/bin/on_shutdown.bat b/softwares/FWSUpdates/bin/on_shutdown.bat index d411754..7d8eb13 100644 --- a/softwares/FWSUpdates/bin/on_shutdown.bat +++ b/softwares/FWSUpdates/bin/on_shutdown.bat @@ -10,6 +10,8 @@ IF %ERRORLEVEL% EQU 0 FOR /F "tokens=3" %%A IN ('reg query "HKLM\Software\FWS\Up REM disable exec on shutdown in any case reg delete "HKLM\Software\FWS\Updates\User" /v RunOnShutdown /f 1>NUL 2>NUL reg delete "HKLM\Software\FWS\Updates" /v RunOnShutdown /f 1>NUL 2>NUL +REM also makes sure we clear the sync flag +reg delete "HKLM\Software\FWS\Updates" /v SyncInProgress /f 1>NUL 2>NUL REM If neither admin nor user RunOnShutdown is enabled, skip execution IF %USER_RUN% NEQ 1 IF %ADMIN_RUN% NEQ 1 goto :EOF