; ; TFTPD32 as service installer ; Performs a silent install of TFTPD32 as service ; Writes a uninstaller (normally extract it and disable this) ; ; Copyright Qzone 2007 ; !include "serviceinst.nsi" OutFile "InstTFTP.exe" SilentInstall "silent" SilentUnInstall "silent" Section install ;Create service !insertmacro SERVICE create TS_TFTP \ " path=$\"$EXEDIR\srvstart.exe$\" svc TS_TFTP -d 0 $\"$EXEDIR\tftpd32.exe$\";autostart=1;interact=0;disp=TS TFTP;machine=0;user=0;password=0;desc=AnywhereTS TFTP server;" ;A bug in the service macro means description is not set. ;This is a hack... #WriteRegStr HKLM \ #"SYSTEM\CurrentControlSet\Services\TS_TFTP" "Description" "AnywhereTS TFTP server" ; WriteUninstaller "$EXEDIR\UninstTFTP.exe" SectionEnd Section Uninstall !undef UN !define UN un. !insertmacro SERVICE stop TS_TFTP "" !insertmacro SERVICE delete TS_TFTP "" SectionEnd