Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Q: Assigninig icons to File types

07 Jun 2010   #1
DarkStar GT

Windows Home Premium (64)
 
 
Q: Assigninig icons to File types

Short version:
i) How can I assign an icon within a third-party software app to a filetype?
ii) How can I remove the assignment of a program to "always open" a filetype?


----------------------------
Background diagnostics:
In XP, a software app (Native Instruments' Kontakt 3) assigns different icons to several filetypes that it uses, so you can distinguish them in Explorer. This did not work in Windows 7. I wondered why.

Below is a screenshot of what I've found in Windows 7, plus a screenshot from XP showing the available icons). The filetype (.nki) is mapped to the Registry key: Kontakt.Instrument.3. And here are the exported Registry entries:
Quote:
Exported from Windows 7 Home Premium
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Kontakt.Instrument.3]
@="Kontakt Instrument"

[HKEY_CLASSES_ROOT\Kontakt.Instrument.3\DefaultIcon]
@="C:\\Program Files (x86)\\Native Instruments\\Kontakt 3\\.exe,1"

[HKEY_CLASSES_ROOT\Kontakt.Instrument.3\shell]

[HKEY_CLASSES_ROOT\Kontakt.Instrument.3\shell\open]

[HKEY_CLASSES_ROOT\Kontakt.Instrument.3\shell\open\command]
@="C:\\Program Files (x86)\\Native Instruments\\Kontakt 3\\.exe %1"

------------------------------------------------
Exported from Windows XP Home
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Kontakt.Instrument.3]
@="Kontakt Instrument"
"EditFlags"=dword:00000000

[HKEY_CLASSES_ROOT\Kontakt.Instrument.3\DefaultIcon]
@="C:\\Program Files\\Native Instruments\\Kontakt 3\\Kontakt 3.exe,1"

[HKEY_CLASSES_ROOT\Kontakt.Instrument.3\shell]

[HKEY_CLASSES_ROOT\Kontakt.Instrument.3\shell\open]

[HKEY_CLASSES_ROOT\Kontakt.Instrument.3\shell\open\command]
@="C:\\Program Files\\Native Instruments\\Kontakt 3\\Kontakt 3.exe %1"
I have noticed three things:
a) the Defaulticon data value has an extra \ just before .exe, but the Shell Open command works when I double-click an .nki file.
b) the icon index number is positive (although in this tutorial File Extension Icon - Change Default Icon , negative index numbers are used),
c) there were DefaultIcon entries for the other filetypes with index values of 2, 3, and 4

------------------
After creating a System Restore point and Exporting the Registry keys:
i) Will it be safe to remove the extra \ in the DefaultIcon data values?
ii) Will be be safe to delete the shell\open branch?




Attached Thumbnails
-kontakt-icons_02.png  
My System SpecsSystem Spec
.

07 Jun 2010   #2
dunfiddlin

 

There's no reason why either should be unsafe to try. I'm a little baffled as to how it's working with the additional \ at all. The worst that can happen is that you can't open the .nfi files but then you can just restore the values. There should be no adverse effects on the system generally and you've always got the restore point to save you from disaster if by some freak ten billion to one chance there is a problem.
My System SpecsSystem Spec
25 Jun 2010   #3
DarkStar GT

Windows Home Premium (64)
 
 

Update:

a) on closer inspection, the problem in the data value is not an extra backslash; rather it is the omission of the program name. For example, the Exported data value is:
[HKEY_CLASSES_ROOT\Kontakt.Instrument.3\DefaultIcon]
@="C:\\Program Files (x86)\\Native Instruments\\Kontakt 3\\.exe,1"
It should be:
[HKEY_CLASSES_ROOT\Kontakt.Instrument.3\DefaultIcon]
@="C:\\Program Files (x86)\\Native Instruments\\Kontakt 3\\Kontakt 3.exe,1"
[Exports form the Registry change single back-slashes in data values to double back-slashes]

b) I changed the values in the DefaultIcon and Shell-Open-Command keys for one element only. That still did not work; the icons were still not correct.

e) Here's the odd thing. I switched to another user -and the icons were correct for that user. I logged off that user, back to my normal one and the icons were wrong. Please see the attached screenshot.

f) That suggests to me that it is some sort of Windows 7 permissions problem, preventing access to those Registry keys in some cases.

g) let me give you some background details:
-- the Windows 7 PC is new, and one user account ("SF") was configured by the PC supplier,
-- I logged in as "SF" and created a second account ("DS") as an Administrator account
-- I logged in as "DS" and ran the program installer that created those Registry keys. So "DS" is the creator/owner.

h) But it looks like "SF" does have access to those Registry keys and "DS" does not.

