how to display a custom page when silent
I'm using the modern UI and I have a custom page that I want to display - even when running in Silent mode. How can I force a page to always display?
Archive: how to display a custom page when silent
how to display a custom page when silent
I'm using the modern UI and I have a custom page that I want to display - even when running in Silent mode. How can I force a page to always display?
can you not use the IfSilent and SetSilent commands?
I don't think so. I initialize the pages at the begining of my script:
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
Page custom ShowCustom LeaveCustom
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
But I can't wrap the middle line with a 'IfSilent' check. Can I? I tried but the compiler says the command isn't legal outside a function or section.
I'm using the modern UI and I have a custom page that I want to display - even when running in Silent mode. How can I force a page to always display?Install Options plugin can't be used when the installer is on silent mode.
You can detect if the user chose to show to use a silent installer with IfSilent and then hide the pages you don't want. But I suggest you don't do this. When a user asks for a silent installer he/she would expect a silent installer. If you want, you can process the command line for another switch which would cause this behavior.