robotmp3
10th November 2005 13:44 UTC
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
10th November 2005 14:13 UTC
Instead of
FindWindow $0 "#32770" "Integration Services Setup"
ShowWindow $0 ${SW_HIDE}
use abort instruction in the Pre-function.
robotmp3
10th November 2005 14:35 UTC
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
10th November 2005 15:04 UTC
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
...
robotmp3
10th November 2005 15:19 UTC
No way unfortunately:(
glory_man
10th November 2005 16:43 UTC
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.
robotmp3
10th November 2005 16:54 UTC
I haven't pages before it
Animaether
10th November 2005 21:34 UTC
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.
Joost Verburg
10th November 2005 22:02 UTC
What pages do you want to show?
robotmp3
11th November 2005 08:20 UTC
What pages do you want to show?
I need pseudo silent mode, therefore either all pages or neither, depending on ini file.