[Version]
signature = "$Windows NT$"
NtBuildToUpdate=2195
MaxNtBuildToUpdate=2195
NtMajorVersionToUpdate = 5
NtMinorVersionToUpdate = 0
MaxNtMajorVersionToUpdate = 5
MaxNtMinorVersionToUpdate = 0
MinNtServicePackVersion=0
MaxNtServicePackVersion=9984
LanguageType=00

[ProductCatalogsToInstall]


[ProductInstall.CopyFilesAlways]
CopyFiles = CopyAlways.Cache.Files
CopyFiles = CopyAlways.Help.Files
CopyFiles = CopyAlways.Inf.Files
CopyFiles = CopyAlways.System32.Files

[ProductInstall.GlobalRegistryChanges.Install]
AddReg = Product.Add.Reg

[SourceDisksNames]
1 = %Media%

[SourceDisksFiles]
cscript.exe	= 1
dispex.dll	= 1
jscript.dll = 1
scripten.inf = 1
scrobj.dll	= 1
scrrun.dll	= 1
vbscript.dll = 1
wscript.exe	= 1
wscript.hlp	= 1
wshcon.dll	= 1
wshext.dll	= 1
wshom.ocx	= 1

[DestinationDirs]
CopyAlways.System32.Files = 11
CopyAlways.Help.Files = 10,"Help"
CopyAlways.Inf.Files = 17
CopyAlways.Cache.Files = 65619

[CopyAlways.System32.Files]
cscript.exe
dispex.dll
jscript.dll
scrobj.dll
scrrun.dll
vbscript.dll
wscript.exe
wshcon.dll
wshext.dll
wshom.ocx

[CopyAlways.Help.Files]
wscript.hlp

[CopyAlways.Inf.Files]
scripten.inf

[CopyAlways.Cache.Files]
cscript.exe
dispex.dll
jscript.dll
scrobj.dll
scrrun.dll
vbscript.dll
wscript.exe
wshext.dll
wshom.ocx

[ProcessesToRun]
"regsvr32 /s ""%11%\jscript.dll"" "
"regsvr32 /s ""%11%\vbscript.dll"" "
"regsvr32 /s ""%11%\scrrun.dll"" "
"regsvr32 /s ""%11%\scrobj.dll"" "
"regsvr32 /s ""%11%\wshext.dll"" "
"regsvr32 /s ""%11%\wshcon.dll"" "
"regsvr32 /s ""%11%\wshom.ocx"" "

[Product.Add.Reg]
HKLM,%ActiveSetupRegKey%,,0,%Product%
HKLM,%ActiveSetupRegKey%,"IsInstalled",0x00010001,0x01
HKLM,%ActiveSetupRegKey%,"Version",0,"5,7,0,16535"
HKLM,%ActiveSetupRegKey%,"Locale",0,%Lang%
HKLM,%ActiveSetupRegKey%,"ComponentID",0,"MSVBScript"

