Skip to content
⌘ NSIS Forum Archive

silent install progress bar

6 posts

slloyd#

silent install progress bar

I am trying to figure out a way to show a progress bar only during a silent install. The install would need to show the normal interface unless the /S switch is passed. Does anyone have any suggestions on how?
kichik#
You can check if the installer is silent using IfSilent or ${If} ${Silent} in .onInit, set it to non-silent and skip every page but the instfiles page.
slloyd#
That would work. Is there a way to use ChangeUI at execute time instead of compile time? I tried

ChangeUI all "${NSISDIR}\Contrib\UIs\LoadingBar_Icon.exe"
but it seems to be a compile time switch...
kichik#
No. If you really want two separate UIs, you'll have to use two separate installers. One can be contained in the other.
slloyd#
Thanks. That will not work for us though. Our installs are quite large (several hundred MBs) and putting one inside the other would double the download size.
Afrow UK#
It would be easier just to show a banner with the Banner plug-in or one of the other banner plug-ins on the Wiki.

Stu