I'll give you my custom function for creating file associations. You should be able to figure it from that:-

VB Code:
  1. Public Function AddAssociation(ByVal fExt As String, ByVal appName As String, ByVal appPath As String) As Boolean
  2.   Try
  3.        Dim extKey As RegistryKey = Registry.ClassesRoot.CreateSubKey(fExt)
  4.        extKey.SetValue("", appName)
  5.        Dim appKey As RegistryKey = Registry.ClassesRoot.CreateSubKey(appName)
  6.        appKey.SetValue("", appName & " File")
  7.        Dim shellKey As RegistryKey = appKey.CreateSubKey("shell")
  8.        Dim openKey As RegistryKey = shellKey.CreateSubKey("open")
  9.        Dim commKey As RegistryKey = openKey.CreateSubKey("command")
  10.        commKey.SetValue("", appPath & " %1")
  11.        Return true
  12.    Catch
  13.        Return False
  14.    End Try
  15. End Function