From e76c3e2d8199c50d91e0d069837bb9df786f107e Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 15 Nov 2002 12:22:48 +0000 Subject: [PATCH] Splash.dll example git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1714 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Splash/Example.nsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Contrib/Splash/Example.nsi diff --git a/Contrib/Splash/Example.nsi b/Contrib/Splash/Example.nsi new file mode 100644 index 00000000..f59620ae --- /dev/null +++ b/Contrib/Splash/Example.nsi @@ -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 \ No newline at end of file