C # Deploying my application - clickonce only from the Internet

So, I developed my application in C #. I am ready to deploy it. I want to make sure that users always run it from my site (so that they always receive updates, without installation, etc.).

Is ClickOnce the right way to do this?

I tried deploying ClickOnce to my server, and several things popped up on me:

1) The user is given the opportunity to start the installation or run the .application file - what's the difference? Could it discover this on its own?

2) When I try to "run" the application., It asks to download it to my computer. Anyway, just run the file directly from the browser?

3) After downloading and running the .application file, I get an error message with the following message: "The deployment and the application do not have appropriate security zones."

+7
c # deployment clickonce
source share
1 answer

Yes, ClickOnce is great for your needs.

  • setup.exe , or the “bootstrapper,” as it is called, is used to install prerequisites such as the .NET Framework and Microsoft Installer, because it is a .NET environment that contains the ClickOnce runtime that is required to install your application. The bootstrapper should only be used once and only on computers that do not have these prerequisites, after which only the .application file called the “deployment manifest” is used for updates. When you publish using ClickOnce, a Publish.htm file is created that contains JavaScript code that determines whether the user has the necessary prerequisites. If the user does not do this, he presents a button that refers to setup.exe , otherwise it represents a button that is directly associated with the .application file. You can use this page (or create it based on it) to provide users with the shortest installation option.

  • Either the .NET Framework is not installed on the client computer (in this case, use the bootloader), or your web server is not configured properly, and therefore does not associate the .application extension with the MIME type application/x-ms-application . Create this association to solve the problem. I also recommend adding some http headers to disable the cache in the deployment manifest, otherwise the user's browser may cache it, and this may result in no updates for the user.

  • You cannot download and run the deployment manifest file locally for the ClickOnce installation, which was published in a web location, because ClickOnce provides a higher level of trust for the local installation (for example, from the local computer or network share), but the application manifest points to the installation source in An Internet that has a lower level of trust and thus fails. After solving Problem 2, this problem will also be resolved.

+9
source share

All Articles