File: Example.nsi

package info (click to toggle)
nsis 3.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,496 kB
  • sloc: cpp: 39,326; ansic: 27,284; python: 1,386; asm: 712; xml: 409; pascal: 231; makefile: 225; javascript: 67
file content (38 lines) | stat: -rwxr-xr-x 698 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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 "Calculating important stuff..."

	Banner::getWindow
	Pop $1

	again:
		IntOp $0 $0 + 1
		Sleep 1
		StrCmp $0 100 0 again

	GetDlgItem $2 $1 1030
	SendMessage $2 ${WM_SETTEXT} 0 "STR:Calculating more important stuff..."

	again2:
		IntOp $0 $0 + 1
		Sleep 1
		StrCmp $0 200 0 again2

	Banner::destroy
FunctionEnd

Section
	DetailPrint "Using previous calculations to quickly calculate 1*2000..."
	Sleep 1000
	DetailPrint "Eureka! It's $0!!!"
	DetailPrint ""
SectionEnd