Old 24th April 2006, 06:44   #1
iNeed
Guest
 
Posts: n/a
Custom Pages

Hi,
i'm new to NSIS but i know how to make a basic modern GUI

Now i need to have custom pages.
I searched already for it, but i didn't understand the results well.

So i created a mockup of the custom page, and maybe you guys could help me with the code?



I need at least 8 of this custom pages, because i'm creating a sort of customization application where the user should be able to see a preview of each feauture.

And how do i let the installer 'know' that the user selected for example on custom page 1 image A (so the installer installs the correct things), also i need to have a components page so that page must also know what the user selected.

Thanks in advance,
Aero
  Reply With Quote
Old 24th April 2006, 07:46   #2
sissy
Junior Member
 
Join Date: Mar 2006
Posts: 15
from the installoptions readme.html

Quote:
Validate the input

If you want to validate the input on the page, for example, you want to check whether the user has filled in a textbox, use the leave function of the Page command and Abort when the validation has failed:
Function ValidateCustom

ReadINIStr $R0 "$PLUGINSDIR\test.ini" "Field 1" "State"
StrCmp $R0 "" 0 +3
MessageBox MB_ICONEXCLAMATION|MB_OK "Please enter your name."
Abort

FunctionEnd
you would be using some similar to this.
sissy is offline   Reply With Quote
Old 24th April 2006, 08:21   #3
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
I'd suggest to take a look at InstallOptions examples (they are bundled with NSIS release) and make your self familiar enough with custom pages structure, and the way that InstallOptions serves your installation.
In general each custom page must have a unique custom ini, a unique create function and (when needed) a unique leave (validate) function.
Images if any, have to be extracted in $PLUGINSDIR along with the custom ini. :-)

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine 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