Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

Passing arguments to clickone application

$
0
0
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

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

And i pass arguments to shortcut of this application. I have used this code to receive arguments in clickone application

Code:

Dim activationData() As String = AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData
arg = activationData(0)

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

Viewing all articles
Browse latest Browse all 27350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>