Hi,
We are trying to use clickone deployment for updating our application.My application is winform application and targeted to .NET Framework 3.5. Since we cant pass commandline arguments to clickone deployment I have created a application for passing arguments to clickone application using following code
And i pass arguments to shortcut of this application. I have used this code to receive arguments in clickone application
I passed argument like ?/?customer?/? to my initial app and it is receiving as ?\?customer?\? in clickone application(In arg = activationData(0) statement)!!. What made to change / to \ while receiving argument? pls help
We are trying to use clickone deployment for updating our application.My application is winform application and targeted to .NET Framework 3.5. Since we cant pass commandline arguments to clickone deployment I have created a application for passing arguments to clickone application using following code
Code:
Imports VB = Microsoft.VisualBasic
Public Class Form1
Dim argsToPass As String = VB.Command
Dim shortcutPath As String = "\\pc127\d\desktop\Global.appref-ms"
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.Diagnostics.Process.Start(shortcutPath, argsToPass)
End Sub
End Class
Code:
Dim activationData() As String = AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData
arg = activationData(0)