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: Checkbox problems
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
‎Oct 24, 2007
02:29 PM
Checkbox problems
This is going to sound really stupid. And I know I should know better. But I'm having a really strange problem. I have a checkbox in a dialog. The powers that be want it un-checked by default in the dialog. For the life of me, I can't manage to do this. Regardless of which combination of Property and Value settings I use, the only two outcomes I can achieve are a Checkbox that is checked by default, or one that doesn't work at all.
Can someone please point me in the right direction? What do I need to set to make this dumb thing un-checked by default?
Thanks!
Can someone please point me in the right direction? What do I need to set to make this dumb thing un-checked by default?
Thanks!
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 24, 2007
04:28 PM
Mark,
Installshield's default behavior is to create checkboxes in such a way that checkboxes are always checked by default. It does this because all properties that are used with a control are also placed in the property table with at least a starting value of 0. If this default value doesn't match up with the checked value Windows Installer will still regard the box as checked (though I’m not entirely certain as to why). Given this, you should be able to remove checkbox property from your property manager (or the table via direct edit) and you'll get a checkbox that is unchecked by default. Pretty non-obvious if you ask me. I tried this in InstallShield 11, and it worked for me. Your mileage might vary with InstallShield 2008, but that would seem to be a pretty significant bug if that was the case.
Installshield's default behavior is to create checkboxes in such a way that checkboxes are always checked by default. It does this because all properties that are used with a control are also placed in the property table with at least a starting value of 0. If this default value doesn't match up with the checked value Windows Installer will still regard the box as checked (though I’m not entirely certain as to why). Given this, you should be able to remove checkbox property from your property manager (or the table via direct edit) and you'll get a checkbox that is unchecked by default. Pretty non-obvious if you ask me. I tried this in InstallShield 11, and it worked for me. Your mileage might vary with InstallShield 2008, but that would seem to be a pretty significant bug if that was the case.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 25, 2007
05:46 AM
Please see also this newsletter tip (PDF warning): http://www.macrovision.com/webdocuments/PDF/check.pdf?link_id=productsTipsTricks.