Changes

Variables

188 bytes removed, 10:26, 29 August 2012
updated example for wpkg.js 1.3 and above
Below find the host definition for two computers, where the host definition for TestPC is overwriting some variables.
<source lang="xml">
<host name="TestPC" profile-id="DesktopPC" > <variable name="PKG_VER" value="1.3.14" /></host>
<host name="OfficePC" profile-id="DesktopPC" />
<variable name="PKG_VER" value="1.3.9" />
<variable name="PKG_VER" value="1.3.14" hostname="^TestPC$"/>
 
<!-- replace x32 with x86 and x64 with AMD64 in the installer file name -->
<variable name="PKG_SOURCE" value="%SOFTWARE%\WPKG\WPKG Client\WPKG Client %PKG_VER%-%PROCESSOR_ARCHITECTURE%.msi" />
<check type="uninstall" condition="versiongreaterorequal" path="WPKG" value="%PKG_VER%"/>
<!-- replace x32 with x86 and x64 with AMD64 in the installer file name -->
<install cmd='msiexec /norestart /passive /log "%TMP%\WpkgClient.log" /i "%PKG_SOURCE%" ALLUSERS=1 SETTINGSFILE="%WPKG_ROOT%\settings.xml"' >
<exit code="1641" />
</install>
<upgrade cmdinclude='msiexec /norestart /passive /log "%TMP%\WpkgClient.loginstall" /i "%PKG_SOURCE%" ALLUSERS=1 SETTINGSFILE="%WPKG_ROOT%\settings.xml"' > <exit code="1641" /> <exit code="3010" reboot="false"/> </upgrade>
<remove cmd='MsiExec.exe /norestart /passive /log "%TMP%\WpkgClient.log" /x "%PKG_SOURCE%"' />
0
edits