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

How to set the check box state?


1 reply to this topic

dorelsturm

dorelsturm
  • Full Members
  • 23 posts

Posted 04 November 2005 - 10:26

Hi there,

In my InstallShield basic MSI project I have a dialog box that contains a check box. Connected to this check box I have defined a property "CheckProperty" and when Next button is pressed I set another property (public) like this:

[MYPROPERTY] 1 CheckProperty="1"
[MYPROPERTY] 0 CheckProperty<>"1"

After that I write MYPROPERTY in the registry as DWORD value.
Everything is, OK the value in the registry is 1 if the checkbox is checked or 0 otherwise.

Now my question is how do I initialize the checkbox when the dialog box is created to a specific value (in my case here based on that registry entry). All the time when the dialog box is created the check box is checked. I tried to set the CheckProperty property to 0 but no help. Can I change non public properties in script file using MsiSetProperty calls?

Any ideas?




Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 04 November 2005 - 12:54

Believe it or not, but if the property is defined with any value, the check box will be checked. You need to "un-define" the property to clear the check mark. That is the property must be deleted from the property table OR you need to assign it this mysterious value:

PROPERTY = {}

The above means: set PROPERTY to nothing (which will undefine it).
Regards
-Stein Åsmul