It simply depends on what is setup in your system registry for the said file types. Most typically, you change it in the installation package of your software.
See, for example, this CodeProject article on how it can be done in C#:
System File Association[
^].
—SA