[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] replacing default p2 uninstall action

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?


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

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: 


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?