;;;
;;; Add WSH registry entries
;;;
[Product.Add.Reg]
HKLM, "%REG_WSH%\Settings","DisplayLogo",0X00000002,"1"
HKLM, "%REG_WSH%\Settings","ActiveDebugging",0x00000002,"1"
HKLM, "%REG_WSH%\Settings","SilentTerminate",0X00000002,"0"
HKLM, "%REG_WSH%\Settings","TrustPolicy",0X00010003,0
HKLM, "%REG_WSH%\Settings","LogSecurityFailures",0X00000002,"1"
HKLM, "%REG_WSH%\Settings","LogSecuritySuccesses",0X00000002,"0"
HKLM, "%REG_WSH%\Settings","Remote",0X00000002,"0"
HKLM, "%REG_WSH%\Settings","Enabled",0X00000002,"1"
HKLM, "%REG_WSH%\Settings","IgnoreUserSettings",0X00000002,"0"
; Shell Extension
HKLM, "%REG_APPROVE%","%CLSID_WSHEXT%",,"%DESC_WSHEXT%"
; Register WScript
HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce","Regsister WScript",,"wscript -regserver"
; .WSH
HKCR, ".WSH","",,"WSHFile"
HKCR, "WSHFile","",,"%DESC_DOTWSH%"
HKCR, "WSHFile","IsShortcut",,"Yes"
HKCR, "WSHFile\DefaultIcon","",0x00020002,"%11%\WScript.exe,1"
HKCR, "WSHFile\Shell\Open","",,"%MENU_OPEN%"
HKCR, "WSHFile\Shell\Open\Command",,0x00020002,"%11%\WScript.exe ""%1"" %*"
HKCR, "WSHFile\Shell\Open2","",,"%MENU_CONOPEN%"
HKCR, "WSHFile\Shell\Open2\Command","",0x00020002,"%11%\CScript.exe ""%1"" %*"
HKCR, "WSHFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
HKCR, "WSHFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"
; .VBS
HKCR, ".VBS","",,"VBSFile"
HKCR, "VBSFile","",,"%DESC_DOTVBS%"
HKCR, "VBSFile\DefaultIcon","",0x00020002,"%11%\WScript.exe,2"
HKCR, "VBSFile\ScriptEngine","",,"VBScript"
HKCR, "VBSFile\Shell\Open","",,"%MENU_OPEN%"
HKCR, "VBSFile\Shell\Open\Command","",0x00020002,"%11%\WScript.exe ""%1"" %*"
HKCR, "VBSFile\Shell\Open2","",,"%MENU_CONOPEN%"
HKCR, "VBSFile\Shell\Open2\Command","",0x00020002,"%11%\CScript.exe ""%1"" %*"
HKCR, "VBSFile\Shell\Edit","",,"%MENU_EDIT%"
HKCR, "VBSFile\Shell\Edit\Command","",0x00020002,"%11%\Notepad.exe %1"
HKCR, "VBSFile\Shell\Print","",,"%MENU_PRINT%"
HKCR, "VBSFile\Shell\Print\Command","",0x00020002,"%11%\Notepad.exe /p %1"
HKCR, "VBSFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
HKCR, "VBSFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"
; .VBE
HKCR, ".VBE","",,"VBEFile"
HKCR, "VBEFile","",,"%DESC_DOTVBS%"
HKCR, "VBEFile\DefaultIcon","",0x00020002,"%11%\WScript.exe,2"
HKCR, "VBEFile\ScriptEngine","",,"VBScript.Encode"
HKCR, "VBEFile\Shell\Open","",,"%MENU_OPEN%"
HKCR, "VBEFile\Shell\Open\Command","",0x00020002,"%11%\WScript.exe ""%1"" %*"
HKCR, "VBEFile\Shell\Open2","",,"%MENU_CONOPEN%"
HKCR, "VBEFile\Shell\Open2\Command","",0x00020002,"%11%\CScript.exe ""%1"" %*"
HKCR, "VBEFile\Shell\Edit","",,"%MENU_EDIT%"
HKCR, "VBEFile\Shell\Edit\Command","",0x00020002,"%11%\Notepad.exe %1"
HKCR, "VBEFile\Shell\Print","",,"%MENU_PRINT%"
HKCR, "VBEFile\Shell\Print\Command","",0x00020002,"%11%\Notepad.exe /p %1"
HKCR, "VBEFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
HKCR, "VBEFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"
; .JS
HKCR, ".JS","",,"JSFile"
HKCR, "JSFile","",,"%DESC_DOTJS%"
HKCR, "JSFile\DefaultIcon","",0x00020002,"%11%\WScript.exe,3"
HKCR, "JSFile\ScriptEngine","",,"JScript"
HKCR, "JSFile\Shell\Open","",,"%MENU_OPEN%"
HKCR, "JSFile\Shell\Open\Command","",0x00020002,"%11%\WScript.exe ""%1"" %*"
HKCR, "JSFile\Shell\Open2","",,"%MENU_CONOPEN%"
HKCR, "JSFile\Shell\Open2\Command","",0x00020002,"%11%\CScript.exe ""%1"" %*"
HKCR, "JSFile\Shell\Edit","",,"%MENU_EDIT%"
HKCR, "JSFile\Shell\Edit\Command","",0x00020002,"%11%\Notepad.exe %1"
HKCR, "JSFile\Shell\Print","",,"%MENU_PRINT%"
HKCR, "JSFile\Shell\Print\Command","",0x00020002,"%11%\Notepad.exe /p %1"
HKCR, "JSFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
HKCR, "JSFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"
; .JSE
HKCR, ".JSE","",,"JSEFile"
HKCR, "JSEFile","",,"%DESC_DOTJS%"
HKCR, "JSEFile\DefaultIcon","",0x00020002,"%11%\WScript.exe,3"
HKCR, "JSEFile\ScriptEngine","",,"JScript.Encode"
HKCR, "JSEFile\Shell\Open","",,"%MENU_OPEN%"
HKCR, "JSEFile\Shell\Open\Command","",0x00020002,"%11%\WScript.exe ""%1"" %*"
HKCR, "JSEFile\Shell\Open2","",,"%MENU_CONOPEN%"
HKCR, "JSEFile\Shell\Open2\Command","",0x00020002,"%11%\CScript.exe ""%1"" %*"
HKCR, "JSEFile\Shell\Edit","",,"%MENU_EDIT%"
HKCR, "JSEFile\Shell\Edit\Command","",0x00020002,"%11%\Notepad.exe %1"
HKCR, "JSEFile\Shell\Print","",,"%MENU_PRINT%"
HKCR, "JSEFile\Shell\Print\Command","",0x00020002,"%11%\Notepad.exe /p %1"
HKCR, "JSEFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
HKCR, "JSEFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"
; .WSF
HKCR, ".WSF","",,"WSFFile"
HKCR, "WSFFile","",,"%DESC_DOTWS%"
HKCR, "WSFFile\DefaultIcon","",0x00020002,"%11%\WScript.exe,2"
HKCR, "WSFFile\Shell\Open","",,"%MENU_OPEN%"
HKCR, "WSFFile\Shell\Open\Command","",0x00020002,"%11%\WScript.exe ""%1"" %*"
HKCR, "WSFFile\Shell\Open2","",,"%MENU_CONOPEN%"
HKCR, "WSFFile\Shell\Open2\Command","",0x00020002,"%11%\CScript.exe ""%1"" %*"
HKCR, "WSFFile\Shell\Edit","",,"%MENU_EDIT%"
HKCR, "WSFFile\Shell\Edit\Command","",0x00020002,"%11%\Notepad.exe %1"
HKCR, "WSFFile\Shell\Print","",,"%MENU_PRINT%"
HKCR, "WSFFile\Shell\Print\Command","",0x00020002,"%11%\Notepad.exe /p %1"
HKCR, "WSFFile\ShellEx\PropertySheetHandlers\WSHProps","",,"%CLSID_WSHEXT%"
HKCR, "WSFFile\ShellEx\DropHandler","",,"%CLSID_WSHEXT%"

