home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / setup.cab / wsh.inf < prev   
Windows Setup INFormation  |  1997-10-13  |  9KB  |  268 lines

  1. ;;; Windows Scripting Host Setup Information File
  2. ;;; Copyright (c) 1996-1997 Microsoft Corporation
  3. ;;; 97/10/13 15:11:10 (X86 0531 EN K2NT)
  4. ;;;
  5.  
  6. [Version]
  7. Signature       = "$Windows NT$"
  8.  
  9. [Optional Components]
  10. wsh
  11. wsh_core
  12.  
  13. [wsh]
  14. OptionDesc      = "%SDESC_WSH%"
  15. Tip             = "%LDESC_WSH%"
  16. IconIndex       = 1
  17.  
  18. [wsh_core]
  19. OptionDesc      = "%SDESC_WSH_BIN%"
  20. Tip             = "%LDESC_WSH_BIN%"
  21. IconIndex       = 1
  22. Modes           = 1, 3          ; Typical, Custom
  23. Parent          = wsh
  24. Needs           = iis_common
  25.  
  26. [wsh_core_install]
  27. CopyFiles       = Copy.CScript, Copy.WScript, Copy.OCX, Copy.Help, Copy.Samples
  28. AddReg          = AddReg.WSH
  29. DelReg          = DelReg.Beta2
  30.  
  31. [wsh_core_uninstall]
  32. DelFiles        = Copy.CScript, Copy.WScript, Copy.OCX, Copy.Help, Copy.Samples
  33. DelReg          = DelReg.WSH
  34.  
  35.  
  36. [DestinationDirs]
  37. Copy.Inf        = 17                    ; %WinDir%\Inf
  38. Copy.OCX        = 11                    ; %WinDir%\system32
  39. Copy.Help       = 18                    ; %WinDir%\Help
  40. Copy.Samples    = 25, "Samples\WSH"     ; %WinDir%\Samples\WSH
  41. Copy.CScript    = 11                    ; %WinDir%\System32
  42. Copy.WScript    = 11                    ; %WinDir%\System32
  43.  
  44. [Copy.CScript]
  45. cscript.exe
  46.  
  47. [Copy.WScript]
  48. wscript.exe
  49.  
  50. [Copy.OCX]
  51. wshom.ocx
  52. wshext.dll
  53.  
  54. [Copy.Inf]
  55. wsh.inf
  56.  
  57. [Copy.Help]
  58. wscript.hlp
  59.  
  60. [Copy.Samples]
  61. chart.vbs
  62. excel.vbs
  63. network.vbs
  64. registry.vbs
  65. shortcut.vbs
  66. showvar.vbs
  67.  
  68. chart.js
  69. excel.js
  70. network.js
  71. registry.js
  72. shortcut.js
  73.  
  74.  
  75.  
  76.  
  77. [SourceDisksNames]
  78. 0="%DESC_DISKS% 0","",0
  79. 1="%DESC_DISKS%",wsh.cab,0
  80.  
  81. [SourceDisksFiles]
  82. wshoc.inf=0
  83. wsh.dll=0
  84. wscript.exe=1,,130320,1db36d37
  85. cscript.exe=1,,122128,14c304e9
  86. wshom.ocx=1,,132368,601a5b8f
  87. wshext.dll=1,,61712,486de912
  88. wscript.hlp=1,,8827,56b4746
  89. chart.vbs=1,,1828,d995716b
  90. excel.vbs=1,,3064,274765b
  91. network.vbs=1,,5268,ba07e0e
  92. registry.vbs=1,,2319,fc18f89e
  93. shortcut.vbs=1,,2103,2cd4ebe9
  94. showvar.vbs=1,,1945,46d8d0aa
  95. chart.js=1,,2042,4142c9f0
  96. excel.js=1,,3205,b95695df
  97. network.js=1,,3901,105df58f
  98. registry.js=1,,2560,b201fbaf
  99. shortcut.js=1,,2258,b943ed7d
  100.  
  101. ;;;
  102. ;;; Add WSH registry entries
  103. ;;;
  104. [AddReg.WSH]
  105. HKLM, "%REG_WSH%\Settings","DisplayLogo",,"1"
  106.  
  107. ; Shell Extension
  108. HKLM, "%REG_APPROVE%","%CLSID_WSHEXT%",,"%DESC_WSHEXT%"
  109.  
  110. ; WScript.Shell
  111. HKCR, "WScript.Shell",,,"%DESC_WSHSHELL%"
  112. HKCR, "WScript.Shell\CLSID",,,"%CLSID_WSHSHELL%"
  113. HKCR, "WScript.Shell\CurVer",,,"WScript.Shell.%OCX_VERSION%"
  114.  
  115. HKCR, "WScript.Shell.%OCX_VERSION%",,,"%DESC_WSHSHELL%"
  116. HKCR, "WScript.Shell.%OCX_VERSION%\CLSID",,,"%CLSID_WSHSHELL%"
  117. HKCR, "WScript.Shell.%OCX_VERSION%\CurVer",,,"WScript.Shell.%OCX_VERSION%"
  118.  
  119. HKCR, "CLSID\%CLSID_WSHSHELL%",,,"%DESC_WSHSHELL%"
  120. HKCR, "CLSID\%CLSID_WSHSHELL%\InProcServer32",,0x00020000,"%SystemRoot%\System32\wshom.ocx"
  121. HKCR, "CLSID\%CLSID_WSHSHELL%\InProcServer32","ThreadingModel",,"Apartment"
  122. HKCR, "CLSID\%CLSID_WSHSHELL%\ProgID",,,"WScript.Shell.%OCX_VERSION%"
  123. HKCR, "CLSID\%CLSID_WSHSHELL%\Programmable",,,
  124. HKCR, "CLSID\%CLSID_WSHSHELL%\TypeLib",,,"%LIBID_WSHOM%"
  125. HKCR, "CLSID\%CLSID_WSHSHELL%\VersionIndependentProgID",,,"WScript.Shell"
  126.  
  127. ; WScript.Network
  128. HKCR, "WScript.Network",,,"%DESC_WSHNETWORK%"
  129. HKCR, "WScript.Network\CLSID",,,"%CLSID_WSHNETWORK%"
  130. HKCR, "WScript.Network\CurVer",,,"WScript.Network.%OCX_VERSION%"
  131.  
  132. HKCR, "WScript.Network.%OCX_VERSION%",,,"%DESC_WSHNETWORK%"
  133. HKCR, "WScript.Network.%OCX_VERSION%\CLSID",,,"%CLSID_WSHNETWORK%"
  134. HKCR, "WScript.Network.%OCX_VERSION%\CurVer",,,"WScript.Network.%OCX_VERSION%"
  135.  
  136. HKCR, "CLSID\%CLSID_WSHNETWORK%",,,"%DESC_WSHNETWORK%"
  137. HKCR, "CLSID\%CLSID_WSHNETWORK%\InProcServer32",,0x00020000,"%SystemRoot%\System32\wshom.ocx"
  138. HKCR, "CLSID\%CLSID_WSHNETWORK%\InProcServer32","ThreadingModel",,"Apartment"
  139. HKCR, "CLSID\%CLSID_WSHNETWORK%\ProgID",,,"WScript.Network.%OCX_VERSION%"
  140. HKCR, "CLSID\%CLSID_WSHNETWORK%\Programmable",,,
  141. HKCR, "CLSID\%CLSID_WSHNETWORK%\TypeLib",,,"%LIBID_WSHOM%"
  142. HKCR, "CLSID\%CLSID_WSHNETWORK%\VersionIndependentProgID",,,"WScript.Network"
  143.  
  144. ; WSHOm TypeLib
  145. HKCR, "TypeLib\%LIBID_WSHOM%\%OCX_VERSION%.0",,,"%DESC_WSHOMLIB%"
  146. HKCR, "TypeLib\%LIBID_WSHOM%\%OCX_VERSION%.0\0\Win32",,,"%11%\wshom.ocx"
  147. HKCR, "TypeLib\%LIBID_WSHOM%\%OCX_VERSION%.0\Flags",,,"0"
  148. HKCR, "TypeLib\%LIBID_WSHOM%\%OCX_VERSION%.0\HelpDir",,,"%18%"
  149.  
  150. ; WSHext.dll
  151. HKCR, "CLSID\%CLSID_WSHEXT%",,,"%DESC_WSHEXT%"
  152. HKCR, "CLSID\%CLSID_WSHEXT%\InProcServer32",,0x00020000,"%SystemRoot%\System32\wshext.dll"
  153. HKCR, "CLSID\%CLSID_WSHEXT%\InProcServer32","ThreadingModel",,"Apartment"
  154.  
  155. ; .WSH
  156. HKCR, ".WSH","",,"WSHFile"
  157. HKCR, "WSHFile","",,"%DESC_DOTWSH%"
  158. HKCR, "WSHFile","IsShortcut",,"Yes"
  159. HKCR, "WSHFile\DefaultIcon","",0x00020000,"%SystemRoot%\System32\WScript.exe,1"
  160. HKCR, "WSHFile\Shell\Open","",,"%MENU_OPEN%"
  161. HKCR, "WSHFile\Shell\Open\Command",,0x00020000,"%SystemRoot%\System32\WScript.exe ""%1"" %*"
  162. HKCR, "WSHFile\Shell\Open2","",,"%MENU_CONOPEN%"
  163. HKCR, "WSHFile\Shell\Open2\Command","",0x00020000,"%SystemRoot%\System32\CScript.exe ""%1"" %*"
  164. HKCR, "WSHFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  165.  
  166. ; .VBS
  167. HKCR, ".VBS","",,"VBSFile"
  168. HKCR, "VBSFile","",,"%DESC_DOTVBS%"
  169. HKCR, "VBSFile\DefaultIcon","",0x00020000,"%SystemRoot%\System32\WScript.exe,2"
  170. HKCR, "VBSFile\ScriptEngine","",,"VBScript"
  171. HKCR, "VBSFile\Shell\Open","",,"%MENU_OPEN%"
  172. HKCR, "VBSFile\Shell\Open\Command","",0x00020000,"%SystemRoot%\System32\WScript.exe ""%1"" %*"
  173. HKCR, "VBSFile\Shell\Open2","",,"%MENU_CONOPEN%"
  174. HKCR, "VBSFile\Shell\Open2\Command","",0x00020000,"%SystemRoot%\System32\CScript.exe ""%1"" %*"
  175. HKCR, "VBSFile\Shell\Edit","",,"%MENU_EDIT%"
  176. HKCR, "VBSFile\Shell\Edit\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe %1"
  177. HKCR, "VBSFile\Shell\Print","",,"%MENU_PRINT%"
  178. HKCR, "VBSFile\Shell\Print\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe /p %1"
  179. HKCR, "VBSFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  180.  
  181. ; .JS
  182. HKCR, ".JS","",,"JSFile"
  183. HKCR, "JSFile","",,"%DESC_DOTJS%"
  184. HKCR, "JSFile\DefaultIcon","",0x00020000,"%SystemRoot%\System32\WScript.exe,3"
  185. HKCR, "JSFile\ScriptEngine","",,"JScript"
  186. HKCR, "JSFile\Shell\Open","",,"%MENU_OPEN%"
  187. HKCR, "JSFile\Shell\Open\Command","",0x00020000,"%SystemRoot%\System32\WScript.exe ""%1"" %*"
  188. HKCR, "JSFile\Shell\Open2","",,"%MENU_CONOPEN%"
  189. HKCR, "JSFile\Shell\Open2\Command","",0x00020000,"%SystemRoot%\System32\CScript.exe ""%1"" %*"
  190. HKCR, "JSFile\Shell\Edit","",,"%MENU_EDIT%"
  191. HKCR, "JSFile\Shell\Edit\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe %1"
  192. HKCR, "JSFile\Shell\Print","",,"%MENU_PRINT%"
  193. HKCR, "JSFile\Shell\Print\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe /p %1"
  194. HKCR, "JSFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  195.  
  196. ;;;
  197. ;;; Uninstallation
  198. ;;; Called by [Uninstall]
  199. ;;;
  200. [DelReg.WSH]
  201. HKLM, "%REG_WSH%"
  202.  
  203. HKCU, "%REG_WSH%"
  204. HKCR, ".VBS"
  205. HKCR, "VBSFile"
  206.  
  207. HKCR, ".JS"
  208. HKCR, "JSFile"
  209.  
  210. HKCR, ".WSH"
  211. HKCR, "WSHFile"
  212.  
  213. HKLM, "%REG_APPROVE%","%CLSID_WSHEXT%"
  214.  
  215. HKCR, "CLSID\%CLSID_WSHSHELL%"
  216. HKCR, "WScript.Shell"
  217. HKCR, "WScript.Shell.%OCX_VERSION%"
  218.  
  219. HKCR, "CLSID\%CLSID_WSHNETWORK%"
  220. HKCR, "WScript.Network"
  221. HKCR, "WScript.Network.%OCX_VERSION%"
  222.  
  223. HKCR, "TypeLib\%LIBID_WSHOM%"
  224.  
  225. HKCR, "CLSID\%CLSID_WSHEXT%"
  226.  
  227. [DelReg.Beta2]
  228. HKLM, "%REG_UNINSTALL%"
  229.  
  230. [Strings]
  231. ; Unlocalizable strings
  232. REG_WSH             = "Software\Microsoft\Windows Scripting Host"
  233. REG_APPROVE         = "Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved"
  234. REG_UNINSTALL       = "Software\Microsoft\Windows\CurrentVersion\Uninstall\WindowsScriptingHost"
  235. CLSID_WSHEXT        = "{60254CA5-953B-11CF-8C96-00AA00B8708C}"
  236. OCX_VERSION         = "1"
  237. LIBID_WSHOM         = "{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B}"
  238. CLSID_WSHSHELL      = "{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}"
  239. CLSID_WSHNETWORK    = "{F935DC26-1CF0-11D0-ADB9-00C04FD58A0B}"
  240.  
  241. ; Localizable strings
  242. DISP_WSH            = "Microsoft Windows Scripting Host"
  243. DESC_WSH            = "Windows Scripting Host"
  244. DESC_DISKS          = "Windows Scripting Host Files"
  245. TIPS_WSH            = "Write scripts to help automate tasks in Windows"
  246.  
  247. DESC_DOTWSH         = "Windows Scripting Host Settings File"
  248. DESC_DOTVBS         = "VBScript Script File"
  249. DESC_DOTJS          = "JScript Script File"
  250.  
  251. DESC_WSHEXT         = "Shell extensions for Windows Scripting Host"
  252.  
  253. DESC_WSHOMLIB       = "Microsoft Windows Scripting Host Object Model (V1.0)"
  254. DESC_WSHSHELL       = "Windows Scripting Host Shell Object"
  255. DESC_WSHNETWORK     = "Windows Scripting Host Network Object"
  256.  
  257. MENU_OPEN           = "&Open"
  258. MENU_CONOPEN        = "Open &with Command Prompt"
  259. MENU_DOSOPEN        = "Open &with MS-DOS Prompt"
  260. MENU_EDIT           = "&Edit"
  261. MENU_PRINT          = "&Print"
  262.  
  263. SDESC_WSH           = "Windows Scripting Host"
  264. LDESC_WSH           = "Microsoft Windows Scripting Host"
  265.  
  266. SDESC_WSH_BIN       = "Windows Scripting Host Files"
  267. LDESC_WSH_BIN       = "Microsoft Windows Scripting Host Files"
  268.