MSFN Forum: .HTA backgrounds in WinPE - MSFN Forum

Jump to content


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

.HTA backgrounds in WinPE Rate Topic: -----

#1 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 14 May 2004 - 02:51 PM

I am trying to get a .bmp to be the background of a .HTA file in windowsPE and it is just not working. I am wondering if anyone knows a way to make this work. I don't want to have to add explorer and IE to make this work either, so if anyone knows of a way please feel free.

Here is the begining of the .hta file
<HTML>
 <HEAD>
    <TITLE>WinPE Recovery and Install disc</TITLE>
    <HTA:APPLICATION 
	ID="oApp"
	WINDOWSTATE="Normal"
	BORDER="none"
	INNERBORDER="Yes"
	SHOWINTASKBAR="yes"
	SCROLL="No"
	APPLICATIONNAME="WinPE Recovery Console"
	NAVIGABLE="yes">
	
	<style type="text/css">
  TD {font-size:8pt}
  input {font-size:8pt}
  H5 {font-size:10pt; font-style:bold}
	</style>
 </HEAD>
<BODY BGCOLOR="000000">
<BODY BACKGROUND="file:///%systemdrive%\i386\system32\InstallBG.bmp">
<FONT COLOR="White" FACE="times">
<H2><Center>Welcome to the WinPE Installation and Recovery CD.</Center></H2>
<Center>Designed by Likuidkewl</Center>
<script language="VBscript">
Dim WshShell : Set WSHShell = CreateObject("Wscript.Shell")
Dim WshNetwork : Set WshNetwork = CreateObject("WScript.Network")
Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject")

sub window_onload()
	window.resizeto 640, 480
	window.moveTo 112, 84
end sub



#2 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 14 May 2004 - 11:47 PM

Thought this fixed it but it didn't


<HTML>
 <HEAD>
    <TITLE>WinPE Recovery and Install disc</TITLE>
    <HTA:APPLICATION 
	ID="oApp"
	WINDOWSTATE="Normal"
	BORDER="none"
	INNERBORDER="Yes"
	SHOWINTASKBAR="yes"
	SCROLL="No"
	APPLICATIONNAME="WinPE Recovery Console"
	NAVIGABLE="yes">
	
	<style type="text/css">
  TD {font-size:8pt}
  input {font-size:8pt}
  H5 {font-size:10pt; font-style:bold}
	</style>
 </HEAD>
<BODY BGCOLOR="#000066">
<FONT COLOR="000000" FACE="times">
<H2><Center>Welcome to the WinPE Installation and Recovery CD.</Center></H2>
<Center>Designed by Likuidkewl</Center>
<script id=clientEventHandlersVBS language=vbscript>

Dim WshShell : Set WSHShell = CreateObject("Wscript.Shell")
Dim WshNetwork : Set WshNetwork = CreateObject("WScript.Network")
Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject")

sub window_onload()
	window.resizeto 450, 400
	window.moveTo 112, 84
	window.document.body.background = "file:///"+ _ 
                   WshShell.ExpandEnvironmentStrings("%SystemRoot%") + _
                   "\Scripts\installbg.bmp"
end sub

sub Diskpart_onclick()
  WshShell.Run "%systemdrive%\Scripts\DiskPart.cmd"
end Sub


The whole code is not posted, due to the nature of the question asked, but if anyone wants to see it, I can post it.

#3 User is offline   Kenny McCormick 

  • Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 07-April 03

Posted 15 May 2004 - 03:37 AM

Can you post the whole code? I like to se it.

#4 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 15 May 2004 - 05:15 AM

<HTML>
 <HEAD>
    <TITLE>WinPE Recovery and Install disc</TITLE>
    <HTA:APPLICATION 
	ID="oApp"
	WINDOWSTATE="Normal"
	BORDER="none"
	INNERBORDER="Yes"
	SHOWINTASKBAR="yes"
	SCROLL="No"
	APPLICATIONNAME="WinPE Recovery Console"
	NAVIGABLE="yes">
	
	<style type="text/css">
  TD {font-size:8pt}
  input {font-size:8pt}
  H5 {font-size:10pt; font-style:bold}
	</style>
 </HEAD>
<BODY BGCOLOR="#000066">
<FONT COLOR="000000" FACE="times">
<H2><Center>Welcome to the WinPE Installation and Recovery CD.</Center></H2>
<Center>Designed by Likuidkewl</Center>
<script id=clientEventHandlersVBS language=vbscript>

Dim WshShell : Set WSHShell = CreateObject("Wscript.Shell")
Dim WshNetwork : Set WshNetwork = CreateObject("WScript.Network")
Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject")

