Changes

WPKG Client

1,889 bytes added, 16:13, 14 July 2014
Group Policy WPKG mix
One other possibility is to use Group Policy to kick off [[wpkg.js]] so it can install WPKG-Client for you.
using this method also allows you to upgrade and change WPKG Client parameters in the future using WPKG itself.
 
=== Updates ===
7-14-14: Updated to include uninstall at Up/Down and proper uninstall strings for x86 and x64. Updated for newest version 1.3.14. For ease of future updates, rename MSI file to generic "WPKGClientx86.msi" or "WPKGClientx64.msi" based upon architecture. When updating, all you need to do is rename the actual file and change the revision. Tested on XP and Win7.
First create a WPKG-Client package like this:
 <source lang?xml version="xml1.0"encoding="UTF-8"?<packages:packages xmlns:packages="http://www.wpkg.org/packages" xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wpkg.org/packages ../xsd/packages.xsd">  <package id="gplwpkgclientWPKGClient" name="WPKG Client 1.3.914" revision="20111.04.20.004"<!-- This is an arbitrary number --> reboot="false" priority="99999">
<!-- because the client hasn't been installed yet we cannot use the SOFTWARE parameter for paths --> <variable name="PKG_PATH" value="\\myservergsuro.com\mysharedfs\softwarewpkg\Componentspackages\gpl.wpkg.client.1.3.9WPKGClient" />
<check type="uninstall" condition="exists" path="WPKG" /> <check type="file" condition="versionequalto" path="%PROGRAMFILES%\wpkg\wpkginst.exe" value="1.0.0.1822" /> <!-- Install x86 Client --> <install architecture="x86" cmd="msiexec /i %PKG_PATH%\x86\WPKGClientx86.msi /qn SETTINGSFILE=%PKG_PATH%\WPKG_Settings.xml" />  <!-- Install x64 Client --> <install architecture="x64" cmd="msiexec /i %PKG_PATH%\x64\WPKGClientx64.msi /qn SETTINGSFILE=%PKG_PATH%\WPKG_Setting.xml" />
<!-- Upgrade x86 Client -->
 
<upgrade architecture="x86" cmd="MsiExec.exe /x {5667CA35-F658-4D0D-97E1-84430DD8F94E} /qn" />
<upgrade architecture="x86" cmd="msiexec /i %PKG_PATH%\x86\WPKGClientx86.msi /qn SETTINGSFILE=%PKG_PATH%\WPKG_Settings.xml" />
 
<!-- Upgrade x64 Client -->
<upgrade architecture="x86" cmd="MsiExec.exe /x {0FAE4D7E-551C-4C50-8935-C05408A49A73} /qn" />
<upgrade architecture="x64" cmd="msiexec /i %PKG_PATH%\x64\WPKGClientx64.msi /qn SETTINGSFILE=%PKG_PATH%\WPKG_Settings.xml" />
<!-- Downgrade x86 Client -->
<upgrade architecture="x86" cmd="MsiExec.exe /x {5667CA35-F658-4D0D-97E1-84430DD8F94E} /qn" />
<downgrade architecture="x86" cmd="msiexec /i %PKG_PATH%\x86\WPKGClientx86.msi /qn SETTINGSFILE=%PKG_PATH%\WPKG_Settings.xml" />
 
<!-- Downgrade x64 Client -->
<upgrade architecture="x86" cmd="MsiExec.exe /x {0FAE4D7E-551C-4C50-8935-C05408A49A73} /qn" />
<downgrade architecture="x64" cmd="msiexec /i %PKG_PATH%\x64\WPKGClientx64.msi /qn SETTINGSFILE=%PKG_PATH%\WPKG_Settings.xml" />
 
<!-- Uninstall Client -->
<remove architecture="x64" cmd="MsiExec.exe /x {5667CA35-F658-4D0D-97E1-84430DD8F94E} /qn" />
<remove architecture="x86" cmd="MsiExec.exe /x {0FAE4D7E-551C-4C50-8935-C05408A49A73} /qn" />
<install cmd='msiexec /i "%PKG_PATH%\WPKG Client 1.3.9-x32.msi" /qn SETTINGSFILE="%PKG_PATH%\settings.xml"' /> <upgrade cmd='msiexec /i "%PKG_PATH%\WPKG Client 1.3.9-x32.msi" /qn SETTINGSFILE="%PKG_PATH%\settings.xml"' /> <remove cmd='MsiExec /x{08DF8731-5B69-4709-979A-CC08E49D7686} /qn' /package>
</package></sourcepackages:packages>
Then in Active Directory, create a new Group Policy object with the following setting:
* Computer Configuration → Windows Settings → Scripts(startup/shutdown) → '''Startup'''
** '''Script:''' \\myserver\myshare\wpkg.js
** '''Parameters:''' /install:gplwpkgclient WPKGClient /quiet
Job done!
11
edits