[wpkg-users] WPKG Settings update through WPKG

Jens Geile jens.geile at mzbs.de
Wed Jul 9 12:11:15 CEST 2008


Hi,

today I tried to create a little package to update the WPKG settings on all clients and used the script found at http://wpkg.org/WPKG as base:

<package id="wpkg-settings" name="WPKG Settings" revision="1" priority="1000" reboot="true" execute="once">
  <install cmd='"%PROGRAMFILES%\WPKG\wpkginst.exe" --SETTINGSFILE="%SOFTWARE%\WPKG\settings.xml"' />
  <upgrade cmd='"%PROGRAMFILES%\WPKG\wpkginst.exe" --SETTINGSFILE="%SOFTWARE%\WPKG\settings.xml"' />
  <remove cmd='echo "nothing"' />
</package>

But everytime I ran the script the command failed and return a non-zero exitcode (2).

After some testing and changing the script I changed the settingsfile parameter from:
  --SETTINGSFILE="%SOFTWARE%\WPKG\settings.xml"
to:
  --SETTINGSFILE=%SOFTWARE%\WPKG\settings.xml
without the double quotes and it worked!

Could it be that the settingsfile parameter (or the parsing of it) is broken? I'm using WPKG Client 1.3.2 at the moment. I currently don't really have to time to test it with 1.3.4 but if needed I'll make some time for it. But I seriously doubt that it'd make a difference.

-
jens



More information about the wpkg-users mailing list