5 Replies Latest reply on Aug 14, 2016 3:21 PM by Bill Robinson

    Windows Script Host 5.7

      I'm trying to install Windows Script Host 5.7 and am meeting some resistance.

       

      When I'm at a local CMD prompt and I enter the following, everything works as expected.

       

      C:\bltemp>scripten.exe /quiet /passive /norestart /log:C:\bltemp\scripten.log

       

      (Where scripten.exe is the Windows Script Host 5.7 install executable)

       

      The installation file itself is a "Windows Package Installer" and follows the default switches explained here:

       

      http://support.microsoft.com/kb/262841

       

      I've tried installing this every which way I can think of.  I've even extracted all the files and tried to install via the "update.exe" (which extracts from scripten.exe).  Everything I've tried seems to fail in the same way.  The log file points to a part of the .INF file being used during install (which can be seen after you've extracted scripten.exe) to make registry updates.

       

      I've pasted the install log and the pertinent bits of the INF file below.  The interesting part is that the process fails on "ProductInstall.GlobalRegistryChanges.Install" which is a part of the .INF file that combines the registry entries.

       

      Has anyone else had better luck with installing Windows Script Host 5.7?

       

       

      [scripten.log]
      0.078: ================================================================================
      0.078: 2010/11/22 22:57:45.027 (local)
      0.078: e:\566249d9c50562f309756fea785d80\update\update.exe (version 6.2.29.0)
      0.078: Hotfix started with following command line: /PASSIVE /NORESTART /LOG:C:\bltemp\scripten.log
      0.422: PrepareToTrustInfFile: MySetupCopyOEMInf failed: 0xe0000243
      0.422: IsInfFileTrusted: PrepareToTrustInfFile Failed: 0xe0000243
      0.453: In Function TestVolatileFlag, line 11873, RegOpenKeyEx failed with error 0x2
      0.453: In Function TestVolatileFlag, line 11905, RegOpenKeyEx failed with error 0x2
      0.453: DoInstallation: CleanPFR failed: 0x2
      0.453: SetProductTypes: InfProductBuildType=BuildType.Sel
      0.453: SetAltOsLoaderPath: No section uses DirId 65701; done.
      0.469: DoInstallation: FetchSourceURL for e:\566249d9c50562f309756fea785d80\update\update.inf failed
      0.469: CreateUninstall = 1,Directory = C:\WINDOWS\$NtUninstallscripten$
      0.469: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
      0.484: BuildCabinetManifest: update.url absent
      0.484: Starting AnalyzeComponents
      0.484: AnalyzePhaseZero used 0 ticks
      0.484: SetupFindFirstLine in LoadExclusionList Failed with error: 0xe0000102
      0.484: SetupFindFirstLine in LoadExclusionList Failed with error: 0xe0000102
      4.953: OEM file scan used 4469 ticks
      4.984: AnalyzePhaseOne: used 4500 ticks
      4.984: AnalyzeComponents: Hotpatch analysis disabled; skipping.
      4.984: AnalyzeComponents: Hotpatching is disabled.
      5.062: AnalyzePhaseTwo used 78 ticks
      5.062: AnalyzePhaseThree used 0 ticks
      5.062: AnalyzePhaseFive used 0 ticks
      5.062: AnalyzePhaseSix used 0 ticks
      5.062: AnalyzeComponents used 4578 ticks
      5.062: Downloading 0 files
      5.062: bPatchMode = FALSE
      5.062: Inventory complete: ReturnStatus=0, 4593 ticks
      5.062: Num Ticks for invent : 4593
      5.062: Allocation size of drive C: is 4096 bytes, free space = 6627454976 bytes
      5.078: AnalyzeDiskUsage:  Skipping EstimateDiskUsageForUninstall.
      5.078: Drive C: free 6320MB req: 8MB w/uninstall: NOT CALCULATED.
      5.078: CabinetBuild complete
      5.078: Num Ticks for Cabinet build : 16
      5.078: DynamicStrings section not defined or empty.
      5.078: FileInUse:: Detection disabled.
      6.078: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
      6.500: Num Ticks for Backup : 1422
      6.609: Num Ticks for creating uninst inf : 109
      6.625: Registering Uninstall Program for -> Windows Script, Windows Script , 0x0
      6.625: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
      6.672: PFE2: Not avoiding Per File Exceptions.
      6.703: GetCatVersion:  Failed to retrieve version information from C:\WINDOWS\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\scripten.cat with error 0x80092004
      6.703: GetCatVersion:  Failed to retrieve version information from C:\WINDOWS\scripten.cat with error 0x80092004
      6.812: Copied file:  C:\WINDOWS\system32\jscript.dll
      6.875: Copied file:  C:\WINDOWS\system32\vbscript.dll
      6.969: Copied file (delayed):  C:\WINDOWS\system32\SET6.tmp
      6.984: Copied file:  C:\WINDOWS\system32\scrrun.dll
      7.031: Copied file (delayed):  C:\WINDOWS\system32\SET7.tmp
      7.031: Copied file:  C:\WINDOWS\system32\dispex.dll
      7.094: Copied file:  C:\WINDOWS\system32\scrobj.dll
      7.141: Copied file (delayed):  C:\WINDOWS\system32\SET9.tmp
      7.156: Copied file:  C:\WINDOWS\system32\wshom.ocx
      7.187: Copied file:  C:\WINDOWS\system32\wshext.dll
      7.234: Copied file:  C:\WINDOWS\system32\cscript.exe
      7.281: Copied file (delayed):  C:\WINDOWS\system32\SETC.tmp
      7.281: Copied file:  C:\WINDOWS\system32\wscript.exe
      7.328: Copied file:  C:\WINDOWS\system32\wshcon.dll
      7.359: Copied file:  C:\WINDOWS\help\wscript.hlp
      7.391: Copied file:  C:\WINDOWS\INF\scripten.inf
      7.422: Copied file:  C:\WINDOWS\system32\DllCache\jscript.dll
      7.453: Copied file:  C:\WINDOWS\system32\DllCache\vbscript.dll
      7.484: Copied file:  C:\WINDOWS\system32\DllCache\scrrun.dll
      7.516: Copied file:  C:\WINDOWS\system32\DllCache\dispex.dll
      7.547: Copied file:  C:\WINDOWS\system32\DllCache\scrobj.dll
      7.578: Copied file:  C:\WINDOWS\system32\DllCache\wshext.dll
      7.625: Copied file:  C:\WINDOWS\system32\DllCache\cscript.exe
      7.656: Copied file:  C:\WINDOWS\system32\DllCache\wscript.exe
      7.703: Copied file:  C:\WINDOWS\system32\DllCache\wshom.ocx
      7.734: DoInstallation: Installing assemblies with source root path: e:\566249d9c50562f309756fea785d80\
      7.734: Num Ticks for Copying files : 1125
      7.812: DoRegistryUpdates:UpdSpInstallFromInfSection Failed for ProductInstall.GlobalRegistryChanges.Install error: 0x5b3
      7.812: INF_REGISTRY Failed
      7.812: DoInstallation:DoRegistryUpdates failed
      7.812: This operation requires an interactive window station.
      7.812: Windows Script installation did not complete.

       

      Select 'OK' to undo the changes that have been made.
      7.828: Starting process:  C:\WINDOWS\$NtUninstallscripten$\spuninst\spuninst.exe /~ -u -z
      10.000: Software Update Rollback has completed with return code 0xbc2.  This rollback requires a reboot.
      10.000: Windows Script installation did not complete.

       

      Windows Server 2003 has been partially updated and may not work properly.
      10.000: Update.exe extended error code = 0x5b3
      10.000: Update.exe return code was masked to 0x643 for MSI custom action compliance.

       

      ***************

      *BELOW this block is the .INF file

      **************

       

      [Version]
      signature = "$Windows NT$"
      NtBuildToUpdate=3790
      MaxNtBuildToUpdate=3790
      NtMajorVersionToUpdate = 5
      NtMinorVersionToUpdate = 2
      MaxNtMajorVersionToUpdate = 5
      MaxNtMinorVersionToUpdate = 2
      MinNtServicePackVersion=0
      MaxNtServicePackVersion=9984
      LanguageType=00
      CatalogFile = scripten.cat

       


      [ProductCatalogsToInstall]
      scripten.cat, update\scripten.cat

       

      [ProductInstall.CopyFilesAlways]
      CopyFiles = Copy.ScriptFiles, Copy.WSH, Copy.Help, Copy.INF, DllCacheFiles

       

      [ProductInstall.GlobalRegistryChanges.Install]
      AddReg = RegisterActiveSetup, AddReg.WSH, AddReg.Extensions.NT

       

      [SourceDisksNames]
      1 = %Media%

       

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

       


      [DestinationDirs]
      Copy.ScriptFiles     = 11        ;windir\system32
      Copy.WSH     = 11        ;windir\system32
      Copy.Help      = 18        ;windir\help
      Copy.Inf         = 17        ;windir\inf
      DllCacheFiles    = 65619     ; %WINDIR%\system32\DllCache (replace if exist)

       

      [Copy.ScriptFiles]
      jscript.dll
      vbscript.dll
      scrrun.dll
      dispex.dll
      scrobj.dll

       


      [Copy.WSH]
      wshom.ocx
      wshext.dll
      cscript.exe
      wscript.exe
      wshcon.dll

       


      [Copy.Help]
      wscript.hlp

       

      [Copy.Inf]
      scripten.inf

       

      [DllCacheFiles]
      jscript.dll
      vbscript.dll
      scrrun.dll
      dispex.dll
      scrobj.dll
      wshext.dll
      cscript.exe
      wscript.exe
      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"" "

       

      [RegisterActiveSetup]
      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
      ;;;
      [AddReg.WSH]
      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%"

       

      [AddReg.Extensions.NT]
      ; 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%"

       

      <incomplete file...it gets redundant from here>