kernel23
17th May 2003 16:14 UTC
Finish page
Hi all
I've trying to make installer to show custom page after file copying and do some actions before showing finish page.
like this
!define MUI_CUSTOMFUNCTION_FINISH_PRE CreateIcons
;--------------------------------
;Modern UI Configuration
;--------------------------------
!define MUI_CUSTOMPAGECOMMANDS
!define MUI_WELCOMEPAGE
!define MUI_LICENSEPAGE
!define MUI_COMPONENTSPAGE
!define MUI_COMPONENTSPAGE_SMALLDESC
!define MUI_DIRECTORYPAGE
!define MUI_FINISHPAGE
!define MUI_FINISHPAGE_RUN "$INSTDIR\EMPI.exe"
!define MUI_FINISHPAGE_NOREBOOTSUPPORT
!define MUI_ABORTWARNING
!define MUI_UNINSTALLER
!define MUI_UNCONFIRMPAGE
;--------------------------------
;Pages
;--------------------------------
!insertmacro MUI_PAGECOMMAND_WELCOME
!insertmacro MUI_PAGECOMMAND_LICENSE
!insertmacro MUI_PAGECOMMAND_COMPONENTS
!insertmacro MUI_PAGECOMMAND_DIRECTORY
!insertmacro MUI_PAGECOMMAND_INSTFILES
Page custom IconsPage
!insertmacro MUI_PAGECOMMAND_FINISH
This works, but finish page having buttons "Back" and "Cancel" enabled.
I understand that I miss something, but can't find what.
Please help me a bit.
Thanks,
Alex.
Afrow UK
17th May 2003 16:38 UTC
So your custom page goes in before the finish page?
You will need to write to the ioSpecial.ini file in your custom page function like so:
Function IconsPage
...other stuff here...
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "BackEnabled" "0"
FunctionEnd
The ioSpecial.ini file is MUI's InstallOptions file that it uses for its own pages (e.g. Welcome / Finish pages)
This should hopefully work.
-Stu
kernel23
17th May 2003 16:59 UTC
Yes, my custom page goes before finish page.
And I have written "Function IconsPage" already and my page works and shows fine.
My question is :
"Why Finish page which described as :
!define MUI_FINISHPAGE
!define MUI_FINISHPAGE_RUN "$INSTDIR\EMPI.exe"
!define MUI_FINISHPAGE_NOREBOOTSUPPORT
and shows after custom page with
...
Page custom IconsPage
!insertmacro MUI_PAGECOMMAND_FINISH
has
enabled "Back" and "Cancel" buttons???"
How could I fix this error? (Make them disabled).
Joel
17th May 2003 18:15 UTC
maybe attaching the hole script we can review it.
kernel23
17th May 2003 18:45 UTC
My script is very simple
I've modified standart example to make it work as mine.
I found that "Cancel" button is enable when
present "!define MUI_FINISHPAGE_RUN" - I think it's not correct.
But all questions stay.
Afrow UK
17th May 2003 19:09 UTC
Just put this in your IconPage Function.
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "BackEnabled" "0"
This should fix it.
The reason it enables the back button, is because you have a custom page befor eit.
Just ike if you put a custom page beforea Directory page, you would be allowed to go back.
The Finish page is actually a Custom InstallOptions page too, but because it comes after the InstFiles page as default, the back button is always greyed out.
The piece of code will tell InstallOptions to grey out the back button on the finish page no matter where the finish page is.
-Stu
kernel23
17th May 2003 19:23 UTC
Ok
I did not thank you for the back button. Works fine. Great thanks.
Only problem with "Cancel" button remains.
Is it possible to disable it too or it's a bug?
kichik
17th May 2003 19:41 UTC
Take a look here for the answer:
http://forums.winamp.com/showthread....hreadid=134996