How to set the default program for a file extension?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1720710/register-file-extension-in-window-registry">Register file extension in window registry?</a>  </p>
</blockquote>



<p>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!</p>
