Changes

WPKG Client

576 bytes added, 18:36, 22 July 2014
Updates
=== Updates ===
7-1422-14: Updated to include uninstall at Up/Down and proper uninstall strings for x86 and x64using MSI file. 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. Set script to delete the WPKG.xml file to ensure it is getting the newest version. When updating, all you need to do is rename the actual MSI file and change the revision. Tested on XP and Win7.
First create a WPKG-Client package like this:
<?xml version="1.0" encoding="UTF-8"?>
 
 
<packages:packages xmlns:packages="http://www.wpkg.org/packages"
id="WPKGClient"
name="WPKG Client 1.3.14"
revision="1.411" <!-- This is an arbitrary number --> reboot="falsetrue"
priority="99999">
<!-- because the client hasn't been installed yet we cannot use the SOFTWARE parameter for paths -->
<variable name="PKG_PATH" value="<path to package>" /> <variable name="XML" value="c:\windows\gsuro.com\dfsSystem32\wpkg\packages\WPKGClient.xml" /> <!-- Check for EXE file version to see if already installed and up to date -->
<check type="file" condition="versionequalto" path="%PROGRAMFILES%\wpkg\wpkginst.exe" value="1.0.0.22" />
<!-- Install x86 Client -->
<install architecture="x86" cmd="%ComSpec% /c del %XML%" />
<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="%ComSpec% /c del %XML%" /> <install architecture="x64" cmd="msiexec /i %PKG_PATH%\x64\WPKGClientx64.msi /qn SETTINGSFILE=%PKG_PATH%\WPKG_SettingWPKG_Settings.xml" />
<!-- Upgrade x86 Client -->
<upgrade architecture="x86" cmd="%ComSpec% /c del %XML%" /> <upgrade architecture="x86" cmd="MsiExec.exe msiexec /x {5667CA35-F658-4D0D-97E1-84430DD8F94E} %PKG_PATH%\x86\WPKGClientx86.msi /qn" />
<upgrade architecture="x86" cmd="msiexec /i %PKG_PATH%\x86\WPKGClientx86.msi /qn SETTINGSFILE=%PKG_PATH%\WPKG_Settings.xml" />
<!-- Upgrade x64 Client -->
<upgrade architecture="x86x64" cmd="MsiExec.exe %ComSpec% /c del %XML%" /> <upgrade architecture="x64" cmd="msiexec /x {0FAE4D7E-551C-4C50-8935-C05408A49A73} %PKG_PATH%\x64\WPKGClientx64.msi /qn" />
<upgrade architecture="x64" cmd="msiexec /i %PKG_PATH%\x64\WPKGClientx64.msi /qn SETTINGSFILE=%PKG_PATH%\WPKG_Settings.xml" />
<!-- Downgrade x86 Client -->
<upgrade downgrade architecture="x86" cmd="MsiExec.exe %ComSpec% /c del %XML%" /> <downgrade architecture="x86" cmd="msiexec /x {5667CA35-F658-4D0D-97E1-84430DD8F94E} %PKG_PATH%\x86\WPKGClientx86.msi /qn" /> <downgrade architecture="x86" cmd="msiexec /i %PKG_PATH%\x86\WPKGClientx86.msi /qn SETTINGSFILE=%PKG_PATH%\WPKG_SettingsWPKG_Settings_AUC.xml" />
<!-- Downgrade x64 Client -->
<upgrade downgrade architecture="x86x64" cmd="MsiExec.exe %ComSpec% /c del %XML%" /> <downgrade architecture="x64" cmd="msiexec /x {0FAE4D7E-551C-4C50-8935-C05408A49A73} %PKG_PATH%\x64\WPKGClientx64.msi /qn" /> <downgrade architecture="x64" cmd="msiexec /i %PKG_PATH%\x64\WPKGClientx64.msi /qn SETTINGSFILE=%PKG_PATH%\WPKG_SettingsWPKG_Settings_AUC.xml" />
<!-- Uninstall Client -->
<remove uninstall cmd="%ComSpec% /c del %XML%" /> <uninstall architecture="x64x86" cmd="MsiExec.exe msiexec /x {5667CA35-F658-4D0D-97E1-84430DD8F94E} %PKG_PATH%\x86\WPKGClientx86.msi /qn" /> <remove uninstall architecture="x86x64" cmd="MsiExec.exe msiexec /x {0FAE4D7E-551C-4C50-8935-C05408A49A73} %PKG_PATH%\x64\WPKGClientx64.msi /qn" />
</package>
</packages:packages>
 
</source>
11
edits