Jump to content

Recommended Posts

Posted

I have an HTA application originally written for WinPE 1.2 using JavaScript. I'd like to port it to WinPE 2.0, but there seems to be no JavaScript support. Googling has turned up no information on the subject, so I was hoping someone could enlighten me. Is there any reasonable way to get JavaScript support with WinPE 2.0?

Thanks!


Posted

I should clarify the situation. I created a WinPE 2.0 image which includes the HTA-suppport and Scripting packages. I also wrote the following "hello,world" hta/javascript program and added it to the image. When I boot the image and run the hta file, it is apparent that neither of the two JavaScript statements are executed.

I did find one obscure post somewhere claiming that JavaScript is supported, but nothing else I've read or done confirms that.

<html><head>
<title>My application</title><hta:application
id="MyApp"
applicationName="My application"
>
</head><body>

<script language = JavaScript>
<!--

document.write("Hello, World");
alert("Hello, World");

//-->
</script>

</body>
</html>

Posted

pre-WAIK (before Vista) -> WinPE 1.x

WAIK 1.0 (Vista) -> WinPE 2.0

WAIK 1.1 (Vista SP1) -> WinPE 2.1

WAIK 2.0 (Win7 beta) -> WinPE 3.0

I tried your hta in WinPE 2.1 and WinPE 3.0.

In WinPE 2.1, it requires the XML Package as well as HTA and Scripting Host. BTW, nice hta! ... :D ....

I can't say for certain, but assume the situation is the same for WinPE 2.0, although I seem to remember that once upon a time, an hta needed to be executed with mshta.exe ... :unsure: ... which is not the case now.

AFAIK, for WinPE 3.0, the base winpe.wim now includes XML and it is no longer an optional Package. However, the javascript part of your hta does not work in WinPE 3.0, even with all the other OS Packages installed. ... :huh: ... At least with my attempt.

Perhaps someone else can figure it out.

Regards

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...