Are There Any Serious Issues Using .NET One-Click Deployment?

I am deploying an application for an unknown number of clients. It will be 5-10 to start, after all, a dozen dozen. I am thinking of creating a different web folder for each client, so I can control the updates and roll back them differently.

Are There Any Serious Issues With One-Click Deployment? Am I going to commit suicide shortly after I arrive?

+4
source share
5 answers

We have used ClickOnce here for most of 3, possibly 4 years, and have never experienced any serious problems.

The only minor problem we encountered was signing the code in Visual Studio 2005 version of ClickOnce - the application will not be able to work if the CS certificate has been changed and we will need to remove / reinstall it. But this was fixed with Visual Studio 2008, and I did not notice any other problems.

ClickOnce is quite limited compared to MSI installers or other installers - you do not have an incredibly reliable system of actions before installation and post-installation, registry keys, registration at startup, etc., but this can be expected since ClickOnce deployment is designed to work in an environment with low privileges.

+3
source

First, deployed ClickOnce applications must be installed for each user on this workstation. Unable to install for all users through ClickOnce. This is because deployed ClickOnce applications are installed in the user profile folder, and not in the Program Files folder.

+7
source

There are no serious issues with ClickOnce that you need to worry about; this is really good. However, you will encounter a number of problems to make it work smoothly for multiple clients.

By "client" I assume that you mean "client"? And each client has n users who will each install your application?

You and MAGE should be friends. What for? Ideally, you want to create one published assembly (which passed all the tests on your assembly machine and passed QA), from this assembly you want to create a separate deployment for each client. This requires at least changing the values โ€‹โ€‹of InstallUrl and UpdateUrl MsBuild, because this is a different web directory for each client.

Once you make these changes, ClickOnce will no longer install the application because one or more files have been changed. At this point, you can use MAGE to regenerate the application manifest (e.g. myApp.exe.manifest) and THEN the deployment manifest (e.g. myApp.application). One of the problems I ran into was that you need to change the Application Files directory to ApplicationFiles.

We do just that, take one published assembly, then create dozens of โ€œdeploymentsโ€ of this assembly for individual sites, each of which has different configuration information, such as web service URLs.

It takes quite a lot of time to make it work properly, and then more time to automate it ... if I said what needs to be done, this will guarantee automation of the process with batch files or the line app command ... does not values โ€‹โ€‹HOW do you automate it, just make sure that it is.

Good luck

+2
source

I think it can drive you crazy in your model by tracking down a possible couple of dozen versions. ClickOnce will not be your problem.

+1
source

We have thousands of customers worldwide and have been using ClickOnce for 2-1 / 2 years with great success. The only problems we see are firewalls and antivirus programs, and even this is quite rare.

+1
source

Source: https://habr.com/ru/post/1308820/


All Articles