I´ve started working with NSIS yesterday and I now have a problem. I hope you can help me. I think it´s just a little problem for you.
Okay, I´ve created a custom page on which are two radiobuttons:
1 --> user start the program on cd and the setup should close (exec, abort?)
2 --> setup continues and install the program
LangString TEXT_IO_TITLE ${LANG_ENGLISH} "Install and Play Options Page "
LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "A subtitle"
Page custom OwnPage ValidateCustom
Function OwnPage ;FunctionName defined with Page command
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
# display page
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "test.ini"
# Get the user entered values.
!insertmacro MUI_INSTALLOPTIONS_READ $Play "test.ini" "Field 4" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $Install "fridolin.ini" "Field 5" "State"
FunctionEnd
Function ValidateCustom
ReadINIStr $Play "test.ini" "Field 4" "State"
ReadINIStr $Play "test.ini" "Field 5" "State"
FunctionEnd Now I don´t know how I can check which one is checked. Is it ok to do this with ReadINIStr? And how can I now define what happens.Thank you so much. Kadijsha