20
edits
Changes
7-Zip
,MSI installer for 9.22
A free file compressor/extractor: [http://www.7-zip.org/ www.7-zip.org]
== MSI installer for 9.22 ==
<source lang="xml">
<package
id="7zip"
name="7-Zip"
revision="%PKG_VERSION%"
reboot="false"
priority="1">
<variable name="PKG_VERSION" value="9.22" />
<variable name="PKG_EXE_x86" value="7z_%PKG_VERSION%.msi" />
<variable name="PKG_EXE_x64" value="7z_%PKG_VERSION%_x64.msi" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\7zip" />
<variable name="PKG_INSTALL_SWITCH" value='/qn /passive' />
<variable name="PKG_REMOVE_SWITCH" value='/qn /passive' />
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="7-Zip %PKG_VERSION%" />
<check type="uninstall" condition="exists" path="7-Zip %PKG_VERSION% (x64 edition)" />
</check>
<commands>
<command type="install" cmd='MsiExec.exe /i "%PKG_SOURCE%\%PKG_EXE_x86%" %PKG_INSTALL_SWITCH%' architecture="x86" />
<command type="install" cmd='MsiExec.exe /i "%PKG_SOURCE%\%PKG_EXE_x64%" %PKG_INSTALL_SWITCH%' architecture="x64" />
<command type="upgrade" include="install" />
<command type="remove" cmd='MsiExec.exe /x "%PKG_SOURCE%\%PKG_EXE_x86%" %PKG_REMOVE_SWITCH%' architecture="x86" />
<command type="remove" cmd='MsiExec.exe /x "%PKG_SOURCE%\%PKG_EXE_x64%" %PKG_REMOVE_SWITCH%' architecture="x64" />
</commands>
</package>
</source>
== MSI installer package.xml ==
<remove cmd='msiexec /x "%SOFTWARE%\7zip\7z920-x64.msi" /qn' architecture='x64' />
</package>
</source>