Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Silent Update the next time the application is Restarted
icon5.gif  Silent Update the next time the application is Restarted [message #1065285] Tue, 25 June 2013 08:50
David Deland is currently offline David DelandFriend
Messages: 3
Registered: June 2013
Junior Member
Dear community,

My rcp application uses p2 API to enable headless installation of new application updates :
when the application starts, a job runs in the background to find and download new updates. When the job is done, users are notified that new updates were found and are going to be installed.

Roughly, I use the following code:
<<
UpdateOperation operation = new UpdateOperation(session);
IStatus status = operation.resolveModal(...);
ProvisioningJob job = operation.getProvisioningJob(null);
provisioningJob.runModal(...);
>>
(inspired by http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application#Headless Updating on Startup)

How could I delay the installation of downloaded artifacts so that it occurs only on the next application restart ?
I don't find any serialization API for ProvisioningJob or else ...

To sum up, I would like to have the following behavior:
1) check for updates in the background - OK, done
2) download new updates in the background - OK, done
3) install these downloaded new updates (repeat steps 1 and 2 again is not an option) when the application restart - KO: TO DO, but HOW ?

Thanks in advance for your help

Best regards
Previous Topic:Headless build fails, when building the product with 'p2.gathering=true'
Next Topic:Custom key/trust stores
Goto Forum:
  


Current Time: Tue Apr 23 09:34:12 GMT 2024

Powered by FUDForum. Page generated in 0.02720 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top