tags:

views:

177

answers:

2

Is it possible to pass command line parameters to a ClickOnce application deployed from a network share? I would like to be able to run the application with command like this:

\\server\share\MyApp.application -parameter1 test -parameter2 value2

For some reason the ActivationUri is allways null.

If I deploy the application to IIS and run it like in the example below it works fine.

http://intranet/apps/MyApp.application?parameter1=test&parameter2=value2

Thanks

+1  A: 

No, sorry, you can't do this. In order to use the query parameter option with ClickOnce, you have to deploy your application to a web server, and it must be set as "online only".

RobinDotNet
+1  A: 

Since I made this post, I have discovered that you can, indeed do this. Here's how:

http://robindotnet.wordpress.com/2010/03/21/how-to-pass-arguments-to-an-offline-clickonce-application/

RobinDotNet

RobinDotNet