Jump to content

PE 2.0 JavaScript?


gregorsamsa11

Recommended Posts

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!

Link to comment
Share on other sites


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>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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