Hello

In the past 2 hours i have been trying to figure out what i'm doing wrong in the function that i'm using to write some values into the registry.

I have this code, but in the end i can't see the new key in the registry.
vb.net Code:
  1. <ComRegisterFunction()> _
  2.         Private Shared Sub RegistarCOM(ByVal t As Type)
  3.             Dim keyPath As String = String.Format("SOFTWARE\SolidWorks\AddIns\{0:b}", t.GUID)
  4.             Using rk As RegistryKey = Registry.LocalMachine.CreateSubKey(keyPath)
  5.                 rk.SetValue(Nothing, 1)
  6.                 rk.SetValue("Title", "Testing")
  7.                 rk.SetValue("Description", "Why this doesnt work")
  8.                 rk.Flush()
  9.                 rk.Close()
  10.             End Using
  11.         End Sub