Skip to content
⌘ NSIS Forum Archive

Hide MUI_PAGE_INSTFILES Page

10 posts

robotmp3#edited

Hide MUI_PAGE_INSTFILES Page

Hi,

I have problem. I should hide instfiles page at installation. I try to do this with ShowWindow method. But nothing occurs 🙁. Is this generally possible? This is my code for it. Sorry for my English.

;!define MUI_PAGE_CUSTOMFUNCTION_PRE HideThisWindow
!define MUI_PAGE_CUSTOMFUNCTION_SHOW HideThisWindow
!insertmacro MUI_PAGE_INSTFILES

Function HideThisWindow
FindWindow $0 "#32770" "<application name>"
ShowWindow $0 ${SW_HIDE}
FunctionEnd
glory_man#
Instead of
 FindWindow $0 "#32770" "Integration Services Setup"
ShowWindow $0 ${SW_HIDE}
use abort instruction in the Pre-function.
robotmp3#
use abort instruction in the Pre-function.
So OK for other pages, but for this page not. By abort installation doesn't occur. I simply jump over it.
glory_man#
Try to usefollowing code:

!define MUI_PAGE_CUSTOMFUNCTION_PRE "HideInst"
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE "InstToFront"
!insertmacro MUI_PAGE_INSTFILES
...
Function HideInst
HideWindow
FunctionEnd
Function InstToFront
BringToFront
FunctionEnd
...
glory_man#
Works fine for me.
After i click Install button at the dir-page installer hides (i.e. install page don't show) but installation continue. When all files copied installer show again.
Animaether#
Another method would be to not use active sections with an instfile page at all. Drop the 'File' commands into a function that you call (could be a page pre/show/post function) instead.
robotmp3#
What pages do you want to show?
I need pseudo silent mode, therefore either all pages or neither, depending on ini file.