Changes

7-Zip

2,019 bytes added, 15:12, 9 March 2010
update to 9.10 beta
"Use the "/S" parameter to do a silent installation and the "/D=dir" parameter to specify the "output directory". These options are case-sensitive. 7-Zip uses the NSIS installer by Nullsoft." - http://www.7-zip.org/faq.html
== 7-ZIP 9.07 10 (beta) for 32bit and 64bit hosts == Here an example to install the newer 9.07 beta version of 7-Zip. The GID has changed, so using the msi method for the removal is maybe the best.
<source lang="xml">
<?xml version="1.0" encoding="utf-8" ?>
<packages>
<package id='7zip' name='7-Zip9.10' revision='907910' priority='50' reboot='false' >
<check type="logical" condition="or"> <check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE" value="AMD64" /> <check type='uninstall' condition='exists' path='7-Zip 9.0710' /> </check>
<!-- First Uninstall the .exe --> <install cmd='%comspec% /c if exist "%PROGRAMFILES%\7-Zip\Uninstall.exe" "%PROGRAMFILES%\7-Zip\Uninstall.exe" /S' /> <install cmd='msiexec /i "%SOFTWARE%\7zip\7z9077z910.msi" /qn/norestart' />
<!-- 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". --> <upgrade cmd='%comspec% /c if exist "%PROGRAMFILES%\7-Zip\Uninstall.exe" "%PROGRAMFILES%\7-Zip\Uninstall.exe" /S' /> <upgrade cmd='msiexec /i "%SOFTWARE%\7zip\7z9077z910.msi" /qn/norestart' /> <remove cmd='msiexec /x "%SOFTWARE%\7zip\7z910.msi" /qn' /></package>
<package id='7zip-64' name='7-Zip 9.10 (x64 edition)' revision='910' priority='50' reboot='false' > <check type="logical" condition="or"> <check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE" value="x86" /> <check type='uninstall' condition='exists' path='7-Zip 9.10 (x64 edition)' /> </check> <!-- First Uninstall the .exe --> <install cmd='%comspec% /c if exist "%PROGRAMFILES(x86)%\7-Zip\Uninstall.exe" "%PROGRAMFILES%(x86)\7-Zip\Uninstall.exe" /S' /> <install cmd='msiexec /i "%SOFTWARE%\7zip\7z910-x64.msi" /qn /norestart' /> <!-- 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". --> <upgrade cmd='%comspec% /c if exist "%PROGRAMFILES(x86)%\7-Zip\Uninstall.exe" "%PROGRAMFILES%(x86)\7-Zip\Uninstall.exe" /S' /> <upgrade cmd='msiexec /i "%SOFTWARE%\installs\7zip\7z910-x64.msi" /qn /norestart' /> <remove cmd='msiexec /x "%SOFTWARE%\7zip\7z9077z910-x64.msi" /qn' /></package>
</package>
</packages>
</source>
 
== Links ==
Anonymous user