Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Making features Invisible- please help

2 replies to this topic


  • Full Members
  • 35 posts

Posted 07 April 2008 - 15:15

I really appreciate any help you could provide as i am very new to msi.

In my destination folder dialog box ( after clicking on next) , i am calling DoAction event with an argument to installscript function. This function sets a MSi property called "USERID" to value either MIKE or JOSEPH or MARK or GLEN

I have four different features called " MIKE , JOSEPH , MARK , GLEN. Depending upon the value of USERID i want to display one feature and hide other features.

For example : If USERID is set to "MIKE" , in custom setup dialog box, only feature "MIKE" should get displayed and other features should be invisible.

After reading earlier posts ,i found that :

I can't use feature condition builder as it evaluates the condition before costinitialize.

I tried using AddLocal & Remove events and it disable the other features in custom setup dialog box but installer can still enable as they are still visible.

Please let me know what should i do make it work as i really want other features to be invisible or disabled.

Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 08 April 2008 - 08:03

This can't be done exactly like you wish. Here are your options:
  • Call your custom action before CostInitialize (i.e. insert a dialog before CostInitialize)
  • Don't use the FeatureTree dialog. Instead create a dialog with check boxes per feature, which can esily be made invisible.
  • Remove CostFinalize from the sequence and call it from your dialog (this can be tricky)
  • Don't use MSIs built in user interface but create an external UI on your own (lots of work)


  • Full Members
  • 35 posts

Posted 08 April 2008 - 22:17

Thanks Stefan for your help and sorry for my direct email.

what i did is :

1. I set all the 4 features MIKE , JOSEPH , MARK , GLEN as invisible ,disallow advertise and required set be "no" in setup design.

2. I used AddLocal & Remove events in Destination folder box depending upon MSIpropery [USERID] set in installscript

3. In custom setup dialog box, i am just displaying a text line saying "

Features for [USERID] will get installed.

Please let me know if you see any issue here.