Skip to content
⌘ NSIS Forum Archive

Banner plugin questions

5 posts

pcristip#

Banner plugin questions

I'm creating an installer that has several time consuming jobs to perform along the way and I'm using Banner::show and Banner::destroy to give the user some feedback; now for the questions:

1. I show the banner window 3 or 4 times (depending on a flag) and each time I use it like this:

Banner::show /NOUNLOAD /set 76 "Text to display" /set 1030 ""
....
Banner::destroy
I only want one text displayed and that's why I set the second to the empty string (got the ID from modern.exe). The problem is that the third time I run it I get a "0" or sometimes "1" displayed for the second text 😱 . At first I though it was because I had some CopyFiles inside and it tries to do automatic counting but I removed those command and the same thing happens. I don't understand this, cand someone help me out ?

2. Is there a way to change or even remove the icon displayed in the left side of the banner window ?

thx,
Chris
kichik#
1) According to this piece of code you are not using it right. You must specify a text for the normal text box or else Banner will pop garbage (in your case 0 and 1) from the stack.

2) To remove the icon you'd have to edit the resource of the UI.
pcristip#
1. Thx
2. Do you think it will be included as a feature in a future version, I want to display for example some icon picturing a lengthy process and I'd like to use the "standard" version not a modified one.

thx again for the help,
Chris