This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Adding Checkbox
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2009
04:36 PM
Adding Checkbox
Newbie here....
We want a checkbox on initial dialog for install that allows us to log the installation steps.
We can easily drag the checkbox onto the form, but can't for the life of us figure out how to get addressability to the check value? In C# it's if(checkbox.Checked). How do we define or find the property that tells us if it's checked? Also do we have to set up an event handler to caputure the check changed event? Or will we have visibility to the value once the NEXT button is pressed on the install?
We want a checkbox on initial dialog for install that allows us to log the installation steps.
We can easily drag the checkbox onto the form, but can't for the life of us figure out how to get addressability to the check value? In C# it's if(checkbox.Checked). How do we define or find the property that tells us if it's checked? Also do we have to set up an event handler to caputure the check changed event? Or will we have visibility to the value once the NEXT button is pressed on the install?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2009
05:02 PM
xzz0195 wrote:
Newbie here....
We want a checkbox on initial dialog for install that allows us to log the installation steps.
We can easily drag the checkbox onto the form, but can't for the life of us figure out how to get addressability to the check value? In C# it's if(checkbox.Checked). How do we define or find the property that tells us if it's checked? Also do we have to set up an event handler to caputure the check changed event? Or will we have visibility to the value once the NEXT button is pressed on the install?
Whats your project type?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2009
05:19 PM
Install script msi project
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 23, 2009
10:23 AM
Bump? Anyone?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 23, 2009
11:20 AM
It takes a bit of coding to process a control added to an existing InstallScript dialog box, but please see the help topics under Creating Installations > Defining the End-User Interface > Working with Dialogs > Working with Dialogs in InstallScript..., especially "Adding Controls to the Dialog in an InstallScript or InstallScript MSI Project".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 23, 2009
05:31 PM
xzz0195 wrote:
Install script msi project
I have done it many many times, its very easy, you would need to do following
1. create a check box on your dialog box thru dialog box editor
2. Note down the control id (normally 4 digits).
3. create a .rul file wid the same name as your dialog box and store in MAIN directory under installshield where other .rul for dialog boxes are stored (or you could import it).
4. Open an existing .rul file e.g sdwelcome.rul.
5. Add a CONSTANT on top of this file say CHECKBOX1 xxxx (control id).
6. you need to have a variable declared to get the status of this check BOX say bCHKSTAT.
7. After DialogInsilize code add a case statement say CASE : Controlid (or some like this).
8. under case statement use GetControl (something like this) to get the current stattus of your checkbox and use SetControl to set the current status of check box in a var.
There is have it..
if I were you i would declare a GLOBAL varialble for setting the status so I could accesss the status in my main Setup.rul.
HTTH