Tuesday, December 18, 2007

Change file extension icon in Windows Vista

Do you remember how easy it is to change the icon of a file (eg: .jpg, .zip) in the previous build of Windows?

This is the option where you can find in Windows XP:


This is the folder option for Windows Vista:


In Windows Vista, the option was gone. Some might not even know that actually we still had the option of changing file type association in Windows Vista. To change the file type association in Windows Vista, just follow the simple steps below :
(Let say we want to change the default program to open a jpg file)

Method 1

1. Simply find a .jpg file, and right click on the .jpg file.

2. Go to Open With > Choose Default Program.. .

3. You would see a windows popup like this.


4. Make sure that the option Always use the selected program to open this kind of file was checked.

5. Just click OK when you are done.


That's it. Quick and Easy. If you don't like this method, and you want to directly change the default program for multiple extension, actually there is a similar interface like what you had in Windows XP.


Method 2

1. Open up the Control Panel by go to Start > Control Panel.

2. Select and open Default Programs.

3. Select Associate a file type or protocol with a specific program.



There you go. A similar interface that you used to had in Windows XP. Now, what's missing from the menu? For those that always want to customize the file type icon like me, you would sure aware that there is no more option for you do it.

Don't worry, Windows Registry Editor holds most of the secret. For those who are familar with Windows, they would know that Regedit always has a way out. Yup cut off the crap, lets get hands dirty.

(I won't use .jpg as example as I doubt you will change the icon of .jpg. This is because Windows Vista has a live preview features for most of the image type. You wouldn't want to lost it right? So lets says we want to change the icon of .zip file this time.)

1. Make sure you have your icon file ready, in this scenario i use (myZip.ico) stored in (D:\MyIcon).

2. Open up Start, type "regedit" in the search field, and of course press Enter.

3. Expand your HKey_Classes_Root hive, and find ".zip" key.

4. Read the value stored in "default". By default it should be "CompressedFolder" and it might be vary if your .zip file is opened using Winzip or Winrar.

5. Move on using my scenario, I should find "CompressedFolder" key in the same path.

6. Expand the key, and you would find "DefaultIcon" subkey.

7. Just change the value of Default to where your icon was stored. In my case, I just change to "D:\MyIcon\myZip.ico". If your icon files has multiple icon, you can also specify the index of the icon. (Eg: "D:\MyIcon\myZip.ico,1").

8. When you done, just close up everything, log off and log in back, you should see .zip icon was updated.


Easy? Complicated? Nah, if you opted for the easy way, there's a "littleway" for you. Stardock was offerring a very powerful tools called "IconPackager" with a little sum you need to pay.

Refuse to pay? Then stick back to your default icon! Hahaha... PowerTools from Creative Element is a freeware that enable you to change the icon easily too. However don't expect that it would be as great as IconPackager. :P They have their own target users.

Have Fun~!!

Update : Opps, indeed PowerTools is not a freeware anymore. Thanks CoolRaoul, for the information.

18 comments:

Anonymous said...

PowetTools is *not* freeware: (powertools purchase page)

dandin1 said...

"Refuse to pay? Then stick back to your default icon! Hahaha... "

Not the kind of thing an angry Vista user wants to hear after learning that microsoft stupidly slashed yet another Windows feature without putting a suitable replacement. I don't want to pay for a software that offers me advanced functionality, I want the ability to do what I should be able to do with tools included in the OS! Yes, there's the registry, but maybe I can wip up some kind of solution.

Anonymous said...

i could not find the 'defaulticon' sub key............how???

Nafee Mostafa Sadh said...

Nice, but tough huh!
thanx

Anonymous said...

This didn't work for me. :(

Anonymous said...

It was close but there was not defaulticon sub key so I was not able to change the icon. (FYI trying to change the ZIP file as per the guide).

Anonymous said...

Thank you. Works fine for me.

Anonymous said...

For java defaulticon was under javafile rather than .java
Maybe others are like this.

Anonymous said...

Just right click on your file extention folder and select "New" then "Key".

Then change the value of the default string value to point to your icon file.

Peter said...

Thank you for the step-by-step instructions on using REGEDIT. I can't believe Microsoft removed this feature.

No, wait — I can.

Julian S said...

Hey, I read your post and I want to thank you. I tried what you suggested(the second option) and it worked like a charm I'm surprised I never tried it before. Probably because I thought I already had, months before. Thanks again.

Rahul said...

I am Very thankful to u for this handy piece of information

Nuck Chorris said...

There would appear to also be this alternative: Nirsoft File Types Manager - it definitely has a far worse UI, but, hey, it is free, right? I'm trying to use it to replace the default icons for the Adobe CS4 apps & the files they open. Be forewarned, though: even with my computer knowledge (I'm a programmer), I accidentally got rid of some app info for the PSD file type (I started with that one). While it shouldn't be too hard to fix, at least for somebody with a little experience, it might cause countless headaches for anyone who doesn't know what they're doing.

Catherine said...

Thank you very much for the tutorial. It was very useful!

Poncho said...

Not bad - but after changing 2 file icon types - I came to the smart conclusion of DELETING VISTA because I came to the end of my rope like many did with that OS...

Anonymous said...

Thanks so much for the easy instructions. Other sites/forums included several totally unnecessary, convoluted steps to edit the registry.

viagra online said...

In principle, a good happen, support the views of the author

The Peripatetic Peregrinater said...

I'm really impressed with how clear and precise your tutorial is, I looked at a few other sites before stopping here, and most had some sort of handwaving or casual attitude that get newbies like me into trouble. Thanks so much for having the talent and taking the time to do such a nice job. Needless to say, it worked flawlessly for me. Thanks again!!