I have requirement to develop E4 application which updates automatically when updates found, on launch of application. Currently I have exported feature in local folder. Have multiple version of feature. So application should check for latest version of feature and if available it should install on launch and restart.
I have gone through https://www.youtube.com/watch?v=mfNIt_b5mt4 and I wont see the code in repo. I am not able to get below bundles getBundle("org.eclipse.equinox.p2.exomplorysetup").start(Bundle.START_TRANSIENT); getBundle("org.eclipse.equinox.p2.simpleconfigurator.manipulator").start(Bundle.START_TRANSIENT);
Also I have gone through https://github.com/modular-mind/updatemanager.
I have used com.modumind.updatemanager.example.ui code but Profiles are not getting created and I see null.
private ProvisioningJob getInstallJob(ProvisioningSession provisioningSession) {
IStatus loadStatus = loadP2Repository(provisioningSession.getProvisioningAgent());
if (loadStatus != Status.OK_STATUS) {
dumpStatus(loadStatus);
return null;
}
IProfile profile = profileRegistry.getProfile(IProfileRegistry.SELF);
if (profile == null) {
this.log(
"No profile found for this installation, ending auto update process. Profiles are not available when running in Eclipse.");
return null;
}}
Pls help, if there are any sample applications pls share.