Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 227678 - [installer] Installer should mark the SDK IU as locked
Summary: [installer] Installer should mark the SDK IU as locked
Status: CLOSED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-17 19:08 EDT by Susan McCourt CLA
Modified: 2011-06-10 16:35 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2008-04-17 19:08:11 EDT
Per bug #215560, we can now mark an IU as locked from an uninstall and/or update perspective.

The installer should probably mark all the root IU's as locked for uninstall, so that the user can't uninstall the SDK root.  Something like:

profile.setInstallableUnitProfileProperty(iu, IInstallableUnit.PROP_PROFILE_LOCKED_IU, Integer.toString(IInstallableUnit.LOCK_UNINSTALL));
Comment 1 Susan McCourt CLA 2008-04-24 17:57:20 EDT
the snippet should read:
profile.setInstallableUnitProperty
(not profile.setInstallableUnitProfileProperty)