Skip to main content



      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 04:50
Eclipse UserFriend
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: Thu Jun 19 20:54:42 EDT 2025

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

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

Back to the top