WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Allow Next on License screen and detect?
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
BSOD2600
Member

Registered: Jan 2006
From: USA

Exclamation Allow Next on License screen and detect?

My installer needs to display 2 EULA's. 1) for the open source software it includes and 2) EULA for the company. I'm currently doing this all just fine. Now the installer needs to change.

If the user agrees to the open source software, proceed; if they disagree, quit. That's done and easy with the MUI_PAGE_LICENSE already. The problem I'm running into is for the 2nd EULA screen. If the user agrees to the companys EULA, proceed; if the user disagrees then only install the open source software.

1) How do I get the MUI_PAGE_LICENSE page to allow clicking Next/I agree (either using checkbox/radio buttons) regardless? I found this old post but the question really wasn't addressed.

2) How can I detect what button the user clicked from a previous dialog? Probably something with GetDlgItem right?

Quick Link | Report this post to a moderator | IP: Logged

BSOD2600 is offline Old Post 11-05-2009 08:51 PM
Click Here to See the Profile for BSOD2600 Click here to Send BSOD2600 a Private Message Find more posts by BSOD2600 Add BSOD2600 to your buddy list Edit/Delete Message Reply w/Quote
Anders
Major Dude

Registered: Jun 2002
From: N/A

code:
!include nsdialogs.nsh function licshow GetDlgItem $0 $hwndparent 1 EnableWindow $0 1 functionend function licleave FindWindow $0 "#32770" "" $HWNDPARENT GetDlgItem $0 $0 0x40A ${NSD_GetState} $0 $0 ${If} $0 <> 0 messagebox mb_ok Checked #TODO store state in some global ${Else} messagebox mb_ok NotChecked #TODO store state in some global ${EndIf} functionend !define MUI_PAGE_CUSTOMFUNCTION_SHOW licshow !define MUI_PAGE_CUSTOMFUNCTION_LEAVE licleave !define MUI_LICENSEPAGE_CHECKBOX !insertmacro MUI_PAGE_LICENSE "${__FILE__}"

__________________
IntOp $PostCount $PostCount + 1

Quick Link | Report this post to a moderator | IP: Logged

Anders is offline Old Post 11-05-2009 09:54 PM
Click Here to See the Profile for Anders Click here to Send Anders a Private Message Visit Anders's homepage! Find more posts by Anders Add Anders to your buddy list Edit/Delete Message Reply w/Quote
BSOD2600
Member

Registered: Jan 2006
From: USA

Anders: You rock! Exactly what I was looking for. Plus learned something new with the MUI_PAGE_CUSTOMFUNCTION use.

Quick Link | Report this post to a moderator | IP: Logged

BSOD2600 is offline Old Post 11-06-2009 07:12 AM
Click Here to See the Profile for BSOD2600 Click here to Send BSOD2600 a Private Message Find more posts by BSOD2600 Add BSOD2600 to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 04:39 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Allow Next on License screen and detect?
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON