Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 27th April 2009, 08:26   #1
SteMMo
Junior Member
 
Join Date: Apr 2009
Posts: 3
Send a message via AIM to SteMMo
Custom page

Hi all,
i'm trying to add a custom page to enter a verification code.
I added the custom page as:

Quote:
# Installer pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE Licenza.txt
Page custom constr_AskCode validate_AskCode "Codice" /ENABLECANCEL
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
My problems are:
- how can i change the icon on the upper-right corner of each page?
- when my page appairs, the upper side of the page (with the white background) does not change. How can i insert my text there?
- i'm not able to insert and read the inserted text.. i tryed with
ReadIniStr $0 askcode.ini "Field 2" "State"
after the 'InstallOptions::dialog $R0' call but $0 is alwayes empty.
- is it correct to check the typed text after the InstallOptions:dialog call?
- How can i stay in the same dialog if the code is not correct?

Thanks a lot !!

Last edited by SteMMo; 27th April 2009 at 09:32.
SteMMo is offline   Reply With Quote
Old 27th April 2009, 09:44   #2
SteMMo
Junior Member
 
Join Date: Apr 2009
Posts: 3
Send a message via AIM to SteMMo
Re: Custom page

Quote:
Originally posted by SteMMo
Hi all,
i'm trying to add a custom page to enter a verification code.
I added the custom page as:

...

My problems are:
- how can i change the icon on the upper-right corner of each page?
Done by
code:
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "..\bitmaps\logo150x49.bmp"



Quote:
- when my page appairs, the upper side of the page (with the white background) does not change. How can i insert my text there?
Done by LangStrings and !insertmacro MUI_HEADER_TEXT macro.

Quote:
- i'm not able to insert and read the inserted text.. i tryed with
ReadIniStr $0 askcode.ini "Field 2" "State"
after the 'InstallOptions::dialog $R0' call but $0 is alwayes empty.
- is it correct to check the typed text after the InstallOptions:dialog call?
- How can i stay in the same dialog if the code is not correct?
Yet open
SteMMo is offline   Reply With Quote
Old 27th April 2009, 11:07   #3
SteMMo
Junior Member
 
Join Date: Apr 2009
Posts: 3
Send a message via AIM to SteMMo
Talking

Solved !

I substituted with the !insertmacro INSTALLOPTIONS* calls.
SteMMo is offline   Reply With Quote
Old 27th April 2009, 13:14   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,216
Yes, when using the INSTALLOPTIONS macros you do not have to specify $PLUGINSDIR in the path, whereas with InstallOptions:: you do (unless $OUTDIR is $PLUGINSDIR).

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp 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