robber98
2nd June 2004 00:57 UTC
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
2nd June 2004 02:47 UTC
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
2nd June 2004 02:52 UTC
Thanks for reply. I tried, didn't help. :(
deguix
2nd June 2004 03:09 UTC
Did you try the Abort command at INSTFILES Pre-Function and this instruction at the same time?
robber98
2nd June 2004 03:10 UTC
Yes I did. I tried both true and false option but didn't work.
deguix
2nd June 2004 03:31 UTC
Put SetAutoClose true before the Abort command. I tried this without Modern UI and worked.
robber98
2nd June 2004 03:35 UTC
OMG, you are my hero! Thanks a lot! :D
robber98
2nd June 2004 03:36 UTC
For whoever wonder where did I insert "SetAutoClose true", I insert the code inside .onInit function. :)
Joost Verburg
2nd June 2004 17:53 UTC
Then you can also use AutoCloseWindow.