<source lang="xml">
<package
id='7zip'
name='7-Zip'
revision="%version%"
reboot="false"
priority="1">
<package id='7zip' variable name='7-Zip' revision="%version%"value="16.04" /> reboot <variable name="falsefilever" priorityvalue="701604"/>
<variable namecheck type="uninstall" condition="exists" path="7-Zip %version%" valuearchitecture="16.04x86" /> <variable namecheck type="fileveruninstall" condition="exists" path="7-Zip %version% (x64 edition)" valuearchitecture="1604x64" />
<check type="logical" condition="or"> <check type="uninstall" condition="exists" path="7-Zip %version%" /> <check type="uninstall" condition="exists" path="7-Zip %version% (x64 edition)" /> </check> <install cmd='msiexec /qn /norestart /i %SOFTWARE%\7zip\7z%filever%.msi' architecture="x86" /> <install cmd='msiexec /qn /norestart /i %SOFTWARE%\7zip\7z%filever%-x64.msi' architecture="x64" /> <install cmd="%comspec% /c %SOFTWARE%\7zip\7zext.bat"><exit code="any"/></install> <upgrade include="remove" /> <upgrade include="install" />
<downgrade upgrade include="remove" /> <downgrade upgrade include="install" />
<downgrade include="remove cmd" /> <downgrade include='wmic product where "name like '7-Zip%%'install" call uninstall' />
<remove cmd='wmic product where "name like '7-Zip%%'" call uninstall' /> </package>
</source>