Hi,
I want selective installation feature. I have two feature for user if user select the first feature the installer will install the files which are under feature 1. If user select the second feature the installer will install the files which are under feature 2.
Can anyone help me to achieve this functionality. Its urgent.
Thanks in advance
Aditya
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.

Install the files depends on the feature selection
Started by
aditya1685
, Sep 07 2011 11:02
4 replies to this topic
Posted 08 September 2011 - 08:21
Use AskOptions function to achieve your objective. Look into the Installshield Help for details.
Posted 08 September 2011 - 09:35
Hi MSIYER,
I don't want to open a new dialog. My scenario is like, I have one dialog in which I have one checkbox, if user select that check box, 2 radio button will enable. If user select either of the radio button, some selective feature will install. for eg: For Radio Button 1 ( A,B and C) feature will install and if he select radiobutton 2, (D,E and F) feature will install. I have also attached the screenshot of my dialog for your reference. Also, I am working on InstallShield 2011, Basic MSI project.
Thanks
Aditya
I don't want to open a new dialog. My scenario is like, I have one dialog in which I have one checkbox, if user select that check box, 2 radio button will enable. If user select either of the radio button, some selective feature will install. for eg: For Radio Button 1 ( A,B and C) feature will install and if he select radiobutton 2, (D,E and F) feature will install. I have also attached the screenshot of my dialog for your reference. Also, I am working on InstallShield 2011, Basic MSI project.
Thanks
Aditya
Posted 08 September 2011 - 13:11
You are probably using the RadioButton Group control.
In the event of user clicking on any of the radio buttons, a Property must be set. This property can be fetched later using MsiGetProperty. According to the value of the property, you can use MsiSetFeatureState function to toggle the feature selection.
In the event of user clicking on any of the radio buttons, a Property must be set. This property can be fetched later using MsiGetProperty. According to the value of the property, you can use MsiSetFeatureState function to toggle the feature selection.
Posted 17 September 2011 - 14:16
First of all, make sure the compoents with the files are conencted to the appropriate features (in Setup Design view).
Then, in dialog editor, go to the "Behaviour" node of the dialog, select the "Next" button. Add a new control event called AddLocal, eneter the feature name as Argument and use a condition based on the radio button property. This will select the feature. Add another control event called Remove for the same feature with the opposite condition to un-select it. Repeat for the other feature.
Then, in dialog editor, go to the "Behaviour" node of the dialog, select the "Next" button. Add a new control event called AddLocal, eneter the feature name as Argument and use a condition based on the radio button property. This will select the feature. Add another control event called Remove for the same feature with the opposite condition to un-select it. Repeat for the other feature.
Stefan Krüger
InstallSite.org twitter facebook