Skip to content
⌘ NSIS Forum Archive

Problem when skipping MUI_PAGE_INSTFILES

9 posts

robber98#

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. 🙂
deguix#
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.
robber98#
For whoever wonder where did I insert "SetAutoClose true", I insert the code inside .onInit function. 🙂