|
|
#1 |
|
Junior Member
Join Date: Aug 2006
Posts: 6
|
Problem with MUI and checkbox notifying
I modifief the Modern UI InstallOptions.nsi example a bit.
Now Custom Page C has a dirrequest. Both the dirrequest and the label are dependent of the checkbox. This means they should become disabled/enabled when the checkbox is toggled. I tried to do this by adding the ValidatePageC Function. However this does not seem to work. Should I maybe refresh the custom page after writing the values to the ini file? Thanks already |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Aug 2006
Posts: 6
|
Here is the source
|
|
|
|
|
|
#3 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
See Contrib\InstallOptions\testnotify.nsi
-Stu |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Aug 2006
Posts: 6
|
The only difference between my script and the testnotity.nsi seems to be this piece of code which I now included;
ReadINIStr $4 "ioC.ini" "Field 1" "HWND" EnableWindow $4 $1 ReadINIStr $4 "ioC.ini" "Field 1" "HWND2" EnableWindow $4 $1 ReadINIStr $4 "ioC.ini" "Field 3" "HWND" EnableWindow $4 $1 ReadINIStr $4 "ioC.ini" "Field 3" "HWND2" EnableWindow $4 $1 But it still doesn't work, should I maybe do something special because I use MUI? New code is attached |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
I don't think you can use variables for the EnableWindow state parameter. Try moving them to under your ${If} structure with constants 0 and 1 instead of $1.
-Stu |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Aug 2006
Posts: 6
|
Tried this,
but still no results. |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jul 2006
Posts: 43
|
You should think something like this.
I think. FindWindow $R1 "#32770" "" $HWNDPARENT GetDlgItem $1 $R1 1208 EnableWindow $1 1 0 |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Aug 2006
Posts: 6
|
In the testnotity.nsi none of this is used,
I was wondering wether this has anything to do with the fact I use MUI and the testnotify.nsi doesn't. Does someone maybe notice any difference between testnotify.nsi and my example? |
|
|
|
|
|
#9 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
code: Problems: You weren't checking if NOTIFY was sent. You were using ReadINIStr instead of MUI_INSTALLOPTIONS_READ. -Stu |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Aug 2006
Posts: 6
|
This was the problem,
now it works. Thanks a lot! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|