Prev Previous Post   Next Post Next
Old 28th April 2008, 15:50   #1
mrtech
Junior Member
 
Join Date: Oct 2002
Posts: 46
Update Banner with progress/text

I've search around but can't find a solutions, so here goes.

I want to be able to use Banner::Show (or similar) in the -Post of my installer to wait for the Exec of the app to load, here's what I have so far, thanks. (I added InitPluginsDir & ReserveFile based on similar forum postings).

I just basically want ".", then "..", the "..." to fill the Banner text area while it waits for FindWindow, etc.

code:

BringToFront
StrCpy $statusThrobber "."

InitPluginsDir

ReserveFile "${NSISDIR}\Plugins\Banner.dll"

Exec "${MUI_FINISHPAGE_RUN}"

Banner::show /NOUNLOAD /set 76 "Launching..." ""

Banner::getWindow /NOUNLOAD
Pop $1

GetDlgItem $2 $1 1030

loop:
SendMessage $2 ${WM_SETTEXT} 0 "STR:$statusThrobber"

StrCpy $statusThrobber "$statusThrobber."
BringToFront

FindWindow $0 "MozillaUIWindowClass" "${PRODUCT_NAME}"

IntCmp $0 0 done
Sleep 500
Goto loop
done:

# I don't think FindWindow waits for window to be draw
# just for window to be available so I added this padding
# of 5 seconds.
Sleep 5000

Banner::destroy

mrtech is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump