Problems with CheckBox (MUI, InstallOptions)
Hi there,
I've written a script to install my program and it runs allf ine, but now I wanted to add a checkbox and it simply returns "0" ALWAYS when I check the state. Here's the code I use:
; Writes the path into the editfield
WriteINIStr "$PLUGINSDIR\update.ini" "Field 3" "State" "$0"
; Open the Dialog
!insertmacro MUI_INSTALLOPTIONS_DISPLAY_RETURN "update.ini"
; Get the Variable from stack
Pop $1
; Get the value of the checkbox
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "update.ini" "Field 7" "State"
MessageBox MB_OK "it is $R0"
Quit
As I said, all I see is "it is 0", no matter if it's checked or not. I actually checked the file by myself in the tempdirectory and as soon as I click on "Next" (in my case it's labeled "Update") the value of "state" is changed to 0 in my update.ini. The code of the control I refer to in my update.ini:
[Field 4]
Type=Checkbox
Text=Eigene Dateien nicht überschreiben
Left=29
Right=222
Top=59
Bottom=68
State=1
What am I doing wrong?
Thanks & cu