Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st July 2010, 15:10   #1
Bansaw
Junior Member
 
Bansaw's Avatar
 
Join Date: Jul 2010
Posts: 32
Pressing CANCEL no longer quits the installer, but skips a page...?

Normally when I click the cancel button at the bottom right it says "are you sure you want to quit the installer?" YESNO.
In the past , choosing YES would mean a quit. Now it doesn't quit but skips to the next page on every page.

I added some code in a function that I think may be effecting it but I am not sure how to get it back functioning the way it should be.

Quote:
Function skippage
StrCpy $R9 1 ;Goto the next page
Call RelGotoPage
Abort
FunctionEnd

Function RelGotoPage
IntCmp $R9 0 0 Move Move
StrCmp $R9 "X" 0 Move
StrCpy $R9 "120"

Move:
SendMessage $HWNDPARENT "0x408" "$R9" ""
FunctionEnd
(I call this skippage func from other functions where I present the user with "are you sure you want to install this?" YESNO. So I do use this function. It just appears to have affected the cancel button's behaviour.)

Note: in a previous post I changed the NEXT button to skip, NOT the Cancel.
Bansaw is offline   Reply With Quote
Old 22nd July 2010, 12:57   #2
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 206
I made an example like install shield wizard. If you click cancel, it will ask that whether you want to quit. If yes clicked, the finish page will be show, and the text on the page will be "wizard was interrupted before installing". You may reference this code and modify it for your installer.

To change the feature of "Next" button, the method is similar as "Cancel" button. Processing in leave function of the page, using move page code before "Abort".
Attached Files
File Type: zip NSIS_with_IS_style.zip (27.2 KB, 100 views)
jiake 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