Possible Duplicate:
Register file extension in window registry?
I would like to make my program the default program for .txt files when installed. A lot of programs do the same thing, when installing for example a browser, all the html files get the program's icon and if opened, the program opens, without needing the user to set it as default program. How can I do that? And also for the icon, microsoft word for example uses a different icon for the program and for the files. How can I do that? Thanks!