Old 3rd March 2009, 06:48   #1
marcel-slip
Junior Member
 
Join Date: Jun 2007
Location: Poland
Posts: 16
Question [question] actions for batton

Hello,

I have a question.
How to detect on your own page (IO) pressing Next, Cancel, Back?
I would like to assign some actions for them.
I have this function:

Quote:
Function sprawdzanie
!insertmacro INSTALLOPTIONS_DISPLAY "some.ini"
!insertmacro INSTALLOPTIONS_READ $R9 "some.ini" "Field 1" "State"
WriteRegStr HKLM "Software\Tclanydy\sygypy" "SerialNumber" $R9

System::Call '$TEMP\eInsuect\test.dll::test() i() .r3'
${If} $3 == '0'
MessageBox MB_OK "The serial number is invalid"
GoTo Again
${ElseIf} $3 == '1'
Abort
${EndIf}

FunctionEnd


The function works correctly. But
When I press Cancel again to verify the key, as is the press on the Back. To go further I need to provide a valid key; /

Last edited by marcel-slip; 3rd March 2009 at 08:06.
marcel-slip is offline   Reply With Quote
Old 3rd March 2009, 12:50   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Better take a look at the included example testnotify.nsi and even better upgrade to nsDialogs.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump