Online Patching Systems? 28
Master_Flash asks: "My company is preparing to distribute an online Windows application that will change over time (don't they all?). We been evaluating online patch systems. There are a number of commercial
applications out there. Some look good: RTPatch from PocketSoft, ASTA Binary Patcher, and Necromancer's FlashUpdate. Has anyone had a positive experience with these or other applications? One other idea we had was to use CVS as a patching system. While CVS isn't technically a binary patch it does a great job at checking on which files need to be updated. Most of the files we have are small and change infrequently, so CVS could work. Opinions and guidance are welcome."
Mod parent up! (Score:1)
(p.s. -- huh? does this make as much sense to everyone else, or am I just a nitwit?)
Not CVS! (Score:5, Insightful)
But, I digress. CVS was not designed for this. Rsync was designed almost percisely for something like this. It only transferres the parts of the file which have been modified, and compresses it as well.
But, why not simply use installshield or a similar tool like all other windows developers and just release periodic updates (which fits the model for windows software, which, IMO is quite diferent than the linux model (make many releases and many patches, while windows and MAC lean twoard making a few periodic releases, only patching where there is a severe flaw).
I'm not saying that one model is any better, i'm just saying that you need to keep consistancy.
Hmm... BITS? (Score:1, Offtopic)
I'm not erally sure if it's helpful or not as I haven't read much of it, but I'll post a quote out of it
Patchlink (Score:2)
No patch manager. But.... (Score:2)
First question is; What is an online Windows application? Is this a web application or a Windows application? Or is it some totally new type of application?
The second thing is that, while bugs are inevitable and patches will almost certainly be a fact of life, are you sure that this appication is really as ready and as thoroughly tested as it could be? Or is this another rush to market job tha
Re:No patch manager. But.... (Score:1)
An online windows application is a program that depends on an internet server to be useful, MMORPG, stock market, instant messenger kinda fall under this category
Re:No patch manager. But.... (Score:1)
MSI and MSP (Score:4, Insightful)
this is a subject (Score:3, Insightful)
Anyway another obvious way is for the server to push updates to the client when the admin approves it (like Domino/notes does).
Or have a central ressource and the client checks for updates (like Azureus).
Basically the best way is making it easy on bandwith, for admins and for users - the domino/notes approach does this (set up on server, approve, client gets notify to update - a few tricks are pushed to the client, client restarts and voila new version).
Anyway, the 'thing' you are building will dictate what kind of system you should use. Just don't expect a corporate admin to go around 200 machines on foot because you made some kind of lame updater which only works with admin privs, because they simply wont, instead they'll push for "the better version from company Y".
Heh... (Score:2, Funny)
RTPatch (Score:2)
It can be a little slow to generate the patches (I found that having 2 physical hard disks helped, 1 for input and 1 for output) but the resultant patch is quite optimized.
The tools are perhaps a little old feeling, with scripts and command line compilation tools, but on the whole the product works really well.
I call "Bullshit". (Score:3, Insightful)
Forgive me-- if the audience for your application is strictly home users, then disregard everything I say below. If, however, your audience includes corporate LAN's, listen the fuck up.
I shudder every time I hear an app. manufacturer talking about their "innovative" online patch delivery systems. Frequently, "innovative" online patch delivery systems cover up for shitty software QA.
I am a network administsrator. I have to keep PC's, servers, and the applications running therein working properly. I have a lab. I test patches in that lab. I make sure that things continue to work. I don't want you to patch your fucking app without going thru me.
It's a 'doze application. Package the application as an MSI. Expect that it will be deployed with IntelliMirror. Issue MSP's when you need to patch the application. Problem solved.
Re:I call "Bullshit". (Score:1)
Re:I call "Bullshit". (Score:2)
Also, don't be like Microsoft. If you're going to have updates, make sure that every machine that is
Roll Your Own! (Score:4, Informative)
I later used a variation on that scheme that involved a cron job on the server, checking regularly for new commits to the shared folder. It would then calculate windowed hashes of each file and the client update app would simply compare the server's hashes with its own (cached) hashes. This enabled me to minimize download times since it would only download the chunks that had been changed (in the case of large data heaps). It's not foolproof since I didn't do any insert/delete logic (add 1 byte to the beginning of the file and the rest is immediately invalidated)... but it was simple enough to justify the occasional forethought when releasing updates. It's like a castrated embedded version of rsync
Considering the hell I've been thorugh with RTPatch and its ever-flaky software, it would be well worth writing my own smart binary diff (with proper shuffling detection and compression). These things really aren't that complicated to implement and the advantage of rolling your own is that you can include extra logic tailored for your application (or for that particular client).
InstallShield (Score:2)
Re:InstallShield (Score:2, Informative)
Several Options (Score:2)
1. Marimba [marimba.com] Castanet (I know, I love to hate them, too) has a technology that provides auto-updates to files on a box, and can even be scripted to stop and restart the process. I have used this and while it is expensive, somewhat complex internally, and a bit slow, it does work, and is highly scalable to 10,000+ boxes quite easily.
2. Rsync (a very common open-source Samba project) [samba.org] will synchronize files across a network, sending only the file differences, handling file deletion if so requested, etc. Ver
port blocking (Score:3, Insightful)
It *has* to work over either port 80 or 443, or it is a non-viable option. Period.
I'd go with xdelta or rsync, compiled/configured for port 443, and a good web frontend.