| Silent Update the next time the application is Restarted [message #1065285]
||Tue, 25 June 2013 04:50
| David Deland
Registered: June 2013
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);
(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
Powered by FUDForum
. Page generated in 0.01417 seconds