Hello, this is my first thread - and in english...
I want to create two instances of custom pages with InstallOptions. The visualisation is okay and the first dialog works perfect with the implementation of the check routines in the "Leave"-function.
The second dialog also will get check routines, so I need the window handles for control ( GetDlgItem, FindWindow,... ).
But all trials doesn't work.
How do I get the state of a dialog item? For the first dialog I used the examples of NSIS like
GetDlgItem $2 $hwnd 1208
for the field 9
What ist the equivalent of 1208 in the second dialog?
Can anyone help me?
More instances of custom pages with InstallOptions
4 posts
Same as for first dialog. This is 1208 for the field 9.
With NSIS 2.11, you can use the following instead of GetDlgItem:
ReadINIStr $2 "C:\path\to\page.ini" "Field 9" "HWND"
Thank you all. Now it works. My error was to refer the wrong ini file (dialog 1). So, all trials couldn't work of course.