Jump to content

PE With HTA Files


Recommended Posts

Posted

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"?


Posted

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.

Posted

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 :P

Posted

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.

post-81-1096045182_thumb.png

Posted
in your i386\system32 dir is the file mshta.exe in there?

no it was not in the system32 folder. So I added it

now I get no error message no nothing.

Nothing comes up at all.

Posted

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

Posted

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 tweak

0x1,"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",0x100000

0x1,"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}"

Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...