[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [p2-dev] combined UninstallAndInstallOperation
- From: Pascal Rapicault <pascal@xxxxxxxxxxxx>
- Date: Thu, 10 Nov 2011 20:39:29 -0500
- Delivered-to: firstname.lastname@example.org
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).
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,
> p2-dev mailing list