Custom installer: multiple app. installation [message #561509] |
Mon, 05 July 2010 15:41 |
David ALEXANDRE Messages: 7 Registered: September 2009 |
Junior Member |
|
|
Hi, I did customize the p2 installer to install two (or more) rcp application together with a common p2 agent. Here is the structure in the filsystem:
Apps/
App A/
App B/
common/
p2/
plugins/
artifacts.xml
With p2/galileo I managed to acheive this after a few tweaks. Now with p2/helios everything is still working except for one thing:
Each application is able tu update itself through the common agent. The problems arise when I use:
Quote:
> AbstractRepositoryManager.getKnownRepositories()
to retreive update sites (which were used during installation).
After tracing it appears that while during initial installation current profile (SimpleProfileRegistery.self) is null (normal as bootstrap installer as not been installed). As current profile is null, RepositoryManagers preferences are saved for null profile, collocated with the profileRegistery folder. Then when each app is started it looks for those props in its profileDir/.data/.settings but there is no prefs there as it was saved for the null (SimpleProfileRegistery.self) profile.
Is there a way to resolve this problem or should I open a bug ? (Hope I am being clear :p)
|
|
|
Powered by
FUDForum. Page generated in 0.03183 seconds