sub window_onload()
	window.resizeto 450, 400
	window.moveTo 112, 84
	window.document.body.background = "file:///"+ _ 
                   WshShell.ExpandEnvironmentStrings("%SystemRoot%") + _
                   "\Scripts\installbg.bmp"
end sub

sub Diskpart_onclick()
  WshShell.Run "%systemdrive%\Scripts\DiskPart.cmd"
end Sub

sub explorer_onclick()
  WshShell.Run "%systemdrive%\Scripts\explorer.vbs"
end Sub

sub Notepad_onclick()
  WshShell.Run "%systemdrive%\Scripts\notepad.vbs"
end Sub

sub Readme_onclick()
  WshShell.Run "%systemdrive%\Scripts\Readme.vbs"
end Sub

sub run_onclick()
  WshShell.Run "%systemdrive%\Scripts\run.vbs"
end Sub

sub run_onclick()
  WshShell.Run "%systemdrive%\Scripts\pro.vbs"
end Sub

sub run_onclick()
  WshShell.Run "%systemdrive%\Scripts\home.vbs"
end Sub

sub reboot_onclick()
  WshShell.Run "%systemdrive%\Scripts\reboot.vbs"
end Sub

sub shutdown_onclick()
  WshShell.Run "%systemdrive%\Scripts\shutdown.vbs"
end Sub
</script>
<BR></BR>
<Table>
<table align="Center" cellspacing="0" width="75%">
<TR>
<TD align=Left><INPUT Type="Button" ID="Readme" Value="Readme"> View the Readme</TD>
</TR>
<TR><TD align=Left><INPUT Type="Button" ID="Diskpart" Value="Diskpart"> !WARNING! see Readme</TD>
</TR>
<TR><TD align=Left><INPUT Type="Button" ID="Explorer" Value="Explorer"> Browse the hard drive</TD></TR>
</TR>
<TR><TD align=Left><INPUT Type="Button" ID="Run" Value="Open Run"> Open the run box</TD></TR>
</TR>
<TR><TD align=Left><INPUT Type="Button" ID="Notepad" Value="Notepad"> Edit scripts</TD></TR>
</TR>
<TR><TD align=Left><INPUT Type="Button" ID="Pro" Value="XP Prof"> Install Windows XP</TD></TR>
</TR>
<TR><TD align=Left><INPUT Type="Button" ID="Home" Value="XP Home"> Install Windows XP</TD></TR>
</TR>
<TR><TD align=Left><BUTTON onclick="self.close()"> Exit</BUTTON> Back to command prompt</TD></TR>
<TR><TD align=right><INPUT Type="Button" ID="reboot" Value="Reboot"></align></TD></TR>
<TR><TD align=right><INPUT Type="Button" ID="shutdown" Value="Shutdown"></TD></TR>
</Table>
</BODY>
 </HTML>


#5 User is offline   Kenny McCormick 

  • Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 07-April 03

Posted 15 May 2004 - 05:58 AM

Thanks

#6 User is offline   Kenny McCormick 

  • Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 07-April 03

Posted 15 May 2004 - 06:15 AM

Have you tried to put the background in the same dir as the htm file and use:

<BODY BGCOLOR="000000" BACKGROUND="../InstallBG.bmp">

#7 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 15 May 2004 - 10:29 AM

Yeah tried that too, still nothing.

#8 User is offline   mbouchard 

  • Member
  • PipPip
  • Group: Members
  • Posts: 162
  • Joined: 21-April 04

Posted 17 May 2004 - 11:16 AM

I just tried the line below and was able to get it working, the picture was in the same folder as the hta


<BODY BACKGROUND="test.jpg">

#9 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 17 May 2004 - 02:32 PM

mbouchard, on May 17 2004, 12:16 PM, said:

I just tried the line below and was able to get it working, the picture was in the same folder as the hta


<BODY BACKGROUND="test.jpg">

Just out of curiosity did you use a VM or an actual cd?

#10 User is offline   mbouchard 

  • Member
  • PipPip
  • Group: Members
  • Posts: 162
  • Joined: 21-April 04

Posted 18 May 2004 - 05:36 AM

I used a VM. Have not checked on a CD. Will try it today.

#11 User is offline   mbouchard 

  • Member
  • PipPip
  • Group: Members
  • Posts: 162
  • Joined: 21-April 04

Posted 24 May 2004 - 01:01 PM

I finally got around to testing this and yes it did work off of the CD.

Mike

#12 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 24 May 2004 - 07:09 PM

Thanks when I get around to it again, I will see what my issue is.

Share this topic:


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

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



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