</source>
=Installing with wpkg v2=
I have another way to work this, because i install with wpkg but without WPKG Client, maybe it helps someone.
This package definition works with the latest wpkg.js (1.3 as of this writting) running on the server, it installs the version acording to its architecture:
<source lang="xml">
<package id="wpkg-gp" name="Wpkg-GP" revision="%version%">
<variable name="version" value="0.16" />
<variable name="EXE" value="%SOFTWARE%\wpkg\Wpkg-GP-0.16_x86.exe" architecture="x86" />
<variable name="EXE" value="%SOFTWARE%\wpkg\Wpkg-GP-0.16_x64.exe" architecture="x64" />
<check type="uninstall" condition="versiongreaterorequal" path="Wpkg-GP %version% .*" value="%version%"/>
<install cmd="%EXE% /S /INI %SOFTWARE%\wpkg\Wpkg-GP.ini">
<exit code="3010" reboot="delayed" />
</install>
<install cmd='%COMSPEC% /c REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v GpNetworkStartTimeoutPolicyValue /t REG_DWORD /d 90 /f' os="microsoft windows 7" />
<upgrade include="install" />
</package>
</source>
For installing WPKG-GP for the first time, I just run:
<code>cscript \\server\path\to\wpkg.js /synchronize</code>
on the 'Run' dialog box of the Windows Client.
= External Links =