Splash.dll example
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1714 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b7152b4af8
commit
e76c3e2d81
1 changed files with 21 additions and 0 deletions
21
Contrib/Splash/Example.nsi
Normal file
21
Contrib/Splash/Example.nsi
Normal file
|
@ -0,0 +1,21 @@
|
|||
Name "Splash.dll test"
|
||||
|
||||
OutFile "Splash Test.exe"
|
||||
|
||||
XPStyle on
|
||||
|
||||
Function .onInit
|
||||
# the plugins dir is automatically deleted when the installer exits
|
||||
InitPluginsDir
|
||||
File /oname=$PLUGINSDIR\splash.bmp "${NSISDIR}\Contrib\Makensisw\logo.bmp"
|
||||
#optional
|
||||
#File /oname=$PLUGINSDIR\splash.wav "C:\myprog\sound.wav"
|
||||
|
||||
splash::show 1000 $PLUGINSDIR\splash
|
||||
|
||||
Pop $0 ; $0 has '1' if the user closed the splash screen early,
|
||||
; '0' if everything closed normal, and '-1' if some error occured.
|
||||
FunctionEnd
|
||||
|
||||
Section
|
||||
SectionEnd
|
Loading…
Add table
Add a link
Reference in a new issue