Uninstalling features in p2 does not uninstall plugins [message #721603] |
Fri, 02 September 2011 08:42 |
Eclipse User |
|
|
|
Originally posted by:
We have an RCP product with some standard functionality which gets
always installed (All I'm describing here happens under Windows 7
systems). After this, we use the p2 commands to optionally install an
additional feature, e.g. like so:
app.exe -noSplash -application org.eclipse.equinox.p2.director
-installIU somefeature.feature.group -repository
file://C:\Users\BlaBlub\something
where app.exe is the name of the RCP program and somefeature is one
feature that becomes installed from the repository described by
file://C:\Users\BlaBlub\something.
This seems to work as intended, i.e. the feature *and* the referenced
plugins become installed in the p2 repo.
Now we want to allow the user to uninstall this optional feature. We do
so via the command:
app.exe -noSplash -application org.eclipse.equinox.p2.director
-uninstallIU somefeature.feature.group
This gives a 0 return (success) and we notice that the *feature* is
physically removed from the p2 repo. But the referenced *plugins* are
still contained in the p2 repo and they are still active in the RCP
product.
How can we ensure that both the feature *and* its *plugins* are
successfully removed?
Thanks & Greetings from Bremen,
- Daniel Krügler
|
|
|
|
Re: Uninstalling features in p2 does not uninstall plugins [message #724483 is a reply to message #723384] |
Mon, 12 September 2011 12:38 |
Eclipse User |
|
|
|
Originally posted by:
On 2011-09-08 14:48, Brian de Alwis wrote:
> My guess: you need to pass "-profileProperties
> org.eclipse.update.install.features=true' to the p2 director.
Thanks Brian for your input. We tried to follow your advice, but
unfortunately this did not change anything: The feature is uninstalled,
but all the plugins that had been installed with this feature, still
remain in the repository and are not removed.
The problem is even worse: When starting the RCP application after the
uninstall it seems as if the previous plugins where at least not active
(E.g. the menu contributions are not provided). But once you open the
default Eclipse about dialog (integrated in our RCP app) and open the
table of the contained plugins, we can observe the following:
1) The table presents us the seemingly uninstalled plugins.
2) *After* leaving the About dialog and testing the menu contributions
again, those of the uninstalled plugins are again there.
I would like to emphasize that non of the *remaining* plugins is
dependent on the plugins installed by the feature, so we can exclude
that the repository kept them, because they are still required by some
other plugin.
Let me refine, that we provided your suggested pass of
"-profileProperties org.eclipse.update.install.features=true"
to both the invocation of -installIU and that of -uninstallIU.
Any further suggestions are highly appreciated.
Thanks & Greetings from Bremen,
Daniel Krügler
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06927 seconds