Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 290824

Summary: Create simple update UI for RCP applications
Product: [Eclipse Project] Equinox Reporter: Patrick Paulin <patrick>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: apupier, casey.marshall, cdtdoug, chris.l.roberts, codex69, cpuidle, d_a_carver, greg.johnson, jin.phd, martin.dilger, mn, remy.suen, sletelie, slewis, to_sud, twindham, ugo.sangiorgi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Patrick Paulin CLA 2009-09-29 13:14:40 EDT
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9
Build Identifier: 

Many RCP applications need a simple update UI that searches for updates (on startup or on request) and then guides the user through a brief install process. I'm thinking of something like the Sparkle framework that is available for OS X apps.

http://sparkle.andymatuschak.org/

Perhaps this could be called Update Manager Lite? I know that it's possible for RCP developers to do some of this themselves, and good info has been produced, such as:

http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application

But I'm wondering if there would be value in offering a professional turn-key solution as an alternative to the regular Update Manager.



Reproducible: Always
Comment 1 Trace Windham CLA 2009-09-29 14:21:32 EDT
I've only worked on two RCP apps so far, and in both cases, a lite easy to use update manager would have made the job of delivering bug fixes much easier... I think.

Does any one else out there have experience delivering an RCP application to end users, and then have the developers and users wanting a little more ease of use from the update mechanisms?
Comment 2 Doug Schaefer CLA 2009-09-29 14:42:16 EDT
Everyone needs a simple update UI, not just RCP. The current UI isn't really suitable for anyone other than Eclipse experts.
Comment 3 Alex Blewitt CLA 2009-09-29 14:43:36 EDT
It's a nice idea, but sooner or later someone is going to mention P2 and it'll be doomed from there on.
Comment 4 Sudhakar Ramasamy CLA 2009-09-29 15:28:27 EDT
Can p2 provide an API to this simplified UI.
Comment 5 Greg Johnson CLA 2009-09-29 15:34:24 EDT
We have spent so much time and money trying to get something usable out of p2, but as I said at the democamp in Ottawa "p2 solves a thousand problems that we don't have".  We have finally got something workable, but it works in pretty mysterious ways, and I wouldn't wish my worst enemy to have to go thru' this pain.

Cross platform sparkle would be _ideal_.  +10.
Comment 6 Casey Marshall CLA 2009-09-29 15:38:12 EDT
This is a great idea and I'd really like to use this in my product!  I'd even bite the bullet and migrate my app & automated build to p2 to get it ;)
Comment 7 Chris Roberts CLA 2009-09-29 15:58:22 EDT
+1 for this.  Another nice option would be mandatory upgrades.  I have an RCP app deployed at an energy company with stringent requirements on versioning:  everyone has to run the same version of the app.  Currently I have to set a flag in the database indicating that there's a new version available, and then add logic to the RCP code preventing from the app from starting up unless there's a version match.  Being able to 1) use a light, easy-to-use update manager; and 2) flip a flag in the update manager's config to force updates; would both be very helpful to me.
Comment 8 Susan McCourt CLA 2009-09-29 16:15:28 EDT
Marking duplicate of 281226.
That bug got hijacked a bit at the end, but is still open for gathering requirements.  

It sounds like some folks would be happy with the headless update example being officially supported (ie, something you can tack onto the app without having to cut/paste the code).  That handles the "force scenario."

I agree that "Install New Software" can be overwhelming for users, but unless I'm misunderstanding requirements, this wouldn't be visible anyway in this simplified world.  What's wanted is the "P2Util" example + a simplified update wizard?  I think we have the pieces today and it's a matter of packaging it up right.

*** This bug has been marked as a duplicate of bug 281226 ***
Comment 9 Patrick Paulin CLA 2009-09-29 16:41:19 EDT
Thanks for pointing this out. I've commented on the original entry in the hope we can get a feature like this in the 3.6 release. I hope everyone interested in this will participate on the original entry.

Thanks!

--- Patrick