diff --git a/Contrib/Splash/splash.txt b/Contrib/Splash/splash.txt index d460b3c2..d6da1850 100644 --- a/Contrib/Splash/splash.txt +++ b/Contrib/Splash/splash.txt @@ -1,7 +1,7 @@ -Splash.exe - small (3.5k), simple (one file) program that lets you throw +Splash.exe - small (4k), simple plugin that lets you throw up a splash screen in NSIS installers. ---- UPDATED in 1.50 - will break old scripts --- +--- UPDATED in 2.0b0 - will break old scripts --- To use: @@ -17,22 +17,21 @@ Function .onInit ; optional ; File /oname=spltmp.wav "my_splashshit.wav" - File /oname=spltmp.exe "C:\program files\nsis\splash.exe" - ExecWait '"$TEMP\spltmp.exe" 1000 $HWNDPARENT $TEMP\spltmp' - Delete $TEMP\spltmp.exe + splash::show 1000 $TEMP\spltmp Delete $TEMP\spltmp.bmp ; Delete $TEMP\spltmp.wav FunctionEnd Note that the first parameter to splash.exe is the length to show the -screen for (in milliseconds), the second is the parent window (in decimal), -and the last is the splash bitmap filename (without the .bmp). The BMP file -used will be this parameter.bmp, and the wave file used (if present) will be -this parameter.wav. +screen for (in milliseconds), and the second is the splash bitmap filename (without +the .bmp). The BMP file used will be this parameter.bmp, and the wave file used +(if present) will be this parameter.wav. (If you already have an .onInit function, put that in it) Note: the return value of splash.exe is 1 if the user closed the splash -screen early (you can check it using ClearErrors/IfErrors) +screen early (pop it from the stack) -Justin + +Converted to a plugin DLL by Amir Szekely (kichik)