; TFTPD.INF
;
; Setup for the TFTP service of Windows Server
;
[Version]
Class = System
InfVersion = "01.00.00"
LayoutFile = LAYOUT.INF
SetupClass = BASE
Signature = "$Windows NT$"
[DefaultInstall.NTx86]
AddReg = TFTPD.Install.AddReg
CopyFiles = TFTPD.Files.Inf,TFTPD.Files.Sys
DelFiles = TFTPD.Files.Pnf
Reboot
[DefaultInstall.NTx86.Services]
AddService ="%TFTPD*Key%",%SPSVCINST_ASSOCSERVICE%,TFTPD.Service,TFTPD.EventLog
[DefaultUninstall.NTx86]
DelFiles = TFTPD.Files.Inf,TFTPD.Files.Pnf,TFTPD.Files.Sys
DelReg = TFTPD.Remove.DelReg
Reboot
[DefaultUninstall.NTx86.Services]
DelService = "%TFTPD*Key%",%SVCINST_DELETEEVENTLOGENTRY%
[TFTPD.Install.AddReg]
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%TFTPD*Key%","DisplayName",,"%TFTPD*Description%"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%TFTPD*Key%","DisplayVersion",,"%TFTPD*Version%"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%TFTPD*Key%","HelpLink",,""
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%TFTPD*Key%","InstallLocation",,"%11%"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%TFTPD*Key%","InstallSource",,"%01%"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%TFTPD*Key%","Publisher",,"%TFTPD*Author%"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%TFTPD*Key%","UninstallString",,"%11%\RunDll32.Exe %11%\SetupAPI.Dll,InstallHinfSection DefaultUninstall.NTx86 4 %17%\TFTPD.Inf"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%TFTPD*Key%","URLInfoAbout",,"%TFTPD*URL%"
[TFTPD.Remove.DelReg]
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%TFTPD*Key%"
[TFTPD.Service]
AddReg = TFTPD.Parameters.Reg
DisplayName = "%TFTPD*Daemon%"
Description = "%TFTPD*Description%"
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceType = %SERVICE_WIN32_OWN_PROCESS%
;StartName = "%TFTPD*Key%
StartType = %SERVICE_AUTO_START%
Dependencies = tcpip
ServiceBinary = "%11%\TFTPD.EXE"
[TFTPD.Parameters.Reg]
HKR,"Parameters","Clients",%REG_SZ%,"*.*.*.*"
HKR,"Parameters","Directory",%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\Drivers\Etc"
HKR,"Parameters","Masters",%REG_SZ%,""
HKR,"Parameters","Readable",%REG_SZ%,"*"
HKR,"Parameters","Writeable",%REG_SZ%,""
[TFTPD.EventLog]
AddReg = TFTPD.EventLog.Reg
[TFTPD.EventLog.Reg]
HKR,,"EventMessageFile",%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.Dll"
HKR,,"TypesSupported",%REG_DWORD%,7
[SourceDiskNames]
99 = "%TFTPD*Description%",,0000-0000,"."
[SourceDiskFiles]
TFTPD.INF = 99
[DestinationDirs]
TFTPD.Files.Sys = 11 ; %SystemRoot%\System32
TFTPD.Files.Inf = 17 ; %SystemRoot%\Inf
TFTPD.Files.Pnf = 17 ; %SystemRoot%\Pnf
[TFTPD.Files.Inf]
TFTPD.INF,,,%DELFLG_IN_USE1%
[TFTPD.Files.Pnf]
TFTPD.PNF,,,%DELFLG_IN_USE1%
[TFTPD.Files.Sys]
TFTPD.EXE,,,%DELFLG_IN_USE1%
[Strings]
TFTPD*Author = "Microsoft Corp."
TFTPD*Daemon = "TFTP Service"
TFTPD*Description = "Microsoft Windows Trivial FTP Daemon"
TFTPD*Key = "TFTPD"
TFTPD*URL = "http://www.microsoft.com/"
TFTPD*Version = "5.0.2134.1"
; Non-Localizable Strings
DELFLG_IN_USE1 = 0x00010000
; Registry Data Types (usable with SETUPAPI.DLL only!)
REG_SZ = 0x00000000
REG_BINARY = 0x00000001
REG_SZ_NOCLOBBER = 0x00000002
REG_BINARY_NOCLOBBER = 0x00000003
REG_MULTI_SZ = 0x00010000
REG_DWORD = 0x00010001
REG_MULTI_SZ_NOCLOBBER = 0x00010002
REG_DWORD_NOCLOBBER = 0x00010003
REG_EXPAND_SZ = 0x00020000
REG_EXPAND_SZ_NOCLOBBER = 0x00020002
; Driver and Service Types
SERVICE_KERNEL_DRIVER = 0x00000001
SERVICE_KERNEL_FILESYSTEM_DRIVER = 0x00000002
SERVICE_NETWORK_ADAPTER_DRIVER = 0x00000004
SERVICE_WIN32_OWN_PROCESS = 0x00000010
SERVICE_WIN32_SHARED_PROCESS = 0x00000020
; Driver and Service Start Types
SERVICE_BOOT_START = 0
SERVICE_SYSTEM_START = 1
SERVICE_AUTO_START = 2
SERVICE_MANUAL_START = 3
SERVICE_NEVER_START = 4 ; (deactivated)
; Driver and Service Error Control
SERVICE_ERROR_IGNORE = 0
SERVICE_ERROR_NORMAL = 1
SERVICE_ERROR_SEVERE = 2
SERVICE_ERROR_CRITICAL = 3
SVCINST_TAGTOFRONT = 0x00000001
SVCINST_ASSOCSERVICE = 0x00000002
SVCINST_DELETEEVENTLOGENTRY = 0x00000004
¿ÉÒÔÍæÅ£Å£appÏÂÔØ