Changes

7-Zip

2,691 bytes added, 15:42, 17 December 2009
MSI installer package.xml for use with existing older exe based installs with mixed 32-bit/64-bit hosts
<remove cmd='msiexec /qn /norestart /x %SOFTWARE%\7zip\7z465.msi' />
</package>
</source>
 
== MSI installer for use with existing older exe based installs with mixed 32-bit/64-bit hosts==
 
On a 64-bit host, install the 64-bit version is mandatory as the 32-bit version on 7-Zip doesn't integrate in the explorer.
 
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
 
<packages>
 
<package
id='7zip'
name='7-Zip Packer'
revision='465'
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 4.65'
/>
</check>
 
<!-- Firts 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\7z465.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\7z465.msi" /qn /norestart' />
 
</package>
 
<package
id='7zip-64'
name='7-Zip 4.65 (x64 edition)'
revision='465'
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 4.65 (x64 edition)'
/>
</check>
 
<!-- Firts 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\7z465-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%\7-Zip\Uninstall.exe" "%PROGRAMFILES%\7-Zip\Uninstall.exe" /S' />
<upgrade cmd='msiexec /i "%SOFTWARE%\7zip\7z465-x64.msi" /qn /norestart' />
 
</package>
 
 
</packages>
</source>
43
edits