Notepad2-mod

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

This is a silent installer for Notepad2-mod, a fork of Flo's Freeware Notepad2.

<?xml version="1.0" encoding="UTF-8"?>

<packages>

	<!-- Notepad2 - https://xhmikosr.github.io/notepad2-mod/ -->
	<package 
		id="notepad2-mod"
		name="Notepad2-mod"
		revision="%version%"
		reboot="false"
		priority="20">

		<variable name="version" value="4.2.25.998" />
		
		<variable name="installer" value="Notepad2-mod.4.2.25.998.exe" />
		
		<check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Notepad2\Notepad2.exe" value="%version%" />
		
		<install cmd="taskkill /F /IM notepad2.exe">
			<exit code="0" />
			<exit code="-1073741515" />
			<exit code="128" />
		</install>
		<install cmd='"%SOFTWARE%\Notepad2-mod\%installer%" /SUPPRESSMSGBOXES /NORESTART /NOICONS /VERYSILENT'>
			<exit code="any" />
		</install>

		<upgrade include="install" />

		<remove cmd='"%ProgramFiles%\Notepad2\unins000.exe" /SILENT' />
		
	</package>

</packages>