Archive: Hide MUI_PAGE_INSTFILES Page


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


Instead of

 FindWindow $0 "#32770" "Integration Services Setup"
ShowWindow $0 ${SW_HIDE}

use abort instruction in the Pre-function.

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.

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
...

No way unfortunately:(


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.


I haven't pages before it


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.


What pages do you want to show?


What pages do you want to show?
I need pseudo silent mode, therefore either all pages or neither, depending on ini file.