[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] combined UninstallAndInstallOperation

Hi Andrew,

What you are trying to do is not possible with the Operation API (operations can't be composed).
However achieving what you want is entirely possible using the planner API (e.g. ProfileChangeRequest). For example on how to use this API you can take a look at the computeProfileChangeRequest method in InstallOperation / UninstallOperation or in DirectorApplication#buildProvisioningRequest (in the director.app bundle).

HTH

PaScaL

On 2011-11-10, at 5:30 PM, Andrew Eisenberg wrote:

> Hi all,
> 
> I'd like to atomically uninstall some IUs and install other ones.  I
> see that there is an UninstallOperation as well as an
> InstallOperation.  Looking at their respective implementations, it
> looks like it should be possible to perform an
> UninstallAndInstallOperation that does both the uninstallation and the
> installation in the same job.  Is this indeed possible?  Has anyone
> tried this before?  Has there been any success?
> 
> Thanks for your help,
> Andrew
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev