Bug 37689 - [plan item] Allow uninstalling features
Summary: [plan item] Allow uninstalling features
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: 3.0 M3   Edit
Assignee: Dorian Birsan CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
: 36662 (view as bug list)
Depends on: 37686
Blocks:
  Show dependency tree
 
Reported: 2003-05-15 11:14 EDT by Jim des Rivieres CLA
Modified: 2003-08-28 15:55 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim des Rivieres CLA 2003-05-15 11:14:50 EDT
Allow uninstalling features. The update manager can disable features and plug-
ins, but this is done without deleting their files. The update manager should 
keep track of the features and plug-ins that it installs, and fully support 
uninstalling them. [Platform Update] [Theme: Rich client platform]
Comment 1 Christophe Elek CLA 2003-05-17 18:34:29 EDT
There is already some code that logs the install (which plugins are instlled). I
do not believe we log up to the file.

There is a *2 phase commit* system where plugin.xml and feature.xml are
*installed* when the whole feature is installed

Uninstall is present but disable, but needs to be improved as we may uninstall a
feature in a shared site.
Comment 2 Dorian Birsan CLA 2003-06-10 15:42:38 EDT
*** Bug 36662 has been marked as a duplicate of this bug. ***
Comment 3 Dorian Birsan CLA 2003-08-25 20:51:38 EDT
The external sites added via the links mechanism can be tagged as "read-only", 
which means they are not updatable (no installs or uninstalls can happen in 
those sites).

Configuration states has been moved outside the workspace, so theoretically 
one should be able to install/uninstall features at will, provided that 
installers have configured the links accordingly (updateable or non-
updateable).

Also, inside the .config directory there is a file named "registry" that keeps 
track of which plugins and features have been installed by the update manager. 
Only those plugins and feature can be uninstalled.

This is work in progress, so if you have any concerns/suggestions please add 
your comments here.
Comment 4 Dorian Birsan CLA 2003-08-28 15:55:01 EDT
Uninstall support was released in the M3 build:
- in order to uninstall a feature, the feature must first be unconfigured 
(disabled)
- to see disabled features, turn off the filter in the configuration view
(Help->Software Updates->Manage Configuration and toggle the third icon on the 
toolbar)
- after disabling a feature, you may choose not to restart the workbench, 
then  uninstall the feature, and then press OK to restart
- only features (and their plugins) installed by the update manager can be 
uninstalled. In the M3 build, the uninstall action is enabled for all the 
disabled features, but nothing get removed from the disk. The latest build 
should fix this, so the uninstall action is disabled on natively installed 
features.
- as mentioned before, if you want to use linked extensions to other eclipse 
sites (such as other eclipse installations), then you should define the link 
as "read-only" by prepending "r " in the path. Here is what the link file 
would look like:

path=r d:/other/eclipse/product

Use uninstalling carefully, as the features and plugins are completely removed 
from the file system, so you cannot revert to previous configurations that 
depend on the uninstalled features/plugins.