Leaked source code of windows server 2003
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.

113 lines
4.2 KiB

  1. ; Copyright (c) Microsoft Corporation. All rights reserved.
  2. ;
  3. ; Installation file for BITS(Background Intelligent Transfer Service)
  4. [Version]
  5. Signature= "$Windows NT$"
  6. LayoutFile=layout.inf
  7. [DefaultInstall]
  8. CopyFiles = BITS_files_install
  9. AddReg = BITS_regkeys_install
  10. RegisterDlls = BITS_regsvr_dlls
  11. DelReg = BITS_delkeys_install
  12. [DefaultUninstall]
  13. UnregisterDlls = BITS_regsvr_dlls
  14. DelReg = BITS_regkeys_uninstall
  15. DelFiles = BITS_files_uninstall
  16. ; 0x10 = SPSVCINST_NOCLOBBER_STARTTYPE
  17. ; 0x200 = SPSVCINST_STOPSERVICE
  18. [DefaultInstall.Services]
  19. DelService = BITS,0x200
  20. AddService = BITS,0x10,BITS_service_entry
  21. [DefaultUninstall.Services]
  22. DelService = BITS
  23. ; Copy everything to the system32 directory
  24. [DestinationDirs]
  25. BITS_files_install = 11
  26. BITS_files_uninstall = 11
  27. ;no skip and no version check
  28. [BITS_files_install]
  29. qmgr.dll,,6
  30. qmgrprxy.dll,,6
  31. bitsprx2.dll,,6
  32. ; winhttp5.dll,,6
  33. ;set security descriptor on the installed files
  34. [BITS_files_install.Security]
  35. "D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)(A;;GRGX;;;WD)"
  36. [BITS_files_uninstall]
  37. qmgr.dll
  38. qmgrprxy.dll
  39. bitsprx2.dll
  40. [BITS_regkeys_install]
  41. ; 0x10001 maps to FLG_ADDREG_TYPE_DWORD
  42. ; 0x10008 maps to ( FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND )
  43. ; 0x20000 maps to FLG_ADDREG_TYPE_EXPAND_SZ
  44. ; Service keys
  45. HKLM,"SYSTEM\CurrentControlSet\Services\BITS\Parameters","ServiceDll",0x00020000,"%11%\qmgr.dll"
  46. HKLM,"Software\Microsoft\Windows NT\CurrentVersion\SvcHost","netsvcs",0x00010008,"BITS"
  47. ; CLSID keys
  48. HKCR,"CLSID\{F087771F-D74F-4C1A-BB8A-E16ACA9124EA}",,0x00000000,%BITS_CLASS_NAME%
  49. HKCR,"CLSID\{F087771F-D74F-4C1A-BB8A-E16ACA9124EA}","AppID",0x00000000,"{69AD4AEE-51BE-439b-A92C-86AE490E8B30}"
  50. HKCR,"CLSID\{4991d34b-80a1-4291-83b6-3328366b9097}",,0x00000000,%BITS_CLASS_NAME%
  51. HKCR,"CLSID\{4991d34b-80a1-4291-83b6-3328366b9097}","AppID",0x00000000,"{69AD4AEE-51BE-439b-A92C-86AE490E8B30}"
  52. HKCR,"CLSID\{69AD4AEE-51BE-439b-A92C-86AE490E8B30}",,0x00000000,%LEGACY_BITS_CLASS_NAME%
  53. HKCR,"CLSID\{69AD4AEE-51BE-439b-A92C-86AE490E8B30}","AppID",0x00000000,"{69AD4AEE-51BE-439b-A92C-86AE490E8B30}"
  54. ; Event logging keys
  55. ;
  56. ; 0x7 = EVENTLOG_ERROR_TYPE | EVENTLOG_WARNING_TYPE | EVENTLOG_INFORMATION_TYPE
  57. ;
  58. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\BITS","TypesSupported", 0x00010001, 0x7
  59. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\BITS","CategoryCount", 0x00010001, 1
  60. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\BITS","CategoryMessageFile",0x00000000,"%11%\qmgr.dll"
  61. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\BITS","EventMessageFile",0x00000000,"%11%\qmgr.dll"
  62. ; AppID keys
  63. HKCR,"AppID\{69AD4AEE-51BE-439b-A92C-86AE490E8B30}",,0x00000000,%BITS_DISPLAY_NAME%
  64. HKCR,"AppID\{69AD4AEE-51BE-439b-A92C-86AE490E8B30}","LocalService",0x00000000,"BITS"
  65. HKCR,"AppID\BITS","AppID",0x00000000,"{69AD4AEE-51BE-439b-A92C-86AE490E8B30}"
  66. [BITS_delkeys_install]
  67. HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost\Drizzlegroup"
  68. HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost","Drizzlegroup"
  69. HKCR,"AppID\Drizzle"
  70. HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost\BITSgroup","AuthenticationCapabilities"
  71. [BITS_regkeys_uninstall]
  72. HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost\BITSgroup"
  73. HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost","BITSgroup"
  74. HKCR,"CLSID\{69AD4AEE-51BE-439b-A92C-86AE490E8B30}"
  75. HKCR,"CLSID\{F087771F-D74F-4C1A-BB8A-E16ACA9124EA}"
  76. HKCR,"CLSID\{4991d34b-80a1-4291-83b6-3328366b9097}"
  77. HKCR,"AppID\{69AD4AEE-51BE-439b-A92C-86AE490E8B30}"
  78. HKCR,"AppID\BITS"
  79. [BITS_service_entry]
  80. DisplayName="%BITS_DISPLAY_NAME%"
  81. Description="%BITS_DESCRIPTION%"
  82. ServiceType=32
  83. StartType=3
  84. ErrorControl=1
  85. ServiceBinary="%11%\svchost.exe -k netsvcs"
  86. Dependencies="RpcSs"
  87. [BITS_regsvr_dlls]
  88. 11,,qmgrprxy.dll,1
  89. 11,,bitsprx2.dll,1
  90. [Strings]
  91. BITS_DISPLAY_NAME = "Background Intelligent Transfer Service"
  92. BITS_DESCRIPTION = "Transfers data between clients and servers in the background. If BITS is disabled, features such as Windows Update will not work correctly."
  93. BITS_CLASS_NAME = "Background Intelligent Transfer Control Class 1.0"
  94. LEGACY_BITS_CLASS_NAME = "Legacy Background Intelligent Transfer Control Class"