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

Components FileNeed Critical


1 reply to this topic

kari_hun

kari_hun
  • Members
  • 10 posts

Posted 07 July 2003 - 12:51

Hi,

I would like to use only two components. In event OnFirstUIBefore() there is the calling SdComponentTree() dialog box. The second component is "normal" component (selectable - deselectable). The default value for it is deselected.
The first one must be selected always. I want this component make unselectable (It may be gray).
I have set the FileNeed property to Critical in Component Property Sheet.
The help contains:
Write script code that retrieves the value of this property and displays a message accordingly.
Retrieve the value of this property by calling ComponentGetData with the third parameter set
to COMPONENT_FIELD_FILENEED.
I ask where to write this script? I would like this component to be selected and gray OR if enduser
deselects this component then to show an error message immediately.
Has anyone any idea?

Thanks,
kari_hun

kari_hun

kari_hun
  • Members
  • 10 posts

Posted 14 July 2003 - 08:31

Hi,

By this time I found a solution for this problem:

I created a dummy component which installs nothing.
I set this components Required Component property to my first component (which I want to be always selected).
I marked the dummy component Visible property to No.
And the result is Bingo.

kari_hun