Home All Groups Group Topic Archive Search About

ClickOnce and application command line parameters

Author
26 Feb 2007 2:30 PM
roybrew@att.net
Is it possible at all, with a ClickOnce application, to specify
command line parameters to that application?  In most cases we want to
just launch it, let ClickOnce do its thing, etc.  But in some cases,
we want to specify command line arguments to the application.  For
instance, if our application was a text editor, we would normally
launch it with the ClickOnce/Start Menu shortcut.  However, if you
wanted to launch the text editor to open a file at startup you might
specify a command line like:

"MyEditor -f myfile.txt"

There doesn't seem to be a way to pass command line arguments to
ClickOnce applications.  By publishing them as ClickOnce apps, this
seems to take away the ability to pass arguments to the program.
Likely, some security "feature" I expect.

Is my only hope to "unpublish" them?

Thanks in advance.

Roy Berger

AddThis Social Bookmark Button