Converted to plugin DLL

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1083 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-09-20 20:40:40 +00:00
parent c0adf047d3
commit e45d0bd0c0

View file

@ -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)