RedVyper Posted September 22, 2004 Share Posted September 22, 2004 I see that some of you are using HTA files with your PE install I'd like to do the same but aparently by default Microsoft Windows PE does not recognize HTA files.Does anyone know how I would enable this to work in "Microsoft Windows PE"? Link to comment Share on other sites More sharing options...
Metzen Posted September 22, 2004 Share Posted September 22, 2004 winpe.chm has the answer.Adding Scripting Support to Windows PEBuildOptionalComponents.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 enable database connectivity from Windows PE to a Microsoft SQL Server.BuildOptionalComponents.vbs is supported on all localized versions of Windows PE.The script uses these command-line options:Option Function /ADO Builds ADO (ActiveX Database Objects) for Microsoft SQL Server connectivity. /D:location Specifies an alternate destination for the Windows PE Optional Component Files (I386). If not specified, the files are saved to the desktop. /E Explores the resulting folder automatically when complete. /HTA Builds HTA (HTML applications). /Q Runs the script with suppressed prompts. Notifies only on failure. /S:location Specifies an alternate source location other than the Windows product CD. /WSH Builds WSH (Windows Script Host). /X Provides example scripts that can be used to verify that the components are properly installed. Link to comment Share on other sites More sharing options...
RedVyper Posted September 22, 2004 Author Share Posted September 22, 2004 Thanks that took care of the first problem. Now i'm getting the fallowing problems when I try to run an HTA file. Link to comment Share on other sites More sharing options...
Michael_W Posted September 22, 2004 Share Posted September 22, 2004 Ordinal not found means that Windows can't find a function (ordinal) in a dll that it's looking for. In general, you have the wrong version of a dll that an application requires.Try to replace the dll with the "older" version. Perhaps the function was removed from the library?Regards,Mike-------There can be Obi-One Link to comment Share on other sites More sharing options...
RedVyper Posted September 24, 2004 Author Share Posted September 24, 2004 I completely re did my PE build hoping this would fix the problem. I used the same XP build with SP2 to do everything here. I created the PE then i used the vbs script included with PE to get the scription options. Now when I run an HTA file of any kind I get the fallowing. So closer but still not there. Link to comment Share on other sites More sharing options...
likuidkewl Posted September 24, 2004 Share Posted September 24, 2004 in your i386\system32 dir is the file mshta.exe in there? Link to comment Share on other sites More sharing options...
RedVyper Posted September 24, 2004 Author Share Posted September 24, 2004 in your i386\system32 dir is the file mshta.exe in there?no it was not in the system32 folder. So I added itnow I get no error message no nothing.Nothing comes up at all. Link to comment Share on other sites More sharing options...
likuidkewl Posted September 25, 2004 Share Posted September 25, 2004 I have attached a directory printout of the files and where they are supposed to be loacted in the PE build. It will be tedious but if you have all these files in each of these dir's then you should be able to run anything(HTA, VBS, ADO etc)neededfiles.txt Link to comment Share on other sites More sharing options...
pctechie Posted September 27, 2004 Share Posted September 27, 2004 Here is some info borrowed from an XPE sp2 plugin entry. You'll have to manually enter these registry entries into your hive build, but it is worth a try.; HTA Support; RegServer nlhtml.dll - SP2 + manual tweak0x1,"Classes\.hta",,"htafile"0x1,"Classes\.hta","Content Type","application/hta"0x1,"Classes\.hta","PerceivedType","text"0x2,"Classes\htafile\DefaultIcon",,"mshta.exe,1"0x2,"Classes\htafile\Shell\Open\Command",,"mshta.exe ""%1"" %*"0x4,"Classes\htafile","EditFlags",0x1000000x1,"Classes\.ascx\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.asp\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.aspx\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.css\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.hhc\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.hta\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.htm\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.html\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.htt\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.htw\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.htx\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.odc\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\.stm\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\CLSID\{25336920-03F9-11CF-8FD0-00AA00686F13}\PersistentHandler",,"{eec97550-47a9-11cf-b952-00aa0051fe20}"0x1,"Classes\CLSID\{e0ca5340-4534-11cf-b952-00aa0051fe20}",,"HTML filter"0x1,"Classes\CLSID\{e0ca5340-4534-11cf-b952-00aa0051fe20}\InprocServer32",,"nlhtml.dll"0x1,"Classes\CLSID\{e0ca5340-4534-11cf-b952-00aa0051fe20}\InprocServer32","ThreadingModel","Both"0x1,"Classes\CLSID\{eec97550-47a9-11cf-b952-00aa0051fe20}",,"HTML File persistent handler"0x1,"Classes\CLSID\{eec97550-47a9-11cf-b952-00aa0051fe20}\PersistentAddinsRegistered\{89BCB740-6119-101A-BCB7-00DD010655AF}",,"{e0ca5340-4534-11cf-b952-00aa0051fe20}" Link to comment Share on other sites More sharing options...
mbouchard Posted September 27, 2004 Share Posted September 27, 2004 Just to verify, did you copy the folder that was created when you used the install components file into your PE build location? Link to comment Share on other sites More sharing options...
RedVyper Posted September 27, 2004 Author Share Posted September 27, 2004 Just to verify, did you copy the folder that was created when you used the install components file into your PE build location?Yes I did Link to comment Share on other sites More sharing options...
etorbenson Posted September 30, 2004 Share Posted September 30, 2004 The WinPE.CHM file explains how to get the files you need into your WinPE image. You then need to run OC2.BAT in your STARTNET.CMD file to register the DLLs. HTAs definitely work...I wrote an entire setup script in Dynamic HTML that runs in WinPE. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now