Archive: Finish page


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.

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

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

maybe attaching the hole script we can review it.


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.


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

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?


Take a look here for the answer:
http://forums.winamp.com/showthread....hreadid=134996