I've trying to make installer to show custom page after file copying and do some actions before showing finish page.
like this
This works, but finish page having buttons "Back" and "Cancel" enabled.
!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
I understand that I miss something, but can't find what.
Please help me a bit.
Thanks,
Alex.