Click here to Skip to main content
15,917,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have made simple notepad application.
Now I would like to make it the default application as soon as it is installed.
I know that coding for this must be done while making setup file, but can any one tell me how?
Posted
Updated 7-Jun-12 4:34am
v3

1 solution

Do you mean whenever someone tries to open a file of a certain type (txt, csv, xml etc) it is displayed in your application?

If so, what you need to do is create file type to application associations, which are done in the registry

http://msdn.microsoft.com/en-us/library/cc144158%28VS.85%29.aspx[^]

http://msdn.microsoft.com/en-us/library/windows/desktop/cc144148%28v=vs.85%29.aspx[^]

http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/d89af73d-3ad7-485a-b6c4-94dadf13659e[^]
 
Share this answer
 
Comments
Sandeep Mewara 7-Jun-12 15:05pm    
5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900