Archive: Problem when skipping MUI_PAGE_INSTFILES


Problem when skipping MUI_PAGE_INSTFILES
I got a display problem when I tried to skip the MUI_PAGE_INSTFILES, here is the page order:

Page custom MFSLicence
!define MUI_PAGE_CUSTOMFUNCTION_PRE userOptCheck
!define MUI_PAGE_CUSTOMFUNCTION_SHOW myGuiInit
!insertmacro MUI_PAGE_INSTFILES
Page custom SetHomePage SetHomePageCheck

if MUI_PAGE_INSTFILES didn't skipped, everything works fine. However if the PRE function Abort the page, a blank page will be displayed(see attachment) before SetHomePage getting displayed.

If I replace "Page custom SetHomePage SetHomePageCheck" with "!insertmacro MUI_PAGE_FINISH", the blank page will not appear.

I tried to comment out the SHOW function, didn't help.

Thanks for any tips and comment. :)


Had another post with almost the same case. I suggest the same solution as the another:

4.9.14.10 SetAutoClose
true|false
Overrides the default auto window-closing flag (specified for the installer using AutoCloseWindow, and false for the uninstaller). Specify 'true' to have the install window immediately disappear after the install has completed [or skiped], or 'false' to make it require a manual close.

Thanks for reply. I tried, didn't help. :(


Did you try the Abort command at INSTFILES Pre-Function and this instruction at the same time?


Yes I did. I tried both true and false option but didn't work.


Put SetAutoClose true before the Abort command. I tried this without Modern UI and worked.


OMG, you are my hero! Thanks a lot! :D


For whoever wonder where did I insert "SetAutoClose true", I insert the code inside .onInit function. :)


Then you can also use AutoCloseWindow.