Vb.Net - Register Solidwork "AddIn"

Can anybody help?

 

I am trying to write a Vb.Net application to automatically register a Solidworks "AddIn".

 

Here is my code so far:

 

 

Imports System.Diagnostics

Public Class Form1
   Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
       Dim RegAsmPath As String = "C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe"

       Dim AssemblyPath As String = "C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS\EventMacros.dll"


       Dim arguments As String = \$"""{assemblyPath}"""

       Dim process As New Process()

       process.StartInfo.FileName = RegAsmPath

       process.StartInfo.Arguments = arguments

       process.StartInfo.Verb = "runas"

       process.StartInfo.UseShellExecute = True

       process.StartInfo.CreateNoWindow = True

       process.Start()

       process.WaitForExit()
   End Sub
End Class
 

 

Unfortunately, I cannot get the code to register the "AddIn".

 

Has anybody got any idea what is wrong with the code?

 

Many thanks in advance!

 

Darren