MSFN Forum: Window.open within HTA file in WinPE - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Window.open within HTA file in WinPE Rate Topic: -----

#1 User is offline   MycroftHolmes 

  • Group: Members
  • Posts: 5
  • Joined: 13-October 04

Posted 13 December 2004 - 11:31 AM

I am writing an application that configures the drives on a machine and launches a Server 2003 install.

I wanted to be able to provide status messages to the user via popup windows. When I use the app within XP or 2003, it works great, but when I run it in WinPE I get a "Class not registered" error when I try to execute Window.Open.

Has anyone used HTA files to create a user interface within WinPE?


Regards,

Jim


#2 User is offline   jawwen 

  • Group: Members
  • Posts: 6
  • Joined: 12-December 04

Posted 13 December 2004 - 07:15 PM

Could you please post the part of the code, Windows PE just lacks of some the security models that Windows XP has and that is normally causing this kind of error when using certain function in HTA pages.

#3 User is offline   ChrisBaksa 

  • Member
  • PipPip
  • Group: Members
  • Posts: 230
  • Joined: 05-March 04

Posted 14 December 2004 - 07:59 AM

Did you add the OPTIONAL Components?
HTA will not work unless you have added these components.

On your WinPE OPK cd go to the WINPE dir and run the "wscript BUILDOPTIONALCOMPONENTS.VBS /H"

Chris

#4 User is offline   MycroftHolmes 

  • Group: Members
  • Posts: 5
  • Joined: 13-October 04

Posted 14 December 2004 - 08:08 AM

Yes I installed the optional components. The rest of the HTA application is working fine. As a matter of fact I can do a Window.showModalDialog, but I can't do a Window.showModelessDialog or a Window.Open.


There is too much code to post, but here is the function that creates my popup status:

Function DisplayMessage (sMessage)
SET oStatusWindow = Window.open("","mywindow","location=0,status=0,scrollbars=0,width=200,height=200")
oStatusWindow.document.writeln "<HEAD><TITLE>Please wait</TITLE></HEAD><BODY>"
oStatusWindow.document.write "<CENTER><FONT SIZE=5>" & sMessage & "</FONT></CENTER>"
oStatusWindow.document.writeln "</BODY>"
SET DisplayMessage = oStatusWindow
End Function

Thanks,

-Jim

#5 User is offline   ChrisBaksa 

  • Member
  • PipPip
  • Group: Members
  • Posts: 230
  • Joined: 05-March 04

Posted 14 December 2004 - 08:22 AM

MycroftHolmes, on Dec 14 2004, 08:08 AM, said:

There is too much code to post, but here is the function that creates my popup status:

Also... If you are using PE 2004 or 2005.... Disable the Firewall.
I have heard of some weird things happening when it is enabled.

Are you uisng an custom DLL librarys?
Are they registered?
Do you have VB Runtimes added to he the styetm32 Directory?

Use Dependency walker to show you what dll's and exe's are associated with the file you are trying to run. Make sure you use F7 to run it and get the entire picture.

Chris

#6 User is offline   MycroftHolmes 

  • Group: Members
  • Posts: 5
  • Joined: 13-October 04

Posted 14 December 2004 - 08:52 AM

Quote

Are you uisng an custom DLL librarys?
No

Quote

Do you have VB Runtimes added to he the styetm32 Directory?

I'm not using VB only VBScript and HTA.

Quote

Use Dependency walker to show you what dll's and exe's are associated with the file you are trying to run. Make sure you use F7 to run it and get the entire picture.

I've never used this. I will look into it. Will it work with an HTA app or only for EXEs?


Thanks,

-Jim

#7 User is offline   Jazkal 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 590
  • Joined: 16-January 04

Posted 19 January 2005 - 05:01 PM

Did you ever get this resolved? I'm just starting on something just like this, and could use the info.

Thanks

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy