Texmaker

Silent installer for Texmaker, an open-source LaTeX editor. More infos from here. Only x64 version from 5.x available!

<package 
	id="texmaker" 
	name="Texmaker"
	revision="%PKG_VERSION%"
	reboot="false"
	priority="0">

	<variable name="PKG_VERSION"		value="5.0.4" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\TEX\Texmaker" />
	<variable name="PKG_NAME"		value="Texmaker_%PKG_VERSION%_Win_x64.msi" />
	<variable name="PKG_INSTALL_SWITCH"	value="/qn /norestart" />
	<variable name="PKG_REMOVE_SWITCH"	value="/qn" />
<!--	<variable name="PKG_DESTINATION"	value="%ProgramFiles%\Texmaker" architecture="x64" />
	<variable name="PKG_DESTINATION"	value="%ProgramFiles(x86)%\Texmaker" architecture="x86" /> -->

	<check type="uninstall" condition="versiongreaterorequal" path="Texmaker .+" value="%PKG_VERSION%" />

	<install include='remove' />
	<install cmd='msiexec /i "%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />

	<downgrade include='remove' />
	<downgrade include='install' />
	
	<upgrade include='remove' />
	<upgrade include='install' />

<!-- Removing old(4.5 and earlyer) version 		
	<remove cmd="%PKG_DESTINATION%\uninstall.exe /S">
		<exit code='any' />
	</remove> -->
	<remove cmd='wmic product where "name like &apos;Texmaker%%&apos;" call uninstall' /> 
</package>