windows 7 icons

Creating A Custom File Icon In Windows

There is an old adage “Don’t judge a book by its cover” however, the reality is that many people do judge on first impressions and this is certainly true of applications. It doesn’t matter how good your application is, the fact is that a significant percentage of potential users will be put off even trying an application if it doesn’t have a professional look to it. People will assume that if you haven’t taken any care with the packaging then you haven’t taken care of the application itself. One very prominent part of any application is its icon. Programs with the default windows executable icon just don’t look nice; they need to be replaced with a custom one.

1) Who is this for?
People who want to alter a file’s icon image without spending money to do so. This article is also focused on Windows and as such will not directly apply to other operating systems like Mac OS or Linux. The method described below is valid for any version of Windows between 98 and Vista.

2) Software you will need
One of the best programs to create Windows Icon Format files, IcoFX, is completely free and can be downloaded from http://icofx.en.softonic.com/. IcoFX doesn’t just covert image files into icon files it is also a reasonably well featured paint package which will allow you to create icons from scratch. If however you have access to something like Photoshop or are more used to using other packages then it is probably quickest to create the graphics there and then import them into ICOFX to be processed.

If you don’t have Photoshop then one of the best freely available paint packages/image manipulation programs is called Paint.NET which can be downloaded from http://www.getpaint.net/.

Finally you will need a program to take the icon file and apply it to your executable. Help with this comes in the form of Resource Hacker which can be downloaded from http://angusj.com/resourcehacker/. Ironically Resource Hacker is a program you shouldn’t judge by its packaging since it is a very barebones application.

3) Create the Graphics
Icon files include, or can include various different versions of the icon at different sizes and colour depths. These different sizes come into use depending on the DPI (Dots Per Inch) settings in Windows among other things. This however does not mean that you have to draw several versions of your icon. If you create the icon image at the largest size all the other versions can be created automatically from it in IcoFX. Therefore you should create your icon image at 256 by 256 pixels with a 24 bit colour depth. Icons can contain transparent and semitransparent areas so feel free to create an image with an 8bit alpha channel to make use of this feature.

4) Create the Windows Icon File
Once drawn, import the image into IcoFX and export it as a Windows Icon File (.ico). IcoFX makes this task very intuitive and self explanatory so describing the process here is unnecessary. It is Resource Hacker which will likely give you problems the first time you use it.

5) Apply the icon to an executable file.
The final step is to apply the icon file using Resource Hacker. To do this, go into Resource Hacker and select “File > open” then navigate to the .exe you want to apply the icon to and double click on it. You will be returned to the main menu and it will look like nothing has happened. It’s off putting but don’t worry the program is working correctly. Select “Action > Add new resource…” Now click on “Open file with new resource…” navigate to your required icon file and double click on it. Before you can continue you will have to fill in the fields “Resource Name” and “Resource Language” You can type in anything you like in these two fields but I usually write something descriptive about the image used for the icon in the “Resource Name” field, and for “Resource Language” I use “English”. Now click “Add Resource” and to finish off click “File > Save”. Well done, you have just created your own custom icon and applied it. Just to be on the safe side Resource Hacker creates a backup of the original file in case there has been a problem.

Contact me at Ashfield Web Design – http://www.ashfieldwebdesign.co.uk/

About the Author

Get Windows 7 Looking Icons On Your Task Bar (For XP & Vista) Tutorial


Icon-CB100-BLK  Nylon Notebook Case (Black)


Icon-CB100-BLK Nylon Notebook Case (Black)


$5.67


The Icon CB100 soft-sided laptop briefcase is a must-have accessory for any trendy businessperson. This sleek black bag has a large padded pocket with a special strap to hold laptops with screens up to 15.4″ (diagonal) securely. There are also two other large pockets for carrying other necessary accessories. The CB100 includes a carrying strap. Finally, the bag is quite durable to keep your invest…

Icon CB117 Black laptop business case for up to 17 screens


Icon CB117 Black laptop business case for up to 17 screens


$12.99


Protect your investment with the CB117 laptop carrying case from Icon. Nylon construction and an adjustable interior divider deliver durable protection and a custom fit for your up to 17″ laptop. A variety of internal and external compartments offer plenty of room for everything from business cards and PDAs to pens and memory cards. A full zip-around opening allows the bag to lie flat for easy …

Icon-FMCL03-PNK Female Clamshell Case with Pink Trim (Black/Pink)


Icon-FMCL03-PNK Female Clamshell Case with Pink Trim (Black/Pink)


$21.59


Stylish lightweight notebook case for womenProduct InformationThe FMCL03-PNK from Icon is a Female Clamshell Style Notebook Case that fits most 15.4 inch notebooks. Features include adjustable padded divider allowing custom sizing of the notebook compartment front organizer section for business cards pens PDA MP3 and cell phones removable and adjustable padded shoulder strap and trolley strap slid…

Sony Walkman NWZS545RED 16 GB Video MP3 Player (Red)


Sony Walkman NWZS545RED 16 GB Video MP3 Player (Red)


$90.00


8GB Walkman Video MP3 -RED…

Sony ICD-UX71 Digital Voice Recorder with 1GB Flash Memory


Sony ICD-UX71 Digital Voice Recorder with 1GB Flash Memory


$45.49


Item #: SY-ICD-UX71. Combining digital voice recording, USB storage, and MP3 and WMA music playback, the ICD-UX71 digital voice recorder is the perfect companion in the office, classroom or on-the-go. It has 1GB of built-in flash memory and can store up to 287 hours of voice-quality audio in LP mode or almost 18 hours of your favorite MP3 and WMA music. There’s even direct USB connectivity to your…
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay