0
edits
Changes
simplified package
priority="999">
<variable name="PKG_VER" value="1.3.14" /> <variable name="PKG_EXE_VER" value="1.0.0.22" /> <variable name="PKG_SOURCE" value="%SOFTWARE%\WPKG\WPKG Client\WPKG Client %PKG_VER%-%PROCESSOR_ARCHITECTURE%.msi" />
<check type!-- replace x32 with x86 and x64 with AMD64 in the installer file name --> <variable name="uninstallPKG_SOURCE" condition="versiongreaterorequal" path="WPKG" value="%SOFTWARE%\WPKG Client\WPKG Client %PKG_VER%-%PROCESSOR_ARCHITECTURE%.msi"/> <check type="fileuninstall" condition="versiongreaterorequal" path="%ProgramFiles%\wpkg\wpkginst.exeWPKG" value="%PKG_EXE_VERPKG_VER%" />
<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%"' />