Tftpd32

A silent installer for Tftpd32: a free firewall friendly dhcp, syslog sntp and tftp server for windows, tftp client.

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

<packages>

	<package 
		id="tftpd32"
		name="Tftpd32"
		revision="%version%"
		reboot="false"
		priority="20">

		<variable name="version" value="4.52" />
		
		<variable architecture="x86" name="installer" value="Tftpd32-4.5.2-setup.exe" />
		<variable architecture="x64" name="installer" value="Tftpd64-4.5.2-setup.exe" />
		
		<check architecture="x86" type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Tftpd32\tftpd32.exe" value="%version%" />
		<check architecture="x64" type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Tftpd64\tftpd64.exe" value="%version%" />
		
		<install cmd="&quot;%software%\Tftpd32\%installer%&quot; /S" />
		<install architecture="x86" cmd="%comspec% /C netsh advfirewall firewall add rule name=&quot;tftpd32&quot; dir=in program=&quot;%ProgramFiles%\Tftpd32\tftpd32.exe&quot; action=allow" />
		<install architecture="x64" cmd="%comspec% /C netsh advfirewall firewall add rule name=&quot;tftpd64&quot; dir=in program=&quot;%ProgramFiles%\Tftpd64\tftpd64.exe&quot; action=allow" />
		
		<upgrade include="install" />

		<remove architecture="x86" cmd="&quot;%ProgramFiles%\Tftpd32\uninstall.exe&quot; /S" />
		<remove architecture="x86" cmd="%comspec% /C netsh advfirewall firewall delete rule name=all program=&quot;%ProgramFiles%\Tftpd32\tftpd32.exe&quot;" />
		<remove architecture="x64" cmd="&quot;%ProgramFiles%\Tftpd64\uninstall.exe&quot; /S" />
		<remove architecture="x64" cmd="%comspec% /C netsh advfirewall firewall delete rule name=all program=&quot;%ProgramFiles%\Tftpd64\tftpd64.exe&quot;" />
		
	</package>

</packages>