|
|
|
|
#1 |
|
Junior Member
Join Date: Feb 2005
Location: Italy
Posts: 42
|
hide all sections except some in silent mode
i'm confused on how to hide all sections except one (i.e. instfiles) while in silent mode. i don't want to exclude pages or make everything silent: i basically wish a normal script to always show instfiles progress wheter or not /S par was passed on cmdline; if no /S is passed, then script should execute as normal (with all sections/pages).
I'm quite sure this possibly be already covered in the forum : my apologies not finding it. i appreciate just an hint to correctly look for the right anwser to my need... thanks. |
|
|
|
|
|
#2 |
|
Member
|
Use the "IfSilent" statement to check by code if the installer runs in silent mode or not. If you know in which mode the installer currently runs you could react to do whatever you want including to show the installer.
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2005
Location: Italy
Posts: 42
|
thanks, but not valid outside sections...
thanks Mæster, however IfSilent is not valid outside sections. so i can't do:
IfSilent +4 ; ? visible only if not silent ? !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES ; ? always visible ? IfSilent +2 ; ? visible only if not silent ? !insertmacro MUI_PAGE_FINISH ; uninstall always visible... !insertmacro MUI_UNPAGE_WELCOME !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES !insertmacro MUI_UNPAGE_FINISH any other hint ? |
|
|
|
|
|
#4 |
|
Member
|
Re: thanks, but not valid outside sections...
If it was me trying to only show the installfiles page if started in silent mode, i would probably use the following trick to do that:
1. I would save the silent mode in a variable and then set the installmode to normal 2. Depending on the variable I would skip/show all pages except the installfiles page which should always be shown. Here is it written in code: code: Last edited by Mæster; 14th June 2005 at 19:17. |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Feb 2005
Location: Italy
Posts: 42
|
thanks
exactly what i need. thanks a lot.
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jul 2005
Posts: 2
|
this script is excelente!!!!! thanks..
Marcelo |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|