How to Automatically Update an Application Without Clickonce

How to automatically update an application without ClickOnce?

There are a lot of questions already about this, so I will refer you to those.

One thing you want to make sure to prevent the need for uninstallation, is that you use the same upgrade code on every release, but change the product code. These values are located in the Installshield project properties.

Some references:

  • Auto update .NET applications
  • Auto-update library for .NET?
  • Auto update for WinForms application
  • Suggest a method for auto-updating my C# program
  • Automatic update a Windows application

Can ClickOnce update automatically without asking the user?

Yes, ClickOnce applications update automatically when a new version is deployed onto the server. There are multiple ways to force this:

http://msdn.microsoft.com/en-us/library/s22azw1e.aspx

Also take a look how to have your own gui to inform users about updates:

http://msdn.microsoft.com/en-us/library/ms404263.aspx

Automatically update a C# Windows Forms application

I've used ClickOnce with dozens of applications and have never seen the username/password prompt. My process is:

  1. Declare the application is downloaded from "http://www.yourSite.com/yourApp/"
  2. Publish to folder "yourApp" in whatever location you want
  3. Drag and drop that whole folder into your WWW space on your server
  4. Email your users the link "http://www.yourSite.com/yourApp/yourApp.application"

For updates, just repeat this same process (except emailing users), and everything else takes care of itself. Be sure check the box in your application settings that tells it to check for updates of course.

How to add Software updater in wpf without click once and any other third party tool?

I would encourage you not to reinvent the wheel, and go with an existing, proven solution. While an auto-updating client seems simple at first, it can easily get difficult and into a mess if you're not covering various scenarios from the start.

ClickOnce

ClickOnce has good built-in support in Visual Studio, .NET and Windows, but you can also run into security and deployment issues with it, especially if you're using a self-signed certificate. While I haven't had any huge issues with it, a lot of people feel badly about ClickOnce (but I'm not aware of a list anyway, as what I've read isn't normally backed up with specific technical details).

I'd be of the opinion that ClickOnce would be acceptable for internal or small projects, but not manageable for a wider release, especially across more than one customer.

Squirrel

Squirrel is a free, open source install and update solution.

If you've tried Visual Studio Code, then you've already experienced what a Squirrel install and update is like.

It is a one-click install that deploys to the user's local app data folder, so no administrative permissions / UAC is required. You can let it work using its defaults, or use their API to have more control over the update process. And if you don't like certain parts of it, you can always fork it and alter it for your own needs.

Free solution for automatic updates with a .NET/C# app?

Should've updated this ages ago, oops!

But anyway, I've been using SparkleDotNET for a while now and it's been working absolutely wonderfully. There's a few little bugs here and there but I've already helped get some of them squashed, and hopefully I'll be able to get rid of the others too :)

For those who have the time to run the publish functionality of Visual Studio, and whose app is relatively self-contained, and doesn't require anything like launching on startup, I'd recommend ClickOnce for sure. MetroTwit uses it and it's got a nice in-app updater interface, so it seems flexible (at least to a certain degree). For launching on startup, it's possible to do so, but methods to do so are quite hacky and don't work that well.



Related Topics



Leave a reply



Submit