Reputation: 964
How can I associate a specific extension with my .NET application so that the user can open a file with that extension by just double-clicking it?
I have seen some questions and some answers on these topic, but nothing seems to be complete and going to the point.
My questions is:
What is the best strategy to associate a specific extension with an application? What are the necessary steps / tools to do so? How to include this in a setup deployment project?
Thanks
Upvotes: 1
Views: 1122
Reputation: 964
Read Hans Passant comment. Using direclty Setup Deployment Project and defining there file associations is quick and easy. Perfect.
Upvotes: 1
Reputation: 4915
After this, you will be able to open the extension with your preferred program.
If you want to do this in a setup deployment, then you just need to use the cmd to modify the registry info.
Hope this will help you.
Upvotes: 4