i) I also checked the Defaulticons set up for filetypes when I installed 2 other programs as user "DS" (they were Foxit Reader and Reaper (a music production app). Those icons were displayed correctly for both users.

Does that make sense? It seems odd that the Windows 7 "owner" cannot access the Registry keys.

If I look at the Permissions in the Registry what should I expect to see? And any ideas how I can fix this?


Attached Thumbnails
-multis-ds-sf.png  
My System SpecsSystem Spec
.


25 Jun 2010   #4
dunfiddlin

 

I suspect that there is a second and overriding set of keys relating to the program elsewhere in the registry which apply only to the user account in which case it's not a matter of permissions at all.

However, the permissions associated with an Administrator are not those of the 'owner' (which is why we have so many tutorials on 'taking ownership'!) SYSTEM trumps Administrator when it comes to 'ownership' of Windows! But, as I say, I don't think that's the problem here
My System SpecsSystem Spec
25 Jun 2010   #5
DarkStar GT

Windows Home Premium (64)
 
 

Quote   Quote: Originally Posted by dunfiddlin View Post
I suspect that there is a second and overriding set of keys relating to the program elsewhere in the registry which apply only to the user account in which case it's not a matter of permissions at all.
That's an idea, thank you. I'll double-check that. Apart from "Kontakt.instrument" any thoughts on what to look for?
My System SpecsSystem Spec
26 Jun 2010   #6
Arc

Microsoft Community Contributor Award Recipient

Microsoft Windows 10 Pro Insider Preview 64-bit
 
 

Quote   Quote: Originally Posted by DarkStar GT View Post
Short version:
i) How can I assign an icon within a third-party software app to a filetype?
ii) How can I remove the assignment of a program to "always open" a filetype?
Hi Darkstar GT !!
I have a very little conception about the registries , but I have answers to your short version in my way.

1. You can use TuneUp Styler (bundled with TuneUp Utilities) to assign custom icons for the filetypes (though the program is not free)

-capture.jpg

As tuneup utility is not free, and it is not able to replace all the system icons, I follow Icons - Change Using Resource Hacker technique to change my icons.


2. Let us take the example of .jpg filetype . If we want to change the program to open .jpg by default, we are to ....
i] Right click on a jpeg file, and go to "properties"
-untitled.jpg

ii] Click on the "change" button
Name:  Untitled 4.jpg
Views: 3
Size:  59.9 KB

iii] In the upcoming "open with" window, first search your desired program in "recommended programs" . If it is not there, search in "other programs" by clicking the button in the crossed box in the pic. If it is not even there, click the "browse button", and search it in C:\Program Files. When got, Click on "ok" button
Name:  Untitled 3.JPG
Views: 1
Size:  82.4 KB

iv] Finally, to give the change effect, Click on "apply", and then "ok" . And you are done.
Name:  Untitled 2.JPG
Views: 1
Size:  60.5 KB


My System SpecsSystem Spec
26 Jun 2010   #7
dunfiddlin

 

Quote   Quote: Originally Posted by DarkStar GT View Post
Quote   Quote: Originally Posted by dunfiddlin View Post
I suspect that there is a second and overriding set of keys relating to the program elsewhere in the registry which apply only to the user account in which case it's not a matter of permissions at all.
That's an idea, thank you. I'll double-check that. Apart from "Kontakt.instrument" any thoughts on what to look for?
I'd just keep it simple and search for "Kontakt". You might get a lot of entries that aren't useful but at least you'll be relatively sure that you haven't missed anything!
My System SpecsSystem Spec
30 Jun 2010   #8
DarkStar GT

Windows Home Premium (64)
 
 

Update and Resolution.

Well, after I bit of prowling around the Registry I did find some more entries. After editing/deleting them I have got rid of the problem.

For info:
After I had fixed the invalid path name for the DefaultIcon entry,
-- I found the keys
Code:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.nki]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.nki\OpenWithList]
"a"="Kontakt 3.exe"
"MRUList"="a"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.nki\OpenWithProgids]
"Kontakt.Instrument.3"=hex(0):

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.nki\UserChoice]
"Progid"="Applications\\Kontakt 3.exe"
-- I removed the "a" and "MRUList" entries from OpenWithList
-- I removed the UserChoice key

For completeness, for HKEY_CLASSES_ROOT\Kontakt.Instrument.3
-- I removed the Shell key and its sub-keys


-------------
I think that it was originally caused when I associated Kontakt 3 with the filetype as the default program to use to open the file. I am not about to try it again to confirm that idea.


My System SpecsSystem Spec
Reply

 Q: Assigninig icons to File types




Thread Tools





Similar help and support threads
Thread Forum
File Types
Can anyone please help before I go crazy, When I try to display an IMG file on a forum I am unable to do so, I have done it a hundred times before but I must have changed some setting or deleted something, the message I am getting from the forum on which I post after copying the IMG from...
General Discussion
Freeware la Folderico, but for file types [Custom icons]?
Folderico lets you change folder icons to whatever you want, which is great, but I haven't been able to find a similar software for file types. I'm not looking to change the icon to every file, only certain ones that have blank thumbnails (think .bin or .gba files for example; I want to give each...
Customization
Display File Extension on Unknown File Types
Hello :o I dont know if Im on the right section to post this. I just want to ask to our fellow members and gurus here, I dont know what went wrong but suddenly the unknown file types in my Windows 7 PRO x64bit doesnt display its file extensions anymore.. How can i restore it to default? to...
General Discussion
Symbolic File Folder with Specified File Types?
I'm sure there's a way to do this, but it's out of my realm of digging in windows. What I need essentially is a Symbolic Folder that will scan a set directory and only return specific file types. For example, I have five folders with .jpgs, .psds, and .txt. What I would like is to create a...
Software
I can't sort by File Types. What happened to File Details?
When I do a search on how to sort, I get a Tutorial that tells me to open the "View" Menu item. However, as you can see from the attached, I don't have a VIEW menu on my Folder. I would like to sort these by file type so that I can save them to a CD. What am I doing wrong here?:(
General Discussion
Icons for Music file types?
I want to change the default ICON for an MP3 file to make it display different from a WAV file when the two types of files are in the same folder? In XP and Windows Vista we had a "File Types" tab, where you could "Change the ICON" for different file types. Can't find this in Windows 7? As...
Customization

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:57.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App