Connecting Tech Pros Worldwide Forums | Help | Site Map

Make default file association

Newbie
 
Join Date: Apr 2009
Location: Stuttgart, Germany
Posts: 28
#1: Jul 1 '09
Hi guys,

I am facing this trouble.

I have associated some extension to my Application and they work good. The problem comes when I go to one of this files, right click on it, open with, select another application (like note pad) and select the check box "Always use the selected program to open this kind of file".

If I uninstall my program and re-install it again the file association will still be associated with the notepad.

Is there any option within (file types viewer) where I can define my program like Default for my extension? Maybe add an action.

Thank you.

Expert
 
Join Date: Jan 2008
Location: York
Posts: 179
#2: Jul 1 '09

re: Make default file association


You need to look into the registry. This is where file extensions and associated actions are stored. There may be methods on the Registry class to do this for you, if not you can probably just add them yourself.
Reply