Is it possible to add custom icon to hta

Bakudan picture Bakudan · Jan 4, 2011 · Viewed 7.7k times · Source

Is it possible to add custom icon to hta? What I mean is change the default hta file icon, which is "System Application Icon". Can it be done without assigning new icon to the extension, and not using shortcuts to the file ? Like this

alt text

Answer

ahgood picture ahgood · Mar 2, 2011

WinRAR can help you do that.

  1. Package your hta & icon file to exe;
  2. In options, a. select "silent" extract; b. set extract path; c. create extract path and then put that icon file there, select icon in this path. d. set run your hta(c:\your_path\your.hta) after exe file extracted. (i could not provide more detail because i don't have WinRAR installed right now, it's a common way to add icon for hta.)

Every time user run the exe you created, it will just extract hta, icon to the path you specified, and then run your hta. the exe file will have the icon display, even copy to another computer.

If you get all work done correctly, you will get a exe file with the icon you defined.

BTW, you can also try google: hta exe icon

Good luck!