Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've tried to search answer for this but so far no avail. I have an online ClickOnce application which is started using an UNC path (not using an URL). I'd need to pass a few startup parameters to this application from another application (not a .Net app) but I just can't find out how.

So far I've tried using:
- Application.ApplicationDeployment.CurrentDeployment.ActivationUri
- AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData
- File associations

but none of these approaches seem to work with online install mode.

Any ideas would be appreciated!
Posted
Updated 30-May-18 11:42am
Comments
DotNetSteve 24-Nov-15 11:11am    
Please see if this link helps - https://robindotnet.wordpress.com/2010/03/21/how-to-pass-arguments-to-an-offline-clickonce-application/
Wendelius 24-Nov-15 12:59pm    
Thanks for the link but that applies to an offline installation. Or at least I can't get it working with online install mode.
DotNetSteve 24-Nov-15 13:33pm    
Does this help? - https://msdn.microsoft.com/en-us/library/ms172242(VS.80).aspx
Wendelius 24-Nov-15 14:00pm    
That applies when the ClickOnce application is launched using an URL. In my situation the application is started from a network share using an UNC path, e.g. \\server\share\folder\someapp param1 param2
DotNetSteve 24-Nov-15 14:12pm    
OK, I found this but if it is true, doesn't seem to be a way to do it - http://stackoverflow.com/questions/8636585/clickonce-unc-command-line

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900