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?
Page 1 of 1
vbscript not working in WinPE
#2
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.
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
Posted 12 February 2004 - 12:06 AM
Try
regsvr32 vbscript.dll
regsvr32 jscript.dll
-gosh
regsvr32 vbscript.dll
regsvr32 jscript.dll
-gosh
Share this topic:
Page 1 of 1



Help
Back to top









