Install the files depends on the feature selection
Posted 07 September 2011 - 11:02
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
Posted 08 September 2011 - 08:21
Posted 08 September 2011 - 09:35
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.
Posted 08 September 2011 - 13:11
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
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.