Tftpd32
From WPKG | Open Source Software Deployment and Distribution
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=""%software%\Tftpd32\%installer%" /S" />
<install architecture="x86" cmd="%comspec% /C netsh advfirewall firewall add rule name="tftpd32" dir=in program="%ProgramFiles%\Tftpd32\tftpd32.exe" action=allow" />
<install architecture="x64" cmd="%comspec% /C netsh advfirewall firewall add rule name="tftpd64" dir=in program="%ProgramFiles%\Tftpd64\tftpd64.exe" action=allow" />
<upgrade include="install" />
<remove architecture="x86" cmd=""%ProgramFiles%\Tftpd32\uninstall.exe" /S" />
<remove architecture="x86" cmd="%comspec% /C netsh advfirewall firewall delete rule name=all program="%ProgramFiles%\Tftpd32\tftpd32.exe"" />
<remove architecture="x64" cmd=""%ProgramFiles%\Tftpd64\uninstall.exe" /S" />
<remove architecture="x64" cmd="%comspec% /C netsh advfirewall firewall delete rule name=all program="%ProgramFiles%\Tftpd64\tftpd64.exe"" />
</package>
</packages>