home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 November / APC411-2.ISO / multimed / MediaCenter.exe / WinHost / wsh.exe / wsh.inf < prev    next >
Encoding:
Windows Setup INFormation  |  1997-09-29  |  8.6 KB  |  289 lines

  1. ;;; Windows Scripting Host Setup Information File
  2. ;;; Copyright (c) 1996-1997 Microsoft Corporation
  3. ;;; 97/09/29 15:17:02 (X86 0531 EN WEB)
  4. ;;;
  5.  
  6. [Version]
  7. Signature       = "$Chicago$"
  8. AdvancedINF=2.0
  9.  
  10. [DefaultInstall]
  11. Copyfiles       = Copy.CScript, Copy.WScript, Copy.OCX, Copy.Inf, Copy.Help, Copy.Samples, Copy.Engines
  12. AddReg          = AddReg.WSH, AddReg.Extensions, AddReg.Uninstall
  13. RegisterOCXs    = RegOCX.WSH
  14.  
  15. [Uninstall]
  16. DelFiles        = Copy.CScript, Copy.WScript, Copy.OCX, Copy.Inf, Copy.Help, Copy.Samples
  17. DelReg          = DelReg.WSH, DelReg.Extensions, DelReg.Uninstall
  18. UnRegisterOCXs  = UnRegOCX.WSH
  19.  
  20. [DefaultInstall.NT]
  21. Copyfiles       = Copy.CScript.NT, Copy.WScript.NT, Copy.OCX, Copy.Inf, Copy.Help, Copy.Samples, Copy.Engines
  22. AddReg          = AddReg.WSH, AddReg.Extensions.NT, AddReg.Uninstall.NT
  23. RegisterOCXs    = RegOCX.WSH
  24.  
  25.  
  26. [Uninstall.NT]
  27. DelFiles        = Copy.CScript.NT, Copy.WScript.NT, Copy.OCX, Copy.Inf, Copy.Help, Copy.Samples
  28. DelReg          = DelReg.WSH, DelReg.Extensions, DelReg.Uninstall
  29. UnRegisterOCXs  = UnRegOCX.WSH
  30.  
  31.  
  32. [DestinationDirs]
  33. Copy.Inf        = 17                    ; %WinDir%\Inf
  34. Copy.OCX        = 11                    ; %WinDir%\system
  35. Copy.Help       = 18                    ; %WinDir%\Help
  36. Copy.Samples    = 25, "Samples\WSH"     ; %WinDir%\Samples\WSH
  37. Copy.CScript    = 13                    ; %WinDir%\Command
  38. Copy.WScript    = 25                    ; %WinDir%
  39. Copy.CScript.NT = 11                    ; %WinDir%\System32
  40. Copy.WScript.NT = 11                    ; %WinDir%\System32
  41. Copy.Engines    = 11                    ; %WinDir%\System32
  42.  
  43. [Copy.CScript.NT]
  44. cscript.exe
  45.  
  46. [Copy.WScript.NT]
  47. wscript.exe
  48.  
  49. [Copy.Engines]
  50. vbscript.dll
  51. jscript.dll
  52. scrrun.dll
  53. ;dispex.dll
  54.  
  55. [Copy.CScript]
  56. cscript.exe
  57.  
  58. [Copy.WScript]
  59. wscript.exe
  60.  
  61. [Copy.OCX]
  62. wshom.ocx
  63. wshext.dll
  64.  
  65. [Copy.Inf]
  66. wsh.inf
  67.  
  68. [Copy.Help]
  69. wscript.hlp
  70.  
  71. [Copy.Samples]
  72. chart.vbs
  73. excel.vbs
  74. network.vbs
  75. registry.vbs
  76. shortcut.vbs
  77. showvar.vbs
  78.  
  79. chart.js
  80. excel.js
  81. network.js
  82. registry.js
  83. shortcut.js
  84.  
  85.  
  86.  
  87. [SourceDisksNames]
  88. 1="%DESC_DISKS%","wsh.cab",1
  89.  
  90. [SourceDisksFiles]
  91. wsh.inf         = 1
  92. wscript.hlp     = 1
  93.  
  94. wscript.exe     = 1
  95. cscript.exe     = 1
  96. wshom.ocx       = 1
  97. wshext.dll      = 1
  98.  
  99. chart.vbs       = 1
  100. excel.vbs       = 1
  101. network.vbs     = 1
  102. registry.vbs    = 1
  103. shortcut.vbs    = 1
  104. showvar.vbs     = 1
  105.  
  106. chart.js        = 1
  107. excel.js        = 1
  108. network.js      = 1
  109. registry.js     = 1
  110. shortcut.js     = 1
  111.  
  112. vbscript.dll    = 1
  113. jscript.dll     = 1
  114. scrrun.dll      = 1
  115. ;dispex.dll     = 1
  116. ;;;
  117. ;;; Add WSH registry entries
  118. ;;;
  119. [AddReg.WSH]
  120. HKLM, "%REG_WSH%\Settings","DisplayLogo",,"1"
  121.  
  122. ; Shell Extension
  123. HKLM, "%REG_APPROVE%","%CLSID_WSHEXT%",,"%DESC_WSHEXT%"
  124.  
  125. [RegOCX.WSH]
  126. %11%\wshom.ocx
  127. %11%\wshext.dll
  128. %11%\vbscript.dll
  129. %11%\jscript.dll
  130. %11%\scrrun.dll
  131. ;%11%\dispex.dll
  132.  
  133. [AddReg.Extensions]
  134. ; .WSH
  135. HKCR, ".WSH","",,"WSHFile"
  136. HKCR, "WSHFile","",,"%DESC_DOTWSH%"
  137. HKCR, "WSHFile","IsShortcut",,"Yes"
  138. HKCR, "WSHFile\DefaultIcon","",,"%25%\WScript.exe,1"
  139. HKCR, "WSHFile\Shell\Open","",,"%MENU_OPEN%"
  140. HKCR, "WSHFile\Shell\Open\Command",,,"%25%\WScript.exe ""%1"" %*"
  141. HKCR, "WSHFile\Shell\Open2","",,"%MENU_DOSOPEN%"
  142. HKCR, "WSHFile\Shell\Open2\Command","",,"%13%\CScript.exe ""%1"" %*"
  143. HKCR, "WSHFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  144.  
  145. ; .VBS
  146. HKCR, ".VBS","",,"VBSFile"
  147. HKCR, "VBSFile","",,"%DESC_DOTVBS%"
  148. HKCR, "VBSFile\DefaultIcon","",,"%25%\WScript.exe,2"
  149. HKCR, "VBSFile\ScriptEngine","",,"VBScript"
  150. HKCR, "VBSFile\Shell\Open","",,"%MENU_OPEN%"
  151. HKCR, "VBSFile\Shell\Open\Command","",,"%25%\WScript.exe ""%1"" %*"
  152. HKCR, "VBSFile\Shell\Open2","",,"%MENU_DOSOPEN%"
  153. HKCR, "VBSFile\Shell\Open2\Command","",,"%13%\CScript.exe ""%1"" %*"
  154. HKCR, "VBSFile\Shell\Edit","",,"%MENU_EDIT%"
  155. HKCR, "VBSFile\Shell\Edit\Command","",,"%25%\Notepad.exe %1"
  156. HKCR, "VBSFile\Shell\Print","",,"%MENU_PRINT%"
  157. HKCR, "VBSFile\Shell\Print\Command","",,"%25%\Notepad.exe /p %1"
  158. HKCR, "VBSFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  159.  
  160. ; .JS
  161. HKCR, ".JS","",,"JSFile"
  162. HKCR, "JSFile","",,"%DESC_DOTJS%"
  163. HKCR, "JSFile\DefaultIcon","",,"%25%\WScript.exe,3"
  164. HKCR, "JSFile\ScriptEngine","",,"JScript"
  165. HKCR, "JSFile\Shell\Open","",,"%MENU_OPEN%"
  166. HKCR, "JSFile\Shell\Open\Command","",,"%25%\WScript.exe ""%1"" %*"
  167. HKCR, "JSFile\Shell\Open2","",,"%MENU_DOSOPEN%"
  168. HKCR, "JSFile\Shell\Open2\Command","",,"%13%\CScript.exe ""%1"" %*"
  169. HKCR, "JSFile\Shell\Edit","",,"%MENU_EDIT%"
  170. HKCR, "JSFile\Shell\Edit\Command","",,"%25%\Notepad.exe %1"
  171. HKCR, "JSFile\Shell\Print","",,"%MENU_PRINT%"
  172. HKCR, "JSFile\Shell\Print\Command","",,"%25%\Notepad.exe /p %1"
  173. HKCR, "JSFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  174.  
  175. [AddReg.Extensions.NT]
  176. ; .WSH
  177. HKCR, ".WSH","",,"WSHFile"
  178. HKCR, "WSHFile","",,"%DESC_DOTWSH%"
  179. HKCR, "WSHFile","IsShortcut",,"Yes"
  180. HKCR, "WSHFile\DefaultIcon","",,"%11%\WScript.exe,1"
  181. HKCR, "WSHFile\Shell\Open","",,"%MENU_OPEN%"
  182. HKCR, "WSHFile\Shell\Open\Command",,,"%11%\WScript.exe ""%1"" %*"
  183. HKCR, "WSHFile\Shell\Open2","",,"%MENU_CONOPEN%"
  184. HKCR, "WSHFile\Shell\Open2\Command","",,"%11%\CScript.exe ""%1"" %*"
  185. HKCR, "WSHFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  186.  
  187. ; .VBS
  188. HKCR, ".VBS","",,"VBSFile"
  189. HKCR, "VBSFile","",,"%DESC_DOTVBS%"
  190. HKCR, "VBSFile\DefaultIcon","",,"%11%\WScript.exe,2"
  191. HKCR, "VBSFile\ScriptEngine","",,"VBScript"
  192. HKCR, "VBSFile\Shell\Open","",,"%MENU_OPEN%"
  193. HKCR, "VBSFile\Shell\Open\Command","",,"%11%\WScript.exe ""%1"" %*"
  194. HKCR, "VBSFile\Shell\Open2","",,"%MENU_CONOPEN%"
  195. HKCR, "VBSFile\Shell\Open2\Command","",,"%11%\CScript.exe ""%1"" %*"
  196. HKCR, "VBSFile\Shell\Edit","",,"%MENU_EDIT%"
  197. HKCR, "VBSFile\Shell\Edit\Command","",,"%11%\Notepad.exe %1"
  198. HKCR, "VBSFile\Shell\Print","",,"%MENU_PRINT%"
  199. HKCR, "VBSFile\Shell\Print\Command","",,"%11%\Notepad.exe /p %1"
  200. HKCR, "VBSFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  201.  
  202. ; .JS
  203. HKCR, ".JS","",,"JSFile"
  204. HKCR, "JSFile","",,"%DESC_DOTJS%"
  205. HKCR, "JSFile\DefaultIcon","",,"%11%\WScript.exe,3"
  206. HKCR, "JSFile\ScriptEngine","",,"JScript"
  207. HKCR, "JSFile\Shell\Open","",,"%MENU_OPEN%"
  208. HKCR, "JSFile\Shell\Open\Command","",,"%11%\WScript.exe ""%1"" %*"
  209. HKCR, "JSFile\Shell\Open2","",,"%MENU_CONOPEN%"
  210. HKCR, "JSFile\Shell\Open2\Command","",,"%11%\CScript.exe ""%1"" %*"
  211. HKCR, "JSFile\Shell\Edit","",,"%MENU_EDIT%"
  212. HKCR, "JSFile\Shell\Edit\Command","",,"%11%\Notepad.exe %1"
  213. HKCR, "JSFile\Shell\Print","",,"%MENU_PRINT%"
  214. HKCR, "JSFile\Shell\Print\Command","",,"%11%\Notepad.exe /p %1"
  215. HKCR, "JSFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  216.  
  217. ;;;
  218. ;;; Uninstall
  219. ;;; Called by: [DefaultInstall]
  220. ;;;
  221. [AddReg.Uninstall]
  222. HKLM, "%REG_UNINSTALL%","DisplayName",,"%DISP_WSH%"
  223. HKLM, "%REG_UNINSTALL%","UninstallString",,"rundll32 advpack.dll,LaunchINFSection %17%\wsh.inf,Uninstall"
  224.  
  225. [AddReg.Uninstall.NT]
  226. HKLM, "%REG_UNINSTALL%","DisplayName",,"%DISP_WSH%"
  227. HKLM, "%REG_UNINSTALL%","UninstallString",,"rundll32 advpack.dll,LaunchINFSection %17%\wsh.inf,Uninstall.NT"
  228.  
  229. [DelReg.Uninstall]
  230. HKLM, "%REG_UNINSTALL%"
  231.  
  232. ;;;
  233. ;;; Uninstallation
  234. ;;; Called by [Uninstall]
  235. ;;;
  236. [DelReg.WSH]
  237. HKLM, "%REG_WSH%"
  238.  
  239. HKCU, "%REG_WSH%"
  240. HKCR, ".VBS"
  241. HKCR, "VBSFile"
  242.  
  243. HKCR, ".JS"
  244. HKCR, "JSFile"
  245.  
  246. HKCR, ".WSH"
  247. HKCR, "WSHFile"
  248.  
  249. HKLM, "%REG_APPROVE%","%CLSID_WSHEXT%"
  250.  
  251. ;;;
  252. ;;; Unregister OCXs
  253. ;;; Called by [Uninstall]
  254. ;;;
  255. [UnRegOCX.WSH]
  256. %11%\wshom.ocx
  257. %11%\wshext.dll
  258.  
  259.  
  260. [Strings]
  261. ; Unlocalizable strings
  262. REG_WSH             = "Software\Microsoft\Windows Scripting Host"
  263. REG_APPROVE         = "Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved"
  264. REG_UNINSTALL       = "Software\Microsoft\Windows\CurrentVersion\Uninstall\WindowsScriptingHost"
  265. CLSID_WSHEXT        = "{60254CA5-953B-11CF-8C96-00AA00B8708C}"
  266.  
  267. ; Localizable strings
  268. DISP_WSH            = "Microsoft Windows Scripting Host"
  269. DESC_WSH            = "Windows Scripting Host"
  270. DESC_DISKS          = "Windows Scripting Host Files"
  271. TIPS_WSH            = "Write scripts to help automate tasks in Windows"
  272.  
  273. DESC_DOTWSH         = "Windows Scripting Host Settings File"
  274. DESC_DOTVBS         = "VBScript Script File"
  275. DESC_DOTJS          = "JScript Script File"
  276.  
  277. DESC_WSHEXT         = "Shell extensions for Windows Scripting Host"
  278.  
  279. DESC_WSHOMLIB       = "Microsoft Windows Scripting Host Object Model (V1.0)"
  280. DESC_WSHSHELL       = "Windows Scripting Host Shell Object"
  281. DESC_WSHNETWORK     = "Windows Scripting Host Network Object"
  282.  
  283. MENU_OPEN           = "&Open"
  284. MENU_CONOPEN        = "Open &with Command Prompt"
  285. MENU_DOSOPEN        = "Open &with MS-DOS Prompt"
  286. MENU_EDIT           = "&Edit"
  287. MENU_PRINT          = "&Print"
  288.  
  289.