We have some special requirements:
Is there any way for the main app to know the location of ClickOnce installation folder?
Thanks, yyff
Every ClickOnce application installed on a local computer has a data directory, stored in the user's Documents and Settings folder. Any file included in a ClickOnce application and marked as a "data" file is copied to this directory when an application is installed.
ClickOnce is a deployment technology that enables you to create self-updating Windows-based applications that can be installed and run with minimal user interaction.
A deployment manifest is an XML file that describes a ClickOnce deployment, including the identification of the current ClickOnce application version to deploy. Deployment manifests have the following elements and attributes. Element. Description. Attributes.
Select the Add Port button. Enter a Name and the Port Number 58724.
You can do this by examining the executing assembly and retrieving the location.
System.Reflection.Assembly assm = System.Reflection.Assembly.GetExecutingAssembly();
This is the location of your ClickOnce deployment. --> assm.CodeBase
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With