Am 24.11.2011 20:29, schrieb Alan Adams: > In message<4ECE0E82.3080401 at smi-softmark.de> you wrote: > >> Am 22.11.2011 18:32, schrieb Alan Adams: >>> For the former case I have had to resort to a scheduled task running >>> every 15 minutes doing net stop and net start on the service. There >>> doesn't seem to be an option to run once some period after login, but >>> it can be set to run periodically starting at login. 15 minutes was >>> chosen to reduce the risk of stopping wpkg while it was doing an >>> installation, against the risk of the laptop being shut down before it >>> had started - many lessons are only 15 minutes long. > >> Using wpkginst, if you set the service to stop after work, you can run >> the "net start wpkgservice" even every minute - it won't hurt. You don't >> need "net stop wpkgservice", and if "net start wpkgservice" is too soon, >> there's only a message that the service is running, yet. > > Neat. I like it. Now I just need to find the instructions on using > wpkg to update its own settings file - I'm sure I saw it on wpkg.org > somewhere. > Fine. I have a package for this - of course you could only use the line with wpkginst --SETTINGSFILE=...: <package id="wpkginst" name="WPKG Client 1.3.14" revision="7" reboot="false" priority="10"> <check type="uninstall" condition="exists" path="WPKG" /> <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\wpkg\wpkginst.exe" value="1.0.0.22" /> <install cmd='msiexec /norestart /qn /l* c:\netinst\logs\wpkginst.log /i "%SOFTWARE%\wpkg\WPKG32-1314.msi" ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\wpkg\settings.xml"' > <exit code="3010" /> </install> <upgrade cmd='msiexec /norestart /qn /l* c:\netinst\logs\wpkginst.log /i "%SOFTWARE%\wpkg\WPKG32-1314.msi" ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\wpkg\settings.xml"' > <exit code="3010" /> </upgrade> <upgrade cmd="%PROGRAMFILES%\WPKG\wpkginst.exe --SETTINGSFILE=%SOFTWARE%\wpkg\settings.xml" /> </package> BR, Falko |