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.

130 lines
6.5 KiB

  1. ;;; Windows Scripting Host Setup Information File
  2. ;;; Copyright (c) 1996-1997 Microsoft Corporation
  3. ;;; 98/06/25 20:50:23 (X86 0531 EN WEB)
  4. ;;;
  5. [Version]
  6. Signature = "$Windows NT$"
  7. ClassGUID = {00000000-0000-0000-0000-000000000000}
  8. SetupClass = Base
  9. LayoutFile = layout.inf
  10. [DefaultInstall]
  11. AddReg = AddReg.WSH
  12. DelReg = DelReg.WSH
  13. ;;;
  14. ;;; Add WSH registry entries
  15. ;;;
  16. [AddReg.WSH]
  17. HKLM, "Software\Microsoft\Windows Script Host\Settings","DisplayLogo",,"1"
  18. HKLM, "Software\Microsoft\Windows Script Host\Settings","ActiveDebugging",,"1"
  19. HKLM, "Software\Microsoft\Windows Script Host\Settings","SilentTerminate",,"0"
  20. HKLM, "Software\Microsoft\Windows Script Host\Settings","UseWINSAFER",,"1"
  21. ; Shell Extension
  22. HKLM, "Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved","{60254CA5-953B-11CF-8C96-00AA00B8708C}",,"%DESC_WSHEXT%"
  23. ; .WSH
  24. HKCR, ".WSH","",,"WSHFile"
  25. HKCR, "WSHFile","",,"%DESC_DOTWSH%"
  26. HKCR, "WSHFile","FriendlyTypeName",0x00020000,"@%SystemRoot%\System32\%FILE_WSHEXT%,-4800"
  27. HKCR, "WSHFile","IsShortcut",,"Yes"
  28. HKCR, "WSHFile\DefaultIcon","",0x00020000,"%SystemRoot%\System32\WScript.exe,1"
  29. HKCR, "WSHFile\Shell\Open","",,"%MENU_OPEN%"
  30. HKCR, "WSHFile\Shell\Open\Command",,0x00020000,"%SystemRoot%\System32\WScript.exe ""%1"" %*"
  31. HKCR, "WSHFile\Shell\Open2","",,"%MENU_CONOPEN%"
  32. HKCR, "WSHFile\Shell\Open2\Command","",0x00020000,"%SystemRoot%\System32\CScript.exe ""%1"" %*"
  33. HKCR, "WSHFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  34. HKCR, "WSHFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"
  35. ; .VBS
  36. HKCR, ".VBS","",,"VBSFile"
  37. HKCR, "VBSFile","",,"%DESC_DOTVBS%"
  38. HKCR, "VBSFile","FriendlyTypeName",0x00020000,"@%SystemRoot%\System32\%FILE_WSHEXT%,-4802"
  39. HKCR, "VBSFile\DefaultIcon","",0x00020000,"%SystemRoot%\System32\WScript.exe,2"
  40. HKCR, "VBSFile\ScriptEngine","",,"VBScript"
  41. HKCR, "VBSFile\Shell\Open","",,"%MENU_OPEN%"
  42. HKCR, "VBSFile\Shell\Open\Command","",0x00020000,"%SystemRoot%\System32\WScript.exe ""%1"" %*"
  43. HKCR, "VBSFile\Shell\Open2","",,"%MENU_CONOPEN%"
  44. HKCR, "VBSFile\Shell\Open2\Command","",0x00020000,"%SystemRoot%\System32\CScript.exe ""%1"" %*"
  45. HKCR, "VBSFile\Shell\Edit","",,"%MENU_EDIT%"
  46. HKCR, "VBSFile\Shell\Edit\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe %1"
  47. HKCR, "VBSFile\Shell\Print","",,"%MENU_PRINT%"
  48. HKCR, "VBSFile\Shell\Print\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe /p %1"
  49. HKCR, "VBSFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  50. HKCR, "VBSFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"
  51. ; .VBE
  52. HKCR, ".VBE","",,"VBEFile"
  53. HKCR, "VBEFile","",,"%DESC_DOTVBE%"
  54. HKCR, "VBEFile","FriendlyTypeName",0x00020000,"@%SystemRoot%\System32\%FILE_WSHEXT%,-4803"
  55. HKCR, "VBEFile\DefaultIcon","",0x00020000,"%SystemRoot%\System32\WScript.exe,2"
  56. HKCR, "VBEFile\ScriptEngine","",,"VBScript.Encode"
  57. HKCR, "VBEFile\Shell\Open","",,"%MENU_OPEN%"
  58. HKCR, "VBEFile\Shell\Open\Command","",0x00020000,"%SystemRoot%\System32\WScript.exe ""%1"" %*"
  59. HKCR, "VBEFile\Shell\Open2","",,"%MENU_CONOPEN%"
  60. HKCR, "VBEFile\Shell\Open2\Command","",0x00020000,"%SystemRoot%\System32\CScript.exe ""%1"" %*"
  61. HKCR, "VBEFile\Shell\Edit","",,"%MENU_EDIT%"
  62. HKCR, "VBEFile\Shell\Edit\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe %1"
  63. HKCR, "VBEFile\Shell\Print","",,"%MENU_PRINT%"
  64. HKCR, "VBEFile\Shell\Print\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe /p %1"
  65. HKCR, "VBEFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  66. HKCR, "VBEFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"
  67. ; .JS
  68. HKCR, ".JS","",,"JSFile"
  69. HKCR, "JSFile","",,"%DESC_DOTJS%"
  70. HKCR, "JSFile","FriendlyTypeName",0x00020000,"@%SystemRoot%\System32\%FILE_WSHEXT%,-4804"
  71. HKCR, "JSFile\DefaultIcon","",0x00020000,"%SystemRoot%\System32\WScript.exe,3"
  72. HKCR, "JSFile\ScriptEngine","",,"JScript"
  73. HKCR, "JSFile\Shell\Open","",,"%MENU_OPEN%"
  74. HKCR, "JSFile\Shell\Open\Command","",0x00020000,"%SystemRoot%\System32\WScript.exe ""%1"" %*"
  75. HKCR, "JSFile\Shell\Open2","",,"%MENU_CONOPEN%"
  76. HKCR, "JSFile\Shell\Open2\Command","",0x00020000,"%SystemRoot%\System32\CScript.exe ""%1"" %*"
  77. HKCR, "JSFile\Shell\Edit","",,"%MENU_EDIT%"
  78. HKCR, "JSFile\Shell\Edit\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe %1"
  79. HKCR, "JSFile\Shell\Print","",,"%MENU_PRINT%"
  80. HKCR, "JSFile\Shell\Print\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe /p %1"
  81. HKCR, "JSFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  82. HKCR, "JSFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"
  83. ; .JSE
  84. HKCR, ".JSE","",,"JSEFile"
  85. HKCR, "JSEFile","",,"%DESC_DOTJSE%"
  86. HKCR, "JSEFile","FriendlyTypeName",0x00020000,"@%SystemRoot%\System32\%FILE_WSHEXT%,-4805"
  87. HKCR, "JSEFile\DefaultIcon","",0x00020000,"%SystemRoot%\System32\WScript.exe,3"
  88. HKCR, "JSEFile\ScriptEngine","",,"JScript.Encode"
  89. HKCR, "JSEFile\Shell\Open","",,"%MENU_OPEN%"
  90. HKCR, "JSEFile\Shell\Open\Command","",0x00020000,"%SystemRoot%\System32\WScript.exe ""%1"" %*"
  91. HKCR, "JSEFile\Shell\Open2","",,"%MENU_CONOPEN%"
  92. HKCR, "JSEFile\Shell\Open2\Command","",0x00020000,"%SystemRoot%\System32\CScript.exe ""%1"" %*"
  93. HKCR, "JSEFile\Shell\Edit","",,"%MENU_EDIT%"
  94. HKCR, "JSEFile\Shell\Edit\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe %1"
  95. HKCR, "JSEFile\Shell\Print","",,"%MENU_PRINT%"
  96. HKCR, "JSEFile\Shell\Print\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe /p %1"
  97. HKCR, "JSEFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  98. HKCR, "JSEFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"
  99. ; .WSF
  100. HKCR, ".WSF","",,"WSFFile"
  101. HKCR, "WSFFile","",,"%DESC_DOTWS%"
  102. HKCR, "WSFFile","FriendlyTypeName",0x00020000,"@%SystemRoot%\System32\%FILE_WSHEXT%,-4801"
  103. HKCR, "WSFFile\DefaultIcon","",0x00020000,"%SystemRoot%\System32\WScript.exe,2"
  104. HKCR, "WSFFile\Shell\Open","",,"%MENU_OPEN%"
  105. HKCR, "WSFFile\Shell\Open\Command","",0x00020000,"%SystemRoot%\System32\WScript.exe ""%1"" %*"
  106. HKCR, "WSFFile\Shell\Open2","",,"%MENU_CONOPEN%"
  107. HKCR, "WSFFile\Shell\Open2\Command","",0x00020000,"%SystemRoot%\System32\CScript.exe ""%1"" %*"
  108. HKCR, "WSFFile\Shell\Edit","",,"%MENU_EDIT%"
  109. HKCR, "WSFFile\Shell\Edit\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe %1"
  110. HKCR, "WSFFile\Shell\Print","",,"%MENU_PRINT%"
  111. HKCR, "WSFFile\Shell\Print\Command","",0x00020000,"%SystemRoot%\System32\Notepad.exe /p %1"
  112. HKCR, "WSFFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
  113. HKCR, "WSFFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"
  114. ; .WSC (Patch)
  115. HKCR, "scriptletfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\System32\%FILE_SCROBJ%,-8192"
  116. [DelReg.WSH]
  117. HKLM, "Software\Microsoft\Windows\CurrentVersion\Setup\OC Manager\Subcomponents","wsh_core"