Re: Icon for an HTA



Paul Randall wrote:
"ekkehard.horner" <ekkehard.horner@xxxxxxxx> wrote in message news:4727940c$0$16665$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Bart Perrier schrieb:
Is there any way to, through a script or other other automation, give an HTA application an icon other than the default?

I am putting an HTA on the desktop of all our workstations and I know the implementation team is going to ask for a pretty icon.

Thanks for your help.

Bart Perrier
http://msdn2.microsoft.com/en-us/library/ms536482.aspx

Hi ekkehard,

I decided to try adding an icon to the sample HTA downloaded with the 'show me' button in your link, with the statement:
ICON="C:\ruby\ruby.ico"
This icon is 32 by 32 is displayed properly in a WXP search window. It does not show up as the icon for the HTA in an Explorer window. I get the same icon I get for all other HTAS. I'm running WXP SP2. When/how is this specified icon supposed to show up?

thanks,
-Paul Randall



Unfortunately, this Icon only sets the Application Icon (top left corner of the window) when the hta is executed.
You will have to place a link to your .hta on the desktop for the fancy Icon to show up.

HTH
Gottfried
.


Loading