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

Reply
Thread Tools Search this Thread Display Modes
Old 16th May 2011, 13:49   #1
TJK
Junior Member
 
Join Date: Jun 2006
Posts: 17
How to process when "Cancel" is clicked on NSIS 2.45 MUI License Agreement Page

Hello

I have an NSIS script that uses MUI and which displays the license agreement page with MUI_LICENSEPAGE_RADIOBUTTONS option.

How can I detect if a user clicks "Cancel" on the license agreement page and perform an action?

Thanks

Tim
TJK is offline   Reply With Quote
Old 16th May 2011, 16:07   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Probably not the only way, but set a variable to 1 on page entry and set to 0 on page leave. Then have your own MUI_CUSTOMFUNCTION_ABORT function and check the variable is 1 to determine the user is on the license page.

Edit: And you should update to 2.46.

Stu
Afrow UK is offline   Reply With Quote
Old 17th May 2011, 22:10   #3
TJK
Junior Member
 
Join Date: Jun 2006
Posts: 17
Thanks Stu, that did the trick.

I'll get around to 2.46 ASAP.

Regards

Tim
TJK is offline   Reply With Quote
Old 13th June 2011, 09:35   #4
TJK
Junior Member
 
Join Date: Jun 2006
Posts: 17
Acting on "Cancel" on "Select Language" dialog

Hello again

As a follow-up, is there anyway to catch a user clicking "Cancel" on the "Select Language" dialog displayed via !insertmacro MUI_LANGDLL_DISPLAY? The function defined via !define MUI_CUSTOMFUNCTION_ABORT doesn't seem to get called.

Thanks

Tim
TJK 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