NSIS/Contrib/Banner/Example.nsi
kichik 4e6cf01f9c added getWindow
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3564 212acab6-be3b-0410-9dea-997c60f758d6
2004-06-17 17:54:48 +00:00

40 lines
No EOL
697 B
NSIS

# Look at Readme.txt for usage alongside with the Modern UI
!include "WinMessages.nsh"
Name "Banner.dll test"
OutFile "Banner Test.exe"
ShowInstDetails show
Function .onInit
Banner::show /NOUNLOAD "Calculating important stuff..."
Banner::getWindow /NOUNLOAD
Pop $1
again:
IntOp $0 $0 + 1
Sleep 1
StrCmp $0 1000 0 again
GetDlgItem $2 $1 1030
SendMessage $2 ${WM_SETTEXT} 0 "STR:Calculating more important stuff..."
StrCpy $0 0
again2:
IntOp $0 $0 + 1
Sleep 1
StrCmp $0 1000 0 again2
Banner::destroy
FunctionEnd
Section
DetailPrint "Using previous calculations to quickly calculate 1*2000..."
Sleep 1000
DetailPrint "Eureka! It's $0!!!"
DetailPrint ""
SectionEnd