WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Multiple License Pages
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
cpriest
Junior Member

Registered: Apr 2003
From:

Multiple License Pages

Hello, I'm trying to create an installation with multiple license pages, I can get the license page to show twice, but not with different license files.

Is there any way I can do this? I'm fairly new to this package, but it looks awsomely powerful..

Thanks,

-Clint

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

cpriest is offline Old Post 04-27-2003 03:29 AM
Click Here to See the Profile for cpriest Click here to Send cpriest a Private Message Click Here to Email cpriest Find more posts by cpriest Add cpriest to your buddy list Edit/Delete Message Reply w/Quote
Joel
Debian user
(Forum King)

Registered: Jan 2003
From: an Igloo

I don't know ....
[Old UI]
Try the order of pages:

code:
Page ... Page license Page ... Page ... Page license


With [Modern UI]
code:
!define MUI_CUSTOMPAGECOMMANDS ... !insertmacro MUI_PAGECOMMAND_WELCOME !insertmacro MUI_PAGECOMMAND_LICENSE !insertmacro MUI_PAGECOMMAND_COMPONENTS !insertmacro MUI_PAGECOMMAND_DIRECTORY !insertmacro MUI_PAGECOMMAND_INSTFILES !insertmacro MUI_PAGECOMMAND_LICENSE !insertmacro MUI_PAGECOMMAND_FINISH

__________________

* Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM
* Kubuntu 9.10 with kernel 2.6.31-14-generic.
* lighttpd, php5, perl, eruby, python.
* geany, HTML & CSS & JavaScript, mono, gtk+, QT4, wxWidgets, bash, openjdk.
* Next to use: Debian 6.0 or Ubuntu 10.04.

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

Joel is offline Old Post 04-27-2003 03:56 AM
Click Here to See the Profile for Joel Click here to Send Joel a Private Message Click Here to Email Joel Visit Joel's homepage! Find more posts by Joel Add Joel to your buddy list Edit/Delete Message Reply w/Quote
cpriest
Junior Member

Registered: Apr 2003
From:

How can I get the two license pages to show a different license file?

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

cpriest is offline Old Post 04-27-2003 05:39 AM
Click Here to See the Profile for cpriest Click here to Send cpriest a Private Message Click Here to Email cpriest Find more posts by cpriest Add cpriest to your buddy list Edit/Delete Message Reply w/Quote
Joel
Debian user
(Forum King)

Registered: Jan 2003
From: an Igloo

Didn't you want the same license file?
Oh... well
Now, that's impossible in the current CVS.
But there's a past post with a fixed UI that might help you:
http://forums.winamp.com/showthread...mp;pagenumber=2

__________________

* Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM
* Kubuntu 9.10 with kernel 2.6.31-14-generic.
* lighttpd, php5, perl, eruby, python.
* geany, HTML & CSS & JavaScript, mono, gtk+, QT4, wxWidgets, bash, openjdk.
* Next to use: Debian 6.0 or Ubuntu 10.04.

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

Joel is offline Old Post 04-27-2003 02:42 PM
Click Here to See the Profile for Joel Click here to Send Joel a Private Message Click Here to Email Joel Visit Joel's homepage! Find more posts by Joel Add Joel to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Jerusalem, Israel

It's not entirely impossible, just a bit hard. You can create two license Pages (in one of the ways Lobo Lunar mentioned) and then on the show function of one of them use SendMessage (hwnd) ${WM_SETTEXT} 0 "STR:Another license$\r$\nRead this...". You can't use RTFs with this, and the text size is limited to 1024 unless you've recompiled NSIS with a larger NSIS_MAX_STRLEN.

To find the HWND of the license box use GetDlgItem and FindWindow. For example:

PHP:

FindWindow
$0 "#32770" "" $HWNDPARENT
GetDlgItem
$0 1024



Replace 1024 with the license box control id and you'll get it's HWND.

WM_SETTEXT is defined in WinMessages.nsh (!include WinMessages.nsh).

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

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

kichik is offline Old Post 04-27-2003 04:32 PM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
cpriest
Junior Member

Registered: Apr 2003
From:

