<?xml version="1.0" encoding="UTF-8"?> <packages:packages xmlns:packages="http://www.wpkg.org/packages"> <package id="texmaker" name="Texmaker" revision="%version%.1" reboot="false" priority="70"> <variable name="VERSION" value="5.0.4" /> <check type="uninstall" condition="exists" path="Texmaker %VERSION% (64-bit)" /> <install cmd="msiexec /qn /i %WPKGSOFTWARE%\texmaker\Texmaker_%VERSION%_Win_x64.msi" /> <upgrade include="remove" /> <upgrade include="install" /> <!-- Remove non-msi version used e.g. in Chemistry until version 4.1.1, if present. Once installed by msi, uninstall.exe is no longer present. --> <remove cmd='"%PROGRAMFILES(x86)%\Texmaker\uninstall.exe" /S'> <condition> <check type="file" condition="exists" path='%PROGRAMFILES(x86)%\Texmaker\uninstall.exe' /> </condition> </remove> <remove cmd='msiexec /qn /x {A0BF9BD0-B576-47A7-B650-0204CB190D28}'> <exit code="1605" /> <!-- not installed, e.g. because we're upgrading from the old non-msi installer --> </remove> </package> </packages:packages>