Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
4.6 KiB

  1. ; -- NETDNS.INX --
  2. ;
  3. ; Microsoft Domain Name System Server
  4. ;
  5. ; Copyright (c) 1993-1997, Microsoft Corporation
  6. [version]
  7. signature="$Windows NT$"
  8. LayoutFile=layout.inf
  9. Provider=%Msft%
  10. ;
  11. ; For Optional Components Use Only
  12. ;
  13. [DNS]
  14. CopyFiles = CpyFiles_Sys,CpyFiles_Dns,CpyFiles_DnsSamp,CpyFiles_DnsWmi
  15. Needs = WBEM ; Maintains proper ordering of OCs - we depend on WMI
  16. Uninstall = DNS.Remove
  17. StartServices = DNS
  18. RegisterDlls = DNS.Register
  19. ProfileItems = DNS.Shortcut.Add, DNS.Old.Shortcut.Remove
  20. [DNS.Remove]
  21. UnregisterDlls = DNS.Unregister
  22. ProfileItems = DNS.Shortcut.Remove
  23. ;
  24. ; Services Sections
  25. ;
  26. [DNS.Services]
  27. ; 0x10 = SPSVCINST_NOCLOBBER_STARTTYPE
  28. AddService = DNS, 0x10, DNSServer_Service_Inst
  29. [DNS.Remove.Services]
  30. DelService = DNS
  31. DelReg = DNSServer_Evt_DelReg
  32. ;
  33. ; COM Object registration/Perf counters
  34. ;
  35. [DNS.Register]
  36. 11,, dnsmgr.dll, 1
  37. 11,, mycomput.dll, 1
  38. 11,, wbem\dnsprov.dll, 1
  39. 11,, lodctr.exe, 1,,"dnsperf.ini"
  40. [DNS.Unregister]
  41. 11,, dnsmgr.dll, 1
  42. 11,, unlodctr.exe, 1,,"DNS"
  43. ;
  44. ; Administrative Tools shortcut
  45. ;
  46. [DNS.Shortcut.Add]
  47. Name = %DNS_Shortcut_Desc%
  48. SubDir = %DNS_Admin_Group%
  49. CmdLine = 11,,"dnsmgmt.msc /s"
  50. IconPath = 11,,dnsmgr.dll
  51. IconIndex = 0
  52. InfoTip = %DNS_Admin_HelpText%
  53. [DNS.Shortcut.Remove]
  54. Name = %DNS_Shortcut_Desc%, 0x2
  55. SubDir = %DNS_Admin_Group%
  56. ; NT 4.0 Shortcut
  57. [DNS.Old.Shortcut.Remove]
  58. Name = %DNS_Admin_Tool_Old%, 0x2
  59. SubDir = %DNS_Admin_Group_Old%
  60. [DestinationDirs]
  61. CpyFiles_Sys = 11 ;System32
  62. CpyFiles_Dns = 11,dns ;System32\dns
  63. CpyFiles_DnsSamp = 11,dns\samples ;System32\dns\samples
  64. CpyFiles_DnsWmi = 11,wbem ;System32\wbem
  65. ;
  66. ; Copy Files sections
  67. ;
  68. [CpyFiles_Sys]
  69. dns.exe,,,2
  70. dnsmgr.dll,,,2
  71. dnsmgmt.msc,,,2
  72. dnsperf.dll,,,2
  73. dnsperf.h,,,2
  74. dnsperf.ini,,,2
  75. [CpyFiles_DnsWmi]
  76. dnsprov.mof,,,2
  77. dnsprov.dll,,,2
  78. [CpyFiles_Sys.Security]
  79. "D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)(A;;GRGX;;;WD)"
  80. [CpyFiles_Dns]
  81. CACHE.DNS,,,0x12 ; Don't overwrite if already present
  82. [CpyFiles_Dns.Security]
  83. "D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)(A;;GRGX;;;WD)"
  84. [CpyFiles_DnsSamp]
  85. 192.DNS,,,2
  86. BOOT,,,2
  87. CACHE.DNS,,,2
  88. PLACE.DNS,,,2
  89. [CpyFiles_DnsSamp.Security]
  90. "D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)(A;;GRGX;;;WD)"
  91. ;
  92. ; Service Install Sections
  93. ;
  94. [DNSServer_Service_Inst]
  95. DisplayName = %DNSServer_Display%
  96. ServiceType = %SERVICE_WIN32_OWN_PROCESS%
  97. StartType = %SERVICE_AUTO_START%
  98. ErrorControl = 1
  99. ServiceBinary = "%%SystemRoot%%\System32\dns.exe"
  100. Dependencies = Tcpip, Afd, NetBT, RpcSs
  101. StartName = LocalSystem
  102. AddReg = DNS.AddReg
  103. Description = %DNSServer_Desc%
  104. [DNS.AddReg]
  105. ;
  106. ; Perfmon counter info
  107. ;
  108. HKR, "Performance", "Library", , "dnsperf.dll"
  109. HKR, "Performance", "Open", , "OpenDnsPerformanceData"
  110. HKR, "Performance", "Close", , "CloseDnsPerformanceData"
  111. HKR, "Performance", "Collect", , "CollectDnsPerformanceData"
  112. ;
  113. ; Add Computer Management dynamic extension
  114. ;
  115. HKLM, System\CurrentControlSet\Control\Server Applications\, {80105023-50B1-11D1-B930-00A0C9A06D2D}, REG_SZ, %DNS_EXTENSION%
  116. ;
  117. ; DNS Server eventlogs go to private log
  118. ;
  119. HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server", , %FLG_ADDREG_KEYONLY%
  120. HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server", "File", %REG_EXPAND_SZ%, "%%SystemRoot%%\system32\config\DnsEvent.Evt"
  121. HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server", "MaxSize", %REG_DWORD%, 0x80000
  122. HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server", "Retention", %REG_DWORD%, 0x93a80
  123. HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server", "Sources", %REG_MULTI_SZ%, "DNS Server"
  124. HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server", "DisplayNameFile", %REG_EXPAND_SZ%, "%%SystemRoot%%\system32\els.dll"
  125. HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server", "DisplayNameID", %REG_DWORD%, 0x00000105
  126. HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server\DNS", , %FLG_ADDREG_KEYONLY%
  127. HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server\DNS", "EventMessageFile", %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\dns.exe"
  128. HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server\DNS", "TypesSupported", %REG_DWORD%, 0x00000007
  129. ;
  130. ; Remove DNS Server event log on uninstall
  131. ; - remove the log from the event viewer, but leave the log file in place
  132. ;
  133. [DNSServer_Evt_DelReg]
  134. HKLM, "System\CurrentControlSet\Services\EventLog\DNS Server"