ClickOnce and add params from a VB6 app?

  • Thread starter Thread starter srussell705
  • Start date Start date
S

srussell705

I have defined a ClickOnce published app. I have now been tasked with
receiving params from a calling app.

If I were to use a FileServer <no menu> delivery of the app how would
pass in a userID & Phone#.

These will be comming from a vb6 app but I don't think that it
matters.

I also have to set the starting of the app from a unc.

\\UNC\Path\DN_Test\Deployment suite\CCBatchProcessing.application

Can I just add on myName, 800-123-1234?

I get an error from the RunCommand dialouge box.

TIA

__Stephen
 
Hi Steve -

Make sure that you keep the application's fullpath in quotes when
adding command line parameters in the run box. Also, I don't think the
parameters need to be comma-delimited.

ie "\\UNC\Path\DN_Test\Deployment suite\CCBatchProcessing.application"
myName "800-123-1234"


For more on command line arguments:

http://www.devx.com/dotnet/Article/10115

Happy Coding,

-Mark
 
Hi Steve -

Make sure that you keep the application's fullpath in quotes when
adding command line parameters in the run box. Also, I don't think the
parameters need to be comma-delimited.

ie "\\UNC\Path\DN_Test\Deployment suite\CCBatchProcessing.application"
myName "800-123-1234"

For more on command line arguments:

http://www.devx.com/dotnet/Article/10115

Thanks for the " " I found that they were needed and have been using
them. Unfortunate that the clickOnce install and reuse won't
determine that a param was passed
"\\wsana\root\Sharedb\IT\ALLDATA_PCI\DN_Test\Deployment suite
\CCBatchProcessing.application" myParam

does the same as this in real life.

"\\wsana\root\Sharedb\IT\ALLDATA_PCI\DN_Test\Deployment suite
\CCBatchProcessing.application"

I know because the param is suposed to be extracted and put in as the
frmMain.Title. It never shows anything when called like above.

any other ideas?

TIA

__Stephen
 
Back
Top