Remove SyncInProgress during shutdown

master
Daniel Berteaud 8 years ago
parent b5be746caf
commit a35384abe2
  1. 2
      packages/fwsupdates.xml
  2. 2
      softwares/FWSUpdates/bin/on_shutdown.bat

@ -6,7 +6,7 @@
reboot="false" reboot="false"
priority="95"> priority="95">
<variable name="PKG_VERSION" value="1.15" /> <variable name="PKG_VERSION" value="1.16" />
<check type="registry" condition="equals" path="HKLM\Software\FWS\Updates\ClientVersion" value="%PKG_VERSION%" /> <check type="registry" condition="equals" path="HKLM\Software\FWS\Updates\ClientVersion" value="%PKG_VERSION%" />

@ -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 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\User" /v RunOnShutdown /f 1>NUL 2>NUL
reg delete "HKLM\Software\FWS\Updates" /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 REM If neither admin nor user RunOnShutdown is enabled, skip execution
IF %USER_RUN% NEQ 1 IF %ADMIN_RUN% NEQ 1 goto :EOF IF %USER_RUN% NEQ 1 IF %ADMIN_RUN% NEQ 1 goto :EOF

Loading…
Cancel
Save