Archive: back to previous page


back to previous page
I'm trying to make some sort of password input page.
I created 2 inputs via NSdialogs and wanna check if both entered passwords match and are not empty.
If this isn't the case, i'd like to go back to this page.

The checks are done in the PageLeave function.
How can i get back to the password page in the forementioned cases?


...
Page custom PW FinishPW
...

Function PW
nsDialogs::Create 1018
Pop $Dialog2
${If} $Dialog2 == error
Abort
${EndIf}

${NSD_CreateLabel} 0 0 100% 5% "Enter password"
Pop $Label2
${NSD_CreatePassword} 3% 10% 90% 10% ""
Pop $Text2
${NSD_CreateLabel} 0 25% 100% 5% "Reenter password"
Pop $Label3
${NSD_CreatePassword} 3% 35% 90% 10% ""
Pop $Text3
nsDialogs::Show

FunctionEnd

Function FinishPW
${NSD_GetText} $Text2 $R0
${NSD_GetText} $Text3 $R1
strcmp $R0 "" empty
strcmp $R0 $R1 equal notequal
notequal:
MessageBox MB_OK|MB_ICONINFORMATION "Passwords don't match."
; now i'd like to return to the password page


empty:
MessageBox MB_OK|MB_ICONINFORMATION "Please enter password."
; here too

equal:
FunctionEnd

Don't bother... figured it out now...
just call Abort in the leave function...
dammit