[Save.Reg.For.Uninstall]
HKLM, SOFTWARE\Microsoft\Updates\%SP_TITLE%

[Strings]
; Localizable strings
Media = "Microsoft Windows Script 5.8 Distribution Media"
Product = "Microsoft Windows Script 5.8"
DESC_WSHEXT         = "Shell extensions for Windows Script Host"
DISP_WSH            = "Microsoft Windows Script Host"
DESC_DOTWSH         = "Windows Script Host Settings File"
DESC_DOTVBS         = "VBScript Script File"
DESC_DOTJS          = "JScript Script File"
DESC_DOTWS          = "Windows Script File"
MENU_OPEN           = "&Open"
MENU_CONOPEN        = "Open &with Command Prompt"
MENU_DOSOPEN        = "Open &with MS-DOS Prompt"
MENU_EDIT           = "&Edit"
MENU_PRINT          = "&Print"
Lang = "EN"


; Unlocalizable strings
ActiveSetupRegKey = "SOFTWARE\Microsoft\Active Setup\Installed Components\{4f645220-306d-11d2-995d-00c04f98bbc9}"
REG_WSH             	= "Software\Microsoft\Windows Script Host"
REG_APPROVE         	= "Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved"
REG_UNINSTALL       = "Software\Microsoft\Windows\CurrentVersion\Uninstall\WindowsScriptHost"
CLSID_WSHEXT        	= "{60254CA5-953B-11CF-8C96-00AA00B8708C}"


SERVICE_PACK_NUMBER=0
SP_SHORT_TITLE="Windows Script 5.8 (v2)"
SP_TITLE="Unofficial Microsoft Windows Script 5.8 (v2) for Windows 2000"
KB_INCLUDED="KB2632503"

[Configuration]
InstallationType = Hotfix
InstallLogFileName = script58_i.log
UnInstallLogFileName = script58_u.log
UnInstallDirName = $NtUninstallscript58$
EventLogKeyName = WindowsScriptComponents
UpdateRegKey = SOFTWARE\Microsoft\Updates\%SP_TITLE%
