PDA

View Full Version : Custom page


SteMMo
27th April 2009, 08:26
Hi all,
i'm trying to add a custom page to enter a verification code.
I added the custom page as:


# 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 !!

SteMMo
27th April 2009, 09:44
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
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "..\bitmaps\logo150x49.bmp"



- 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.


- 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
27th April 2009, 11:07
Solved !

I substituted with the !insertmacro INSTALLOPTIONS* calls.:D

Afrow UK
27th April 2009, 13:14
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