Archive: Conditional custom page


Conditional custom page
Hello ,

Is it possible to hide/unhide the custom page ? What I need is that if user checked ODBC setting,then I would want Database custom page to appear otherwise that custom page should be skipped ? Any possible way I could do this ?
Please help.

Thanks


In the function which creates the custom database page, add a test to see if ODBC was requested and if it was not then exit without displaying the custom page.

Here is a rough sketch:

Function CustomDatabasePage
; Check if ODBC box was ticked
ReadINIStr $R1 "$PLUGINSDIR\odbcpage.ini" "Field 3" "State"
StrCmp $R1 "0" no_database_page

; Display the custom database page
InstallOptions::dialog "$PLUGINSDIR\databasepage.ini"
Pop $R0

no_database_page:
FunctionEnd
If the ODBC box is not ticked, the custom database page will not appear. In this fragment, another custom page (odbcpage.ini) was used for the ODBC check box, but you could simply use a register to pass the "ODBC required/not required" value to the custom database page function.
Hope this helps.

Thank you much.
That really helped .


merahul