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.
Photo

SdAskOptions - component list appears twice


3 replies to this topic

mstembri

mstembri
  • Members
  • 7 posts

Posted 25 August 2003 - 22:37

I have a minor problem with an install script. In most cases the component list used on SdAskOptions appears normally (two choices), however I've been able to make 4 choices appear just by going back and forth in the setup script. The two 'new' choices are really just an alternate set based on a variable.

Ie, if var=1, display choices A and B.. if var=2 display choices C and D. The glitch is that A, B, C, and D appear after going back and changing a couple options in setup.

Is there a way to reset the component list prior to building it with ComponentAddItem each time?

Much thanks,

Michael

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 August 2003 - 13:50

No. You would have to create a new component list. Alternatively you could set the unwanted entries to invisible.

mstembri

mstembri
  • Members
  • 7 posts

Posted 26 August 2003 - 14:00

How do I set script-generated components (A, B, C, D above) to invisible?

mstembri

mstembri
  • Members
  • 7 posts

Posted 26 August 2003 - 14:10

Nevermind I found your post in Usenet from 1998: USENET: installshield.is5.file-transfer :: Feb 10, 1998

ComponentSelectItem(MEDIA, szComponent, FALSE); // unselct component, so it dowsn't get installed
ComponentSetData (MEDIA, szComponent, COMPONENT_FIELD_VISIBLE, FALSE,""); //hide it

This should help.