View Full Version : How to make a Feature "Required" ?

08-09-2005, 01:15 PM
hello everybody

in an InstallScript project, (no MSI at all)
How to make a Feature "Required" so that the end user cannot deselect it.

ps :
- i dont want to hide this feature.
- i dont want to let him deselect it and then overide his selection.
- i just want to make it as if it was ReadOnly and (gray).


08-10-2005, 11:13 AM
This can be a bit tricky. What you need to do is to create a secondary Feature and make it invisible. Then make the feature that you want to be un-selectable require the invisible feature which is selected by default. This will make your main feature be visible but un-selectable.

Hope that helps,

08-10-2005, 12:43 PM
thanks a lot my friend.

this answer it a lot far better then any other one given in this forum. :)

02-27-2009, 01:16 PM
I have tried it on Installscript and Installscript MSI projects, but it didn't quite work. The feature can still be deselected. Is there anything missing from the tips?
Thanks in advance.

10-01-2009, 10:55 AM
I tried it but when the sub features are not visible, the feature isn't grey...
(I'm on IS 2010)