PDA

View Full Version : Registering a new file type in the registry.


karthik_s
07-28-2001, 04:30 PM
Hello,
I would like to know what is the registry key to be added (or an existing one modified) to register a new file type to a particular exe. file. so that i can add this key when installing a software from the setup i created.
Ex: I have a file of type .xyz which i would like to open with some abc.exe What is the registry key to be added and where?
Can somebody help me on this issue?
Thanks.

reghakr
07-28-2001, 06:02 PM
If you don't know the registry that well, you'd be better off going to View>FolderOptions>FileTypes in Windows Explorer and add or modify it here.

This makes the neccessary changes to the registry.

If you'd like to do it in the registry, export a couple keys in the HKEY_CLASSES_ROOT branch. Export one or more of the .*** keys, then go to the corresponding section as defined by the (Default) entry under the .*** key. For example:

HKEY_CLASSES_ROOT\.awd
HKEY_CLASSES_ROOT\FaxView.Document

reghakr

RWSchlatter
07-28-2001, 07:22 PM
have also a look at Microsofts documentation !

Reference 1:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/Shell_basics/fa_best_practices.asp (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwue/html/ch11c.asp>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwue/html/ch11c.asp</a>

Reference)

Reference 3:
<a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/Shell_basics/fa_sample_scenarios.asp>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/Shell_basics/fa_sample_scenarios.asp</a>


______________
Regards - Richard

karthik_s
07-29-2001, 12:39 PM
Thanks very much.