Jan 9, 2011 at 2:42 AM
Edited Jan 9, 2011 at 2:53 AM

Awesome library, does this support startup args?

Example, normally id do this:


Imports Microsoft.Win32.Registry
       If Microsoft.Win32.Registry.ClassesRoot.OpenSubKey("ps2\shell\open\command", True) Is Nothing Then
         Dim response As String = MsgBox(Prompt:="EXS files are not associated with Vistube, associate now?", Buttons:=vbYesNo)
            If response = vbYes Then
         Dim icotouse As String = Application.StartupPath() & "\ICONS\" & "ps2.ico"
            My.Computer.Registry.ClassesRoot.CreateSubKey(".ps2").SetValue("", "PSX2", Microsoft.Win32.RegistryValueKind.String)
            My.Computer.Registry.ClassesRoot.CreateSubKey("ps2\shell\open\command").SetValue("", Application.ExecutablePath & " ""%l"" ", Microsoft.Win32.RegistryValueKind.String)
            My.Computer.Registry.ClassesRoot.CreateSubKey("ps2\DefaultIcon").SetValue("", icotouse)
         End If
     End If     

This part
Application.ExecutablePath & " ""%l""

Is also supported by your library?


Jan 17, 2011 at 4:00 PM

Hi dragonrose.

Yes. startup arguments is automatically appended when setting the ShellOpenCommand property of the ApplicationAssociation class.