577
edits
Changes
7-Zip
,Make headings more descriptive. Fix 9.22 MSI filename. Make more readable.
A free file compressor/extractor: [http://www.7-zip.org/ www.7-zip.org]
== MSI installer for 7-Zip 9.22 (beta) MSI installer (32-bit and 64-bit versions) ==
<source lang="xml">
<package
<variable name="PKG_VERSION" value="9.22" />
<variable name="PKG_EXE_x86" value="7z_7z%PKG_VERSION%.msi" /> <variable name="PKG_EXE_x64" value="7z_7z%PKG_VERSION%_x64-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="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>
== 7-Zip 9.20 MSI installer package.xml (32-bit and 64-bit versions) ==
<source lang="xml">
<package id='7zip' name='7-Zip Packer' revision='920' priority='0' reboot='false'>
<check type='logical' condition='or'>
<check type='uninstall' condition='exists' path='7-Zip 9.20' />
<check type='uninstall' condition='exists' path='7-Zip 9.20 (x64 edition)' />
</check>
<!-- If you do a .msi based install without first uninstalling the .exe
version it will leave some files from the .exe based install intact
as well as an entry in "Add/Remove Programs". -->
<install cmd='%comspec% /c if exist "%PROGRAMFILES%\7-Zip\Uninstall.exe" "%PROGRAMFILES%\7-Zip\Uninstall.exe" /S' />
<install cmd='msiexec /i "%SOFTWARE%\7zip\7z920.msi" /qn' architecture='x86' />
<install cmd='msiexec /i "%SOFTWARE%\7zip\7z920-x64.msi" /qn' architecture='x64' />
<install cmd='"%SOFTWARE%\7zip\7zext.bat">nul'><exit code="any"/></install>
<upgrade cmd='%comspec% /c if exist "%PROGRAMFILES%\7-Zip\Uninstall.exe" "%PROGRAMFILES%\7-Zip\Uninstall.exe" /S' />
<upgrade cmd='msiexec /i "%SOFTWARE%\7zip\7z920.msi" /qn' architecture='x86' />
<upgrade cmd='msiexec /i "%SOFTWARE%\7zip\7z920-x64.msi" /qn' architecture='x64' />
<upgrade cmd='"%SOFTWARE%\7zip\7zext.bat">nul'><exit code="any"/></upgrade>
<remove cmd='msiexec /x "%SOFTWARE%\7zip\7z920.msi" /qn' architecture='x86' />
<remove cmd='msiexec /x "%SOFTWARE%\7zip\7z920-x64.msi" /qn' architecture='x64' />
</package>