Difference between revisions of "WPKG-GP"
(→Installing with wpkg v2) |
(Update 0.15 to 0.16) |
||
Line 9: | Line 9: | ||
If you have already installed the standard [[WPKG Client]], you can use a package to replace it with WPKG-GP. | If you have already installed the standard [[WPKG Client]], you can use a package to replace it with WPKG-GP. | ||
− | This example installs version 0. | + | This example installs version 0.16, with a configuration defined through a [http://code.google.com/p/wpkg-gp/source/browse/trunk/Wpkg-GP.ini wpkg-GP.ini file]. Then it uninstalls the standard Wpkg Client. |
<source lang="xml"> | <source lang="xml"> | ||
<package id="wpkg-gp" name="Wpkg-GP" revision="%version%"> | <package id="wpkg-gp" name="Wpkg-GP" revision="%version%"> | ||
− | <variable name="version" value="0. | + | <variable name="version" value="0.16" /> |
<check type="uninstall" condition="versiongreaterorequal" path="Wpkg-GP %version% .*" value="%version%"/> | <check type="uninstall" condition="versiongreaterorequal" path="Wpkg-GP %version% .*" value="%version%"/> | ||
− | <install cmd="%SOFTWARE%\wpkg-gp\Wpkg-GP-0. | + | <install cmd="%SOFTWARE%\wpkg-gp\Wpkg-GP-0.16_x64.exe /S /INI %SOFTWARE%\wpkg-gp\Wpkg-GP.ini"> |
<exit code="3010" reboot="delayed" /> | <exit code="3010" reboot="delayed" /> | ||
</install> | </install> | ||
<install cmd='msiexec /x "%SOFTWARE%\wpkg\WPKG Client 1.3.14-x64.msi" /qn /norestart' /> | <install cmd='msiexec /x "%SOFTWARE%\wpkg\WPKG Client 1.3.14-x64.msi" /qn /norestart' /> | ||
− | <upgrade cmd="%SOFTWARE%\wpkg-gp\Wpkg-GP-0. | + | <upgrade cmd="%SOFTWARE%\wpkg-gp\Wpkg-GP-0.16_x64.exe /S /INI %SOFTWARE%\wpkg-gp\Wpkg-GP.ini"> |
<exit code="3010" reboot="delayed" /> | <exit code="3010" reboot="delayed" /> | ||
</upgrade> | </upgrade> | ||
Line 39: | Line 39: | ||
<package id="wpkg-gp" name="Wpkg-GP" revision="%version%"> | <package id="wpkg-gp" name="Wpkg-GP" revision="%version%"> | ||
− | <variable name="version" value="0. | + | <variable name="version" value="0.16" /> |
− | <variable name="EXE" value="%SOFTWARE%\wpkg\Wpkg-GP-0. | + | <variable name="EXE" value="%SOFTWARE%\wpkg\Wpkg-GP-0.16_x86.exe" architecture="x86" /> |
− | <variable name="EXE" value="%SOFTWARE%\wpkg\Wpkg-GP-0. | + | <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%"/> | <check type="uninstall" condition="versiongreaterorequal" path="Wpkg-GP %version% .*" value="%version%"/> |
Revision as of 17:58, 4 March 2014
This article is a stub. You can help WPKG Wiki by expanding it.
WPKG-GP hooks into the Group Policy Extensions (GPE) interface available in Windows (the one saying "Applying Group Policies" at boot up), and executing wpkg.js, providing some feedback to the user via the interfaces made available by GPE. This gets around the issue in Windows Vista/7, where delayed login is unavailable owing to the way Windows Vista's security architecture is structured.
Installing with wpkg
If you have already installed the standard WPKG Client, you can use a package to replace it with WPKG-GP.
This example installs version 0.16, with a configuration defined through a wpkg-GP.ini file. Then it uninstalls the standard Wpkg Client.
<package id="wpkg-gp" name="Wpkg-GP" revision="%version%">
<variable name="version" value="0.16" />
<check type="uninstall" condition="versiongreaterorequal" path="Wpkg-GP %version% .*" value="%version%"/>
<install cmd="%SOFTWARE%\wpkg-gp\Wpkg-GP-0.16_x64.exe /S /INI %SOFTWARE%\wpkg-gp\Wpkg-GP.ini">
<exit code="3010" reboot="delayed" />
</install>
<install cmd='msiexec /x "%SOFTWARE%\wpkg\WPKG Client 1.3.14-x64.msi" /qn /norestart' />
<upgrade cmd="%SOFTWARE%\wpkg-gp\Wpkg-GP-0.16_x64.exe /S /INI %SOFTWARE%\wpkg-gp\Wpkg-GP.ini">
<exit code="3010" reboot="delayed" />
</upgrade>
</package>
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:
<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>
For installing WPKG-GP for the first time, I just run:
cscript \\server\path\to\wpkg.js /synchronize
on the 'Run' dialog box of the Windows Client.