"Wyatt Says..." is a collection of articles by Wyatt O'Day talking about wyDay products and the things we've learned along the way.
It has to be our most frequently asked question: “When will you guys add automatic updating ability to wyUpdate?”
soon Now!. As of v2.5 wyBuild ships with a free AutomaticUpdater control.
First I need to clarify some confusion. There’s a difference between automatic checking and automatic updating. It’s an important difference.
Automatic checking simply checks for a new version and tells your application if there’s an update. You can do anything you want with that information. Usually, people just opt to distract their users and launch the updater.
Automatic updating is the full shebang. There isn’t an off-the-shelf updater in existence that offers true automatic updating. For an updater to be truly automatic it has to handle everything from checking for updates (the easy part), to quickly and quietly installing the updates (the hard part).
Most off-the-shelf updaters tout their ability to do automatic updates. It’s a lie. I’ve personally tried all of our competitors’ products and the best that’s offered is automatic checking with the option of launching the updater to distract the user and, oh yeah, update their product.
Don’t believe me – try them yourself. A quick google search will give you a list of 20 of our competitors. I won’t bad mouth them by name.
As of wyUpdate 2.1 neither automatic checking nor automatic updating is included. The reason we don’t include even the bare minimum (automatic checking) is that it introduces a huge usability problem that you, the programmer, have to solve.
Namely, what do you do once the automatic checking reports back that there’s a new version? The easy answer – the wrong answer – is you show your users wyUpdate and force them to update immediately.
This is wrong for 2 important reasons.
If you bug your users enough they’ll start looking at your competitors products longingly. Don’t push them to the edge.
That’s not completely true. Your users don’t care about updates, they just want a better experience. They care about bug fixes. They care about the new great feature. But they don’t want to play janitor and keep their programs in tip-top condition. It’s just too much of a hassle.
Frankly, you’ll be lucky if 1% of your paying users actively search your website for the latest installer. It’s your job to deliver it directly to your users.
Or, to put it another way, if you run a supermarket your customers will expect clean floors and fresh food on the shelves. They don’t want to clean the floors or stock the shelves. They don’t even want to see someone doing it. But they expect it done. If it’s not done, they’ll only think about it in retrospect:
“Hey, remember that grimy store with moldy bread?”
“Yeah, thank God we finally have a Wal-Mart!”
How do you keep your users up-to-date without bothering them? That’s our problem.
In reality it’s several hundred mini-problems: how do you install an update quickly and quietly when the user’s in a rush?, what happens if the user shuts down the computer mid update?, what if the user isn’t an administrator?, what about Vista UAC?, should the updater be run as a service or a process?, how often should the updater discreetly check for updates?, what happens if the user manually checks for updates when the automatic updating is currently in progress?, what if the files are read-only?, etc, etc, etc.
We’ve solved these mini-problems in wyUpdate 2.5. We’re currently integrating and testing our solution for the thousands of edge cases.
Besides all of the behind-the-scene changes we’re making to wyUpdate, we’re also creating a new open-source component that you can include with your .NET application. It will handle all of the complexity that goes into integrating auto-update directly into your program.
Here are a few screenshots to show what we have in store:
You can watch our progress as we add automatic updating ability to wyUpdate by checking out the sources from our subversion repository:
svn checkout http://wyupdate.googlecode.com/svn/trunk/ wyupdate-read-only
Or you can wait until it’s finished and read our full tutorial and download the full source zip file. The tutorial will be extra technical and will feature loads of C# code.
Subscribe to the 'Wyatt Says...' RSS Feed and keep up to date on on my articles on updaters, usability, open source C# components, and software licensing.