Hi Johannes,

Instead of using a p2.inf file, can't you just edit the contents.xml that
is created? This is of course a somewhat ugly solution...

Otherwise you could have a look at
org.eclipse.equinox.p2.publisher.actions.RootFilesAction.generateRootFileIUs(String,
IPublisherResult). There the standard uninstall-instruction should be
overwritten by your customized one.
( This is the "standard" instruction:
String unConfigurationData = "cleanupzip(source:@artifact,
target:${installFolder});"; //$NON-NLS-1$
  touchpointData.put("uninstall", unConfigurationData); //$NON-NLS-1$
processTouchpointAdvice(cu, touchpointData, info, configSpec); )

Unfortunately I don't know how to debug this, as I always start the
generation process from "Export...". Perhaps someone has a hint on how to
do that?

Regards
Matthias




On Sat, 17 Mar 2012 at 22:52:52 +0100, Johannes Michler wrote:
Hi,

We're currently trying to update the jre bundled with our rcp app using p2.
I've documented my progress so far in the corresponding bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=300812#c29

My current problem is I am unable to override the
root.win32.win32.x86.folder-instruction in my build.properties using
instructions.uninstall=myUninstallAction in my p2.inf.


Any ideas?

Regards
Johannes
_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev

Reply via email to