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

selection tree in custom setup dialog


4 replies to this topic

hsong3

hsong3
  • Members
  • 89 posts

Posted 19 August 2003 - 16:58

hello

How do i know that the component is selected in selection tree?
I think it returns some value but i can not find it's location in Direct Editor.

(if the component's name is A then)
I have been used comparison like &A >=3. but it looks like this does not work for subfeatures.


I am using basic so i can not use featuregetdata function.

thank you

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 19 August 2003 - 18:48

Are you talking about components or features here? (The treeview only displays features, not components)

hsong3

hsong3
  • Members
  • 89 posts

Posted 19 August 2003 - 20:20

hello Stefan

i meant the features. I am sorry for the confusion.

When user selects certain feature to install, (modify), it should return a value to indicate that the feature is selected to be installed.

where can i reteive this value??

thank you

hsong3

hsong3
  • Members
  • 89 posts

Posted 20 August 2003 - 01:34

I found out that if i use MsiGetFeatureState, i could retrieve feature's state. such as,

(this are the 4th parameter value)
-1 no action
1 advertised
2 absent
3 local
4 source.

---------------------------------------------

I have another question related to this custom setup and selection tree.

User selects custom setup and disable most of features. Then he moves back to previous dialog and chooses typical.
I want this user to have default features instead of selected features in his previous action.

do i need to use script to control this?? or is there a built-in function for this situation??

thank you

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 21 August 2003 - 11:37

You can use AddLocal and Remove control events to change the selection.