Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Where in Registry to change DefaultIcon for File Types?

Reply
Thread Tools Display Modes

Where in Registry to change DefaultIcon for File Types?

 
 
David4321
Guest
Posts: n/a

 
      11-10-2009

1) How can I change the default icons for file types in the registry?

I added the key "DefaultIcon" to several file types as listed in
HKEY_CLASSES_ROOT and set the data to the full file path of the icon -
I'd have thought that would work. I've restarted, and it did not.

Where is the correct location & method?

2) Also: (once I get the correct location & make the edits) How can I
create a registry file that will add the specified changes to an
existing registry when clicked? Not save the entire registry, and
replace it, just add the specified keys & data to install these icon
changes. This should be at least good as a backup, for editing a new or
reinstalled OS, and ideally (if possible) a file that can perform a
smart operation by substituting or getting around the current system's
user folder name.

Thanks




--
David4321
 
Reply With Quote
 
 
 
 
Gene E. Bloch
Guest
Posts: n/a

 
      11-11-2009
On Tue, 10 Nov 2009 21:26:47 +0000, David4321 wrote:

> 1) How can I change the default icons for file types in the registry?
>
> I added the key "DefaultIcon" to several file types as listed in
> HKEY_CLASSES_ROOT and set the data to the full file path of the icon -
> I'd have thought that would work. I've restarted, and it did not.
>
> Where is the correct location & method?
>
> 2) Also: (once I get the correct location & make the edits) How can I
> create a registry file that will add the specified changes to an
> existing registry when clicked? Not save the entire registry, and
> replace it, just add the specified keys & data to install these icon
> changes. This should be at least good as a backup, for editing a new or
> reinstalled OS, and ideally (if possible) a file that can perform a
> smart operation by substituting or getting around the current system's
> user folder name.
>
> Thanks


A quick way to do #2 is to export a key and use the resulting .reg file as
a template.

To incorporate a .reg file, either import it from the registry editor or
just double-click on the file.

--
Gene E. Bloch letters0x40blochg0x2Ecom
 
Reply With Quote
 
Jon
Guest
Posts: n/a

 
      11-11-2009



"David4321" <> wrote in message
news...
>
> 1) How can I change the default icons for file types in the registry?
>
> I added the key "DefaultIcon" to several file types as listed in
> HKEY_CLASSES_ROOT and set the data to the full file path of the icon -
> I'd have thought that would work. I've restarted, and it did not.
>
> Where is the correct location & method?
>



That's the correct method. You add the 'DefaultIcon' key at the location
under HKEY_CLASSES_ROOT referenced by the value of the default key of

HKEY_CLASSES_ROOT\<<particular extension>>

The value of the its default key is the icon you want eg

C:\Windows\System32\SHELL32.dll,24

to get 'icon 24' in the shell32.dll file.


> 2) Also: (once I get the correct location & make the edits) How can I
> create a registry file that will add the specified changes to an
> existing registry when clicked? Not save the entire registry, and
> replace it, just add the specified keys & data to install these icon
> changes. This should be at least good as a backup, for editing a new or
> reinstalled OS, and ideally (if possible) a file that can perform a
> smart operation by substituting or getting around the current system's
> user folder name.
>
> Thanks
>



As Gene E Bloch suggested, once you've got the 'DefaultIcon' key in the
correct position, you can right-click it within regedit and choose 'Export'
to form a .reg file.




--
Jon

 
Reply With Quote
 
Brink
Guest
Posts: n/a

 
      11-11-2009

Hello David

This can help show you how to change the default icon for file types

http://www.vistax64.com/tutorials/17...con-change.htm

Hope this helps
Shaw

David4321;1188330 Wrote:
> 1) How can I change the default icons for file types in the registry
>
> I added the key "DefaultIcon" to several file types as listed i
> HKEY_CLASSES_ROOT and set the data to the full file path of the icon
> I'd have thought that would work. I've restarted, and it did not
>
> Where is the correct location & method
>
> 2) Also: (once I get the correct location & make the edits) How can
> create a registry file that will add the specified changes to a
> existing registry when clicked? Not save the entire registry, an
> replace it, just add the specified keys & data to install these ico
> changes. This should be at least good as a backup, for editing a new o
> reinstalled OS, and ideally (if possible) a file that can perform
> smart operation by substituting or getting around the current system'
> user folder name
>
> Thank
>
>
>
>
> -
> David432


--
Brin

'*MS MVP - Windows Desktop Experience*
(https://mvp.support.microsoft.com/pr...5-AD617AF3D511)
*There are no dumb questions, just the people that do not as
them.*
'*Windows 7 Forums*'
'*Windows Vista Forums*'

*Please post feedback to help others.*
 
Reply With Quote
 
David4321
Guest
Posts: n/a

 
      11-13-2009

Thanks all for helpful responses

Gene E. Bloch;885871 Wrote:
> On Tue, 10 Nov 2009 21:26:47 +0000, David4321 wrote:
> -
> 1) How can I change the default icons for file types in the registry?
>
> I added the key "DefaultIcon" to several file types as listed in
> HKEY_CLASSES_ROOT and set the data to the full file path of the ico
> -
> I'd have thought that would work. I've restarted, and it did not.
>
> Where is the correct location & method?
>
> 2) Also: (once I get the correct location & make the edits) How can I
> create a registry file that will add the specified changes to an
> existing registry when clicked? Not save the entire registry, and
> replace it, just add the specified keys & data to install these icon
> changes. This should be at least good as a backup, for editing a ne
> or
> reinstalled OS, and ideally (if possible) a file that can perform a
> smart operation by substituting or getting around the curren
> system's
> user folder name.
>
> Thanks-
>
> A quick way to do #2 is to export a key and use the resulting .reg fil
> as
> a template.
>
> To incorporate a .reg file, either import it from the registry edito
> or
> just double-click on the file.
>
> --
> Gene E. Bloch letters0x40blochg0x2Eco



--
David4321
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registry Cleaner mchjr01 Windows Vista Performance 8 01-24-2008 04:01 PM
office 2007 install on windows vista ultimate Chas Windows Vista Installation 20 11-19-2007 04:50 PM
Does Vista registry ever need any 3rd party 'cleaner software?' captfbgnet Windows Vista Performance 8 11-08-2007 01:49 AM
Registry Cleaner Greg Windows Vista Performance 27 08-28-2007 06:14 PM
Registry Repair Tool Steve Windows Vista Performance 12 08-23-2007 11:46 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59