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.

292 lines
11 KiB

  1. ;
  2. ; Task Scheduler .INF
  3. ;
  4. [Version]
  5. Signature=$CHICAGO$
  6. AdvancedINF=2.5
  7. [DestinationDirs]
  8. Inf = 17
  9. System_Win = 11
  10. HelpDir = 25,Help
  11. JobFolder = 25,%TASKS_FOLDER%
  12. SysAgent = 49000
  13. [DestinationDirs.NT]
  14. Inf = 17
  15. System_NT = 11
  16. HelpDir = 25,Help
  17. JobFolder = 25,%TASKS_FOLDER%
  18. ;
  19. ; The sysagent.exe file lives wherever the user chose to install the plus
  20. ; pack. For chicago, mstinit.exe finds out where this is and creates the
  21. ; registry value referred to in SysAgentLDIDSection, which we assign to
  22. ; a custom LDID of 49000.
  23. ;
  24. [CustomDestinationSection]
  25. 49000 = SysAgentLDIDSection,5
  26. [SysAgentLDIDSection]
  27. 'HKLM','Software\Microsoft\Windows\CurrentVersion\App Paths\SysAgent.exe','InstallDir','',%11%
  28. [DefaultInstall]
  29. RunPreSetupCommands = PreSetupCommands.Win
  30. CustomDestination = CustomDestinationSection
  31. CopyFiles = Inf,System_Win,JobFolder,HelpDir,SysAgent
  32. DelReg = DisableLogonExec,DisableSystemAgent
  33. AddReg = CommonRegistrySettings,AddRegistrySettings.Win,RegUninstall,RegUninstall.95
  34. UpdateInis = Shortcut.Win
  35. [DefaultInstall.NT]
  36. CopyFiles = Inf,System_NT,JobFolder,HelpDir
  37. DelReg = DisableLogonExec
  38. AddReg=FolderSecurityPage,CommonRegistrySettings,RegUninstall,RegUninstall.NT
  39. RunPostSetupCommands=PostSetupCommands.Nt
  40. [FolderSecurityPage]
  41. HKCR,CLSID\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}\shellex
  42. HKCR,CLSID\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}\shellex\PropertySheetHandlers
  43. HKCR,CLSID\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}\shellex\PropertySheetHandlers\%rshxclsid%
  44. [PreSetupCommands.Win]
  45. stswin.exe /presetup
  46. [PostSetupCommands.Nt]
  47. mstinit.exe /setup
  48. [PreUnsetupCommands]
  49. mstinit.exe /preunsetup
  50. [Uninstall]
  51. BeginPrompt = UninstallPrompt
  52. RunPreSetupCommands = PreUnsetupCommands
  53. CustomDestination = CustomDestinationSection
  54. DelReg = DelRegistrySettings,DelRegistrySettings.Win,UnRegUninstall
  55. DelFiles = System_Win,JobFolder,HelpDir,Inf,SysAgent
  56. UpdateInis = RemoveShortcut.Win
  57. AddReg = RenameBackups.Win
  58. EndPrompt=UninstallEnd
  59. [Uninstall.NT]
  60. BeginPrompt = UninstallPrompt
  61. RunPreSetupCommands=PreUnsetupCommands
  62. DelReg = DelRegistrySettings,DelRegistrySettings.NT,UnRegUninstall
  63. AddReg = ReEnableATService.NT
  64. DelFiles = System_NT,JobFolder,HelpDir,Inf
  65. EndPrompt=UninstallEnd
  66. [SysAgent]
  67. sysagent.exe,,,1
  68. [UninstallPrompt]
  69. Prompt = %UNINST_PROMPT%
  70. ButtonType = YESNO
  71. Title = %UNINST_PROMPT_TITLE%
  72. [UninstallEnd]
  73. Prompt=%UNINST_COMPL%
  74. [Inf]
  75. mstask.inf
  76. [System_Win]
  77. mstask.exe,mstwin.exe,,1
  78. mstask.dll,mstwin.dll,,1
  79. mstinit.exe,stswin.exe,,1
  80. sage.dll,,,1
  81. sage.exe,,,1
  82. [System_NT]
  83. mstask.exe,mstnt.exe,,1
  84. mstask.dll,mstnt.dll,,1
  85. mstinit.exe,stsnt.exe,,1
  86. [JobFolder]
  87. desktop.ini,mstask.ini,,1
  88. [HelpDir]
  89. mstask.hlp,,,1
  90. mstask.cnt,,,1
  91. [AddRegistrySettings.Win]
  92. HKLM,Software\Microsoft\Windows\CurrentVersion\RunOnce,%TS%,,"%11%\mstinit.exe /setup"
  93. HKLM,Software\Microsoft\Windows\CurrentVersion\RunOnce,%WINHLP32%,,"%25%\winhlp32.exe -s windows.hlp"
  94. [RenameBackups.Win]
  95. HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Bak,,,%11%
  96. HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Bak,SAGEEXE.BAK,,"SAGE.EXE"
  97. HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Bak,SAGEDLL.BAK,,"SAGE.DLL"
  98. HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Sa,,,%49000%
  99. HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Sa,SYSAGENT.BAK,,"SYSAGENT.EXE"
  100. [CommonRegistrySettings]
  101. HKLM,Software\Microsoft\SchedulingAgent,TasksFolder,,"%25%\%TASKS_FOLDER%"
  102. HKLM,Software\Microsoft\SchedulingAgent,LogPath,,"%25%\SchedLog.Txt"
  103. HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Sys,,,%25%
  104. HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Sys,%TASKS_FOLDER%,,"%TASKS_FOLDER%,4"
  105. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF},,,"%MSTASK%"
  106. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF},,,"%MSTASK%"
  107. HKCR,".Job",,,"JobObject"
  108. HKCR,"JobObject",,,"%TASK_OBJECT%"
  109. HKCR,JobObject\CLSID,,,"{148BD520-A2AB-11CE-B11F-00AA00530503}"
  110. HKCR,JobObject\shell
  111. HKCR,JobObject\shellex\PropertySheetHandlers\{797F1E90-9EDD-11cf-8D8E-00AA0060F5BF}
  112. HKCR,JobObject\shellex\IconHandler,,,"{DD2110F0-9EEF-11cf-8D8E-00AA0060F5BF}"
  113. HKCR,CLSID\{DD2110F0-9EEF-11cf-8D8E-00AA0060F5BF},,,"Scheduling UI icon handler"
  114. HKCR,CLSID\{DD2110F0-9EEF-11cf-8D8E-00AA0060F5BF}\InProcServer32,,,"%11%\mstask.dll"
  115. HKCR,CLSID\{DD2110F0-9EEF-11cf-8D8E-00AA0060F5BF}\InProcServer32,"ThreadingModel",,"Both"
  116. HKCR,CLSID\{797F1E90-9EDD-11cf-8D8E-00AA0060F5BF},,,"Scheduling UI property sheet handler"
  117. HKCR,CLSID\{797F1E90-9EDD-11cf-8D8E-00AA0060F5BF}\InProcServer32,,,"%11%\mstask.dll"
  118. HKCR,CLSID\{797F1E90-9EDD-11cf-8D8E-00AA0060F5BF}\InProcServer32,"ThreadingModel",,"Both"
  119. HKLM,Software\Microsoft\Windows\CurrentVersion\"Shell Extensions"\Approved,"{797F1E90-9EDD-11cf-8D8E-00AA0060F5BF}",,"Tasks Folder Shell Extension"
  120. HKCR,CLSID\{148BD520-A2AB-11CE-B11F-00AA00530503},,,"Task Scheduler Task Object Class"
  121. HKCR,CLSID\{148BD520-A2AB-11CE-B11F-00AA00530503}\DefaultIcon,,,"%11%\mstask.dll,-101"
  122. HKCR,CLSID\{148BD520-A2AB-11CE-B11F-00AA00530503}\InProcServer32,,,"%11%\mstask.dll"
  123. HKCR,CLSID\{148BD520-A2AB-11CE-B11F-00AA00530503}\InProcServer32,"ThreadingModel",,"Both"
  124. HKCR,".Que",,,"QueueObject"
  125. HKCR,"QueueObject",,,"%QUEUE_OBJECT%"
  126. HKCR,QueueObject\CLSID,,,"{255b3f60-829e-11cf-8d8b-00aa0060f5bf}"
  127. HKCR,CLSID\{255b3f60-829e-11cf-8d8b-00aa0060f5bf},,,"Task Scheduler Queue Object Class"
  128. HKCR,CLSID\{255b3f60-829e-11cf-8d8b-00aa0060f5bf}\DefaultIcon,,,"%11%\mstask.dll,-102"
  129. HKCR,CLSID\{255b3f60-829e-11cf-8d8b-00aa0060f5bf}\InProcServer32,,,"%11%\mstask.dll"
  130. HKCR,CLSID\{255b3f60-829e-11cf-8d8b-00aa0060f5bf}\InProcServer32,"ThreadingModel",,"Both"
  131. HKCR,CLSID\{148BD52A-A2AB-11CE-B11F-00AA00530503},,,"Task Scheduler Service Class"
  132. HKCR,CLSID\{148BD52A-A2AB-11CE-B11F-00AA00530503}\DefaultIcon,,,"%11%\mstask.dll,0"
  133. HKCR,CLSID\{148BD52A-A2AB-11CE-B11F-00AA00530503}\InProcServer32,,,"%11%\mstask.dll"
  134. HKCR,CLSID\{148BD52A-A2AB-11CE-B11F-00AA00530503}\InProcServer32,"ThreadingModel",,"Both"
  135. HKCR,CLSID\{D6277990-4C6A-11CF-8D87-00AA0060F5BF},,,"%MSTASK%"
  136. HKCR,CLSID\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}\DefaultIcon,,,"%11%\mstask.dll,-100"
  137. HKCR,CLSID\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}\InProcServer32,,,"%11%\mstask.dll"
  138. HKCR,CLSID\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}\InProcServer32,"ThreadingModel",,"Both"
  139. HKCR,CLSID\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}\ShellFolder,"Attributes",1,0x00, 0x00, 0x00, 0x21
  140. HKCR,CLSID\{D6277990-4C6A-11CF-8D87-00AA0060F5BF},"InfoTip",,"%INFO_TIP%"
  141. [Shortcut.Win]
  142. setup.ini, progman.groups,,"grpschag=%SCHAGT_LNK%"
  143. setup.ini, grpschag,,"""%MSTASK%"", ""Explorer.exe ,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}"",mstask.dll,0"
  144. setup.ini, grpschag,,"""%SAGE_MENU%"",,,0"
  145. [RemoveShortcut.Win]
  146. setup.ini, progman.groups,,"grpschag=%SCHAGT_LNK%"
  147. setup.ini, grpschag,,"""%MSTASK%"",,,0"
  148. [DisableLogonExec]
  149. HKLM,Software\Microsoft\Windows\CurrentVersion\Run,%TS%
  150. [DelRegistrySettings]
  151. HKLM,Software\Microsoft\SchedulingAgent
  152. HKLM,Software\Microsoft\Windows\CurrentVersion\Run,%TS%
  153. HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Sys,TASKS
  154. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}
  155. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}
  156. HKLM,Software\Microsoft\"Active Setup"\"Installed Components"\{CC2A9BA0-3BDD-11D0-821E-444553540000}
  157. HKCR,".Job"
  158. HKCR,"JobObject"
  159. HKCR,CLSID\{DD2110F0-9EEF-11cf-8D8E-00AA0060F5BF}
  160. HKCR,CLSID\{797F1E90-9EDD-11cf-8D8E-00AA0060F5BF}
  161. HKLM,Software\Microsoft\Windows\CurrentVersion\"Shell Extensions"\Approved,"{797F1E90-9EDD-11cf-8D8E-00AA0060F5BF}"
  162. HKCR,CLSID\{148BD520-A2AB-11CE-B11F-00AA00530503}
  163. HKCR,".Que"
  164. HKCR,"QueueObject"
  165. HKCR,CLSID\{255b3f60-829e-11cf-8d8b-00aa0060f5bf}
  166. HKCR,CLSID\{148BD52A-A2AB-11CE-B11F-00AA00530503}
  167. HKCR,CLSID\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}
  168. [DisableSystemAgent]
  169. HKLM,Software\Microsoft\Windows\CurrentVersion\Run,%SA%
  170. [DelRegistrySettings.Win]
  171. HKLM,Software\Microsoft\Windows\CurrentVersion\RunServices,%TS%
  172. [DelRegistrySettings.NT]
  173. HKLM,System\CurrentControlSet\Services\Schedule,DependOnGroup
  174. HKLM,System\CurrentControlSet\Services\Schedule,DependOnService
  175. HKLM,System\CurrentControlSet\Services\Schedule,DisplayName
  176. HKLM,System\CurrentControlSet\Services\Schedule,NextAtJobId
  177. [ReEnableATService.NT]
  178. HKLM,System\CurrentControlSet\Services\Schedule,ErrorControl,0x10001,1
  179. HKLM,System\CurrentControlSet\Services\Schedule,ImagePath,0x20000,"%SystemRoot%\System32\AtSvc.Exe"
  180. HKLM,System\CurrentControlSet\Services\Schedule,ObjectName,,LocalSystem
  181. HKLM,System\CurrentControlSet\Services\Schedule,Start,0x10001,0x2
  182. HKLM,System\CurrentControlSet\Services\Schedule,Type,0x10001,0x10
  183. [RegUninstall]
  184. HKLM,%UninstKey%,"DisplayName",,%UNINST_DISPLNAME%
  185. HKLM,%UninstKey%,"QuietUninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\mstask.inf,Uninstall,5"
  186. HKLM,%UninstKey%,"RequiresIESysFile",,"4.70.0.1155"
  187. [RegUninstall.95]
  188. HKLM,%UninstKey%,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection mstask.inf,Uninstall"
  189. [RegUninstall.NT]
  190. HKLM,%UninstKey%,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection mstask.inf,Uninstall.NT"
  191. [UnRegUninstall]
  192. HKLM,%UninstKey%
  193. [SourceDisksNames]
  194. 99 = %TSD%, sasetup.cab, 0
  195. [SourceDisksFiles.Win]
  196. mstwin.dll = 99
  197. mstwin.exe = 99
  198. stswin.exe = 99
  199. mstask.inf = 99
  200. mstask.ini = 99
  201. mstask.hlp = 99
  202. mstask.cnt = 99
  203. sage.dll = 99
  204. sage.exe = 99
  205. sysagent.exe = 99
  206. sagedll.bak = 99
  207. sageexe.bak = 99
  208. [SourceDisksFiles.x86]
  209. mstnt.dll = 99
  210. mstnt.exe = 99
  211. stsnt.exe = 99
  212. mstask.inf = 99
  213. mstask.ini = 99
  214. mstask.hlp = 99
  215. mstask.cnt = 99
  216. [SourceDisksFiles.alpha]
  217. mstnt.dll = 99
  218. mstnt.exe = 99
  219. stsnt.exe = 99
  220. mstask.inf = 99
  221. mstask.ini = 99
  222. mstask.hlp = 99
  223. mstask.cnt = 99
  224. [Strings]
  225. ;
  226. ; Do not localize these strings.
  227. ;
  228. SA = "SystemAgent"
  229. TS = "SchedulingAgent"
  230. WINHLP32 = "Winhlp32"
  231. UninstKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SchedulingAgent"
  232. UninstInf = "mstask.inf"
  233. rshxclsid={1F2E5C40-9550-11CE-99D2-00AA006E086C}
  234. ;
  235. ; Localize these strings.
  236. ;
  237. TSD = "Task Scheduler Install Disk"
  238. SCHAGT_LNK = "Accessories\System Tools"
  239. MSTASK = "Scheduled Tasks"
  240. SAGE_MENU = "System Agent"
  241. TASKS_FOLDER = "Tasks"
  242. TASK_OBJECT = "Task Scheduler Task Object"
  243. QUEUE_OBJECT = "Task Scheduler Queue Object"
  244. UNINST_DISPLNAME = "Task Scheduler 1.0 (remove only)"
  245. UNINST_PROMPT = "Are you sure you want to remove Task Scheduler?"
  246. UNINST_PROMPT_TITLE = "Remove Task Scheduler"
  247. UNINST_COMPL = "Task Scheduler has been successfully removed"
  248. INFO_TIP = "Task Scheduler is a tool that enables you to schedule tasks (such as Disk Defragmenter) to run regularly, when it's most convenient for you. Task Scheduler starts each time you start Windows, and runs in the background"