I needed it to deal with more than 1024 bytes of data, so I wrote a plugin to do it, and I've uploaded that plugin to the archive...

URL submitted by user.

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

cpriest is offline Old Post 04-27-2003 08:07 PM
Click Here to See the Profile for cpriest Click here to Send cpriest a Private Message Click Here to Email cpriest Find more posts by cpriest Add cpriest to your buddy list Edit/Delete Message Reply w/Quote
dkt44_56
Banned

Registered: Apr 2003
From:

Lame dude, Lame.

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

dkt44_56 is offline Old Post 04-27-2003 08:12 PM
Click Here to See the Profile for dkt44_56 Click here to Send dkt44_56 a Private Message Click Here to Email dkt44_56 Find more posts by dkt44_56 Add dkt44_56 to your buddy list Edit/Delete Message Reply w/Quote
Joel
Debian user
(Forum King)

Registered: Jan 2003
From: an Igloo

What's lame dkt44_56 ?

[edit]
Sounds good the plugin
Do you think will support old versions of Nsis
or just the current CVS and above.
[/edit]

[edit]
dkt44_56 was Banned because he/she was flaming at the Forums.
[/edit]

__________________

* Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM
* Kubuntu 9.10 with kernel 2.6.31-14-generic.
* lighttpd, php5, perl, eruby, python.
* geany, HTML & CSS & JavaScript, mono, gtk+, QT4, wxWidgets, bash, openjdk.
* Next to use: Debian 6.0 or Ubuntu 10.04.

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

Joel is offline Old Post 04-27-2003 08:17 PM
Click Here to See the Profile for Joel Click here to Send Joel a Private Message Click Here to Email Joel Visit Joel's homepage! Find more posts by Joel Add Joel to your buddy list Edit/Delete Message Reply w/Quote
cpriest
Junior Member

Registered: Apr 2003
From:

What are the major differences to make it backward compatible?

I've just been poking around to get it to work right, not being able to find much documentation on how to do this, and none using MFC.

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

cpriest is offline Old Post 04-27-2003 08:32 PM
Click Here to See the Profile for cpriest Click here to Send cpriest a Private Message Click Here to Email cpriest Find more posts by cpriest Add cpriest to your buddy list Edit/Delete Message Reply w/Quote
Joel
Debian user
(Forum King)

Registered: Jan 2003
From: an Igloo

Not for me dude.
For those users that are still using old versions like
Nsis v1.98.

__________________

* Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM
* Kubuntu 9.10 with kernel 2.6.31-14-generic.
* lighttpd, php5, perl, eruby, python.
* geany, HTML & CSS & JavaScript, mono, gtk+, QT4, wxWidgets, bash, openjdk.
* Next to use: Debian 6.0 or Ubuntu 10.04.

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

Joel is offline Old Post 04-27-2003 08:41 PM
Click Here to See the Profile for Joel Click here to Send Joel a Private Message Click Here to Email Joel Visit Joel's homepage! Find more posts by Joel Add Joel to your buddy list Edit/Delete Message Reply w/Quote
Joost Verburg
NSIS MUI Dev

Registered: Nov 2001
From:

NSIS 1.98 doesn't even have the page system or the easy plugin system.

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

Joost Verburg is offline Old Post 04-27-2003 09:23 PM
Click Here to See the Profile for Joost Verburg Click here to Send Joost Verburg a Private Message Find more posts by Joost Verburg Add Joost Verburg to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Jerusalem, Israel

As the paging system, especially the custom pages code is changing a lot there isn't any documentation for it yet. There aren't any GoBack(), GoPrev(), or GoCancel() functions because NSIS handles that, you just need to know to destroy your dialog and return the control to NSIS when the NSIS window gets WM_NOTIFY_OUTER_NEXT. StartMenu is a fairly simple example to that.

The differences between 1.98 and NSIS 2 pages system are quite numerous. I wouldn't waste my time porting it backwards.

As for your plug-in specifically, it's always good to see another plug-in
Too bad it uses MFC though... You'll need to include MFC distribution files and install them if needed just to run the installer.

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

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

kichik is offline Old Post 04-27-2003 10:31 PM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 09: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 > Multiple License Pages
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