Disable RUnOnShutdown when manually checking for updates

master
Daniel Berteaud 8 years ago
parent a35384abe2
commit 692ff802b4
  1. 2
      packages/fwsupdates.xml
  2. 3
      softwares/FWSUpdates/bin/chkupd.bat

@ -6,7 +6,7 @@
reboot="false" reboot="false"
priority="95"> priority="95">
<variable name="PKG_VERSION" value="1.16" /> <variable name="PKG_VERSION" value="1.17" />
<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%" />

@ -150,6 +150,9 @@ goto :loop
:check :check
IF %ADMIN% NEQ 1 goto later IF %ADMIN% NEQ 1 goto later
REM We're checking for update, disable RUnOnShutdown so sync will happen
reg delete "HKLM\Software\FWS\Updates" /v RunOnShutdown /f 1>NUL 2>NUL
reg delete "HKLM\Software\FWS\Updates\User" /v RunOnShutdown /f 1>NUL 2>NUL
SET watext=%L_CHECKING_UPDATES% SET watext=%L_CHECKING_UPDATES%
start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe PB OPEN NOBACK NOCANCEL start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe PB OPEN NOBACK NOCANCEL
start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe PB UPDATE 10 start /w %SystemDrive%\FWSUpdates\bin\wizapp.exe PB UPDATE 10

Loading…
Cancel
Save