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.

145 lines
4.9 KiB

  1. [version]
  2. Signature="$CHICAGO$"
  3. SetupClass=BASE
  4. LayoutFile=layout.inf
  5. [DefaultInstall]
  6. CopyFiles=SRFlt_files,SRSvc_files,SR_files
  7. AddReg=SRFlt_addreg,SRSvc_addreg,SR_addreg
  8. ProfileItems=SRProfile
  9. RegisterDlls=SR_register
  10. DelReg=SRSvc_delreg
  11. [DefaultInstall.Services]
  12. AddService=sr,,SRFlt_service,SRFlt_event
  13. AddService=srservice,,SRSvc_service,SRSvc_event
  14. [Uninstall]
  15. DelFiles=SRFlt_files,SRSvc_files,SR_files,SRWmi_files
  16. DelReg=SRFlt_delreg,SRSvc_delreg,SR_delreg
  17. UnregisterDlls=SR_register
  18. [Uninstall.Services]
  19. DelService=sr
  20. DelService=srservice
  21. [DestinationDirs]
  22. SRFlt_files=12
  23. SRSvc_files=11
  24. SR_files=11,Restore
  25. [SRFlt_files]
  26. sr.sys,,,0x10000
  27. [SRSvc_files]
  28. srclient.dll,,,0x10000
  29. srsvc.dll,,,0x10000
  30. srrstr.dll,,,0x10000
  31. [SRSvc_files.Security]
  32. "D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)(A;;GRGX;;;WD)"
  33. [SR_files]
  34. filelist.xml,,,0x10000
  35. rstrui.exe,,,0x10000
  36. srframe.mmf,,,0x10000
  37. srdiag.exe,,,0x10000
  38. [SR_files.Security]
  39. "D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)(A;;GRGX;;;WD)"
  40. [SRProfile]
  41. Name=%SR_UI_Link_Name%
  42. CmdLine=11,restore,rstrui.exe
  43. SubDir=%SR_UI_Link_SubDir%
  44. InfoTip="@%systemroot%\system32\restore\rstrui.exe,-2078"
  45. DisplayResource="%systemroot%\system32\restore\rstrui.exe",2048
  46. [SRFlt_service]
  47. DisplayName = %SR_Filter_Name%
  48. ServiceType = 2 ;%SERVICE_FILE_SYSTEM_DRIVER%
  49. StartType = 0 ;%SERVICE_BOOT_START%
  50. ErrorControl = 1 ;%SERVICE_ERROR_NORMAL%
  51. ServiceBinary = %12%\sr.sys
  52. LoadOrderGroup = "FSFilter System Recovery"
  53. [SRSvc_service]
  54. DisplayName = %SR_Service_Name%
  55. Description = %SR_Service_Desc%
  56. ServiceType = 0x20 ;%SERVICE_WIN32_SHARE_PROCESS%
  57. StartType = 2 ;%SERVICE_AUTOMATIC_START%
  58. ErrorControl = 1 ;%SERVICE_ERROR_NORMAL%
  59. ServiceBinary = %11%\svchost.exe -k netsvcs
  60. Dependencies = "RpcSs"
  61. [SRSvc_event]
  62. AddReg=SRSvc_event_addreg
  63. DelReg=SRSvc_event_delreg
  64. [SRFlt_event]
  65. AddReg=SRFlt_event_addreg
  66. DelReg=SRFlt_event_delreg
  67. [SRFlt_addreg]
  68. HKLM,"system\currentcontrolset\services\SR\Parameters","FirstRun",0x10001,1
  69. HKLM,"system\currentcontrolset\services\SR\Parameters","DontBackup",0x10001,0
  70. ;
  71. ; safeboot options
  72. ;
  73. HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\sr.sys","",0x00000000,"FSFilter System Recovery"
  74. HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Network\sr.sys","",0x00000000,"FSFilter System Recovery"
  75. [SRSvc_addreg]
  76. HKLM,"SYSTEM\CurrentControlSet\Services\SRService\Parameters","ServiceDll",0x00020000,"%11%\srsvc.dll"
  77. ;
  78. ; safeboot options
  79. ;
  80. HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\SRService","",0x00000000,"Service"
  81. HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Network\SRService","",0x00000000,"Service"
  82. [SR_addreg]
  83. HKLM,"Software\Microsoft\Windows NT\CurrentVersion\SystemRestore","DisableSR",0x10001,0
  84. HKLM,"Software\Microsoft\Windows NT\CurrentVersion\SystemRestore","CreateFirstRunRp",0x10001,0
  85. HKLM,"Software\Microsoft\Windows NT\CurrentVersion\SystemRestore\Cfg","DiskPercent",0x10001,12
  86. HKLM,"Software\Microsoft\Windows NT\CurrentVersion\SystemRestore\SnapshotCallbacks"
  87. HKLM,"Software\Microsoft\Windows\CurrentVersion\Run","SRFirstRun",,"rundll32 srclient.dll,CreateFirstRunRp"
  88. [SRSvc_event_addreg]
  89. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\SRService","EventMessageFile",0x00020000,"%11%\srsvc.dll"
  90. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\SRService","TypesSupported",0x00010001,7
  91. [SRFlt_event_addreg]
  92. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\SR","EventMessageFile",0x00020000,"%11%\IoLogMsg.dll;%12%\sr.sys"
  93. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\SR","TypesSupported",0x00010001,7
  94. [SRFlt_delreg]
  95. HKLM,"system\currentcontrolset\services\SR\Parameters","MachineGuid"
  96. HKLM,"system\currentcontrolset\services\SR\Parameters","Disabled"
  97. HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\sr.sys"
  98. HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Network\sr.sys"
  99. [SRSvc_delreg]
  100. HKLM,"Software\Microsoft\Windows NT\CurrentVersion\SvcHost","SRGroup"
  101. ;
  102. ; don't need to delete private values under "Services" hive, because entire hive
  103. ; will be deleted automatically.
  104. ;
  105. HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\SRService"
  106. HKLM,"SYSTEM\CurrentControlSet\Control\SafeBoot\Network\SRService"
  107. HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\FilesToSnapshot"
  108. [SR_delreg]
  109. HKLM,"Software\Microsoft\Windows NT\CurrentVersion\SystemRestore"
  110. [SRSvc_event_delreg]
  111. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\Application\SRService"
  112. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\SRService","EventMessageFile"
  113. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\SRService","TypesSupported"
  114. [SRFlt_event_delreg]
  115. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\SR","EventMessageFile"
  116. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\SR","TypesSupported"
  117. [SR_register]
  118. 11,,srclient.dll,1