Changes

Jump to: navigation, search

7-Zip

1,121 bytes added, 19:08, 10 May 2020
Add alternate config version for 19.00
<remove cmd='wmic product where "name like &apos;7-Zip%%&apos;" call uninstall' />
</package>
</source>
Alternate version with more parameters:
<source lang="xml">
<package
id='7zip'
name='7-Zip'
revision="%PKG_VERSION%"
reboot="false"
priority="0">
 
<variable name="PKG_VERSION" value="19.00" />
<variable name="FILE_VERSION" value="1900" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\7zip" />
<variable name="PKG_NAME" value="7z%FILE_VERSION%.msi" architecture="x86" />
<variable name="PKG_NAME" value="7z%FILE_VERSION%-x64.msi" architecture="x64" />
<variable name="PKG_INSTALL_SWITCH" value="/qn /norestart" />
 
<check type="uninstall" condition="exists" path="7-Zip %PKG_VERSION%" architecture="x86" />
<check type="uninstall" condition="exists" path="7-Zip %PKG_VERSION% (x64 edition)" architecture="x64" />
<install cmd='msiexec /i "%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />
<install cmd='%COMSPEC% /C regedit /s "%PKG_SOURCE%\7zext.reg"' />
<upgrade include="remove" />
<upgrade include="install" />
 
<downgrade include="remove" />
<downgrade include="install" />
 
<remove cmd='wmic product where "name like &apos;7-Zip%%&apos;" call uninstall' />
</package>
</source>
74
edits

Navigation menu