Leaked source code of windows server 2003
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.

132 lines
6.7 KiB

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