From b7152b4af8740211759e6d38a3e887b8cc6ddbef Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 15 Nov 2002 12:21:06 +0000 Subject: [PATCH] AdvSplash example git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1713 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/AdvSplash/Example.nsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Contrib/AdvSplash/Example.nsi diff --git a/Contrib/AdvSplash/Example.nsi b/Contrib/AdvSplash/Example.nsi new file mode 100644 index 00000000..e0a1a441 --- /dev/null +++ b/Contrib/AdvSplash/Example.nsi @@ -0,0 +1,30 @@ +Name "AdvSplash.dll test" + +OutFile "AdvSplash 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 "${NSISDIR}\Contrib\Makensisw\sound.wav" + + advsplash::show 1000 600 400 -1 $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. + + MessageBox MB_OK "Now with transparency" + + File /oname=$PLUGINSDIR\splash.bmp "${NSISDIR}\Contrib\Icons\modern.bmp" + + advsplash::show 1000 600 400 0xFF00FF $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