home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 9 / IOPROG_9.ISO / contrib / iis4 / setup.cab / wsh.inf < prev   
Encoding:
INI File  |  1997-08-18  |  9.1 KB  |  273 lines

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