Old 1st February 2005, 20:12   #1
JedBartlett
Junior Member
 
Join Date: Jan 2005
Posts: 4
how to add a simple custom page

Okay, maybe I'm stupid.

I'm trying to add a simple "hello world" custom page.

I put this line in before the MUI_PAGE_DIRECTORY line:

Page custom customPage1

And I added this function:

Function customPage1 ;FunctionName defined with Page command
InstallOptions::dialog "select.ini"
FunctionEnd

select.ini is this file I found on a web site somewhere (see below).

I don't see my custom page -- what am I doing wrong?

[settings]
NumFields=5

[field 1]
Type=GroupBox
Text=Downloader information
Left=0
Top=0
Right=265
Bottom=130

[field 2]
Type=label
Text=Enter the URL to download:
Left=13
Top=27
Right=108
Bottom=39

[field 3]
Type=text
Left=13
Top=40
Right=254
Bottom=52

[field 4]
Type=label
Text=Select a folder to save the file:
Left=14
Top=69
Right=127
Bottom=78

[field 5]
Type=DirRequest
Left=14
Top=79
Right=255
Bottom=91
JedBartlett is offline   Reply With Quote
Old 1st February 2005, 20:37   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Where have you extracted the select.ini file to?
e.g.
File "/oname=$PLUGINSDIR\select.ini" "select.ini"

InstallOptions::dialog requires the full path to an ini file on the user's system, e.g. "$PLUGINSDIR\select.ini"

-Stu
Afrow UK 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