views:

676

answers:

1

How to register an extension to a particular custom application programmatically?

For example, i have a custom application created using C# on Windows. How can i register a file extension so when i double click a file with this extension, it starts my custom application and then i can deal with the clicked file in my app?

I need to do this programatically during installation of the custom application.

EDIT: Duplicate here

http://stackoverflow.com/questions/69761/how-to-associate-a-file-extension-to-the-current-executable-in-c