MSFN Forum: vbscript not working in WinPE - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

vbscript not working in WinPE Rate Topic: -----

#1 User is offline   patrico 

  • Group: Members
  • Posts: 1
  • Joined: 11-February 04

Posted 11 February 2004 - 04:09 PM

Quick question. I cannot get a vbscript to run in winPE using cscript or wscript. I get an error message stating "There is no script engine for file extension ".vbs"

Any Suggestions?


#2 User is offline   Shadowpp 

  • Newbie
  • Group: Members
  • Posts: 41
  • Joined: 24-October 03

Posted 11 February 2004 - 05:39 PM

As per the WinPE help file.....

Adding Optional Component Packages to Windows PE
BuildOptionalComponents.vbs is a script for adding support for optional component packages to Windows PE. The packages include Windows Script Host (WSH), HTML Applications (HTA), and ActiveX Data Objects (ADO) to allow database connectivity from Windows PE to a Microsoft SQL Server.

The script uses these command-line options:

Option Function
/S:location Alternate source location other than the Windows product CD
/D:location Alternate destination for the WinPE Optional Component Files (I386). If not specified, the files are saved to the desktop
/ADO Builds ADO (ActiveX Database Objects) for Microsoft SQL Server connectivity
/HTA Builds HTA (HTML applications)
/WSH Builds WSH (Windows Script Host)
/64 Builds and checks 64-bit version of Windows PE; requires Windows XP 64-Bit Edition
/Q Runs the script with prompts suppressed. Notifies only on failure.
/E Explores the resulting folder automatically when complete
To add optional components to Windows PE
If you are building Windows PE 1.0, then set /S to the path of the Windows XP Professional CD-ROM. If you are building Windows PE 1.1, then set /S to the path of a directory that has Windows XP SP1 integrated into a I386 directory.
In your \WinPE directory, run this command:
buildoptionalcomponents.vbs /S:d:\sourcefiles
You should have the following directory on your desktop:

WinPE Optional Component Files (I386)
+---I386
| +---Registration
| \---System32
+---Program Files
| \---Common Files
| \---System
| +---ado
| +---msadc
| \---Ole db
\---Samples
The \Registration directory is created onlf if you add support for ADO, and it must be there for ADO to function.

If you built Windows PE to C:\bin, then copy the \Program Files directory to C:\bin\i386
Copy the \Samples directory to C:\bin\i386
Copy the \i386\system32\*.* to C:\bin\i386\system32
Make sure that your Startnet.cmd file has the following line:
oc.bat
If you do not specify components, or you do not run this script from the command prompt, all optional components are installed. If you include HTA, WSH is included automatically, and cannot be removed.

#3 User is offline   gosh 

  • gosh 2.0
  • Group: Patrons
  • Posts: 2,347
  • Joined: 03-October 03
  • OS:none specified
  • Country: Country Flag

Posted 12 February 2004 - 12:06 AM

Try

regsvr32 vbscript.dll
regsvr32 jscript.dll

-gosh

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy