This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@625 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
9b3b220a13
commit
3e9e73ec59
177 changed files with 37677 additions and 0 deletions
38
Contrib/Splash/splash.txt
Normal file
38
Contrib/Splash/splash.txt
Normal file
|
@ -0,0 +1,38 @@
|
|||
Splash.exe - small (3.5k), simple (one file) program that lets you throw
|
||||
up a splash screen in NSIS installers.
|
||||
|
||||
--- UPDATED in 1.50 - will break old scripts ---
|
||||
|
||||
To use:
|
||||
|
||||
Create a .BMP file of your splash screen.
|
||||
(optional) Create a .WAV file to play while your splash screen shows.
|
||||
|
||||
Add the following lines to your .NSI file:
|
||||
|
||||
Function .onInit
|
||||
SetOutPath $TEMP
|
||||
File /oname=spltmp.bmp "my_splash.bmp"
|
||||
|
||||
; 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
|
||||
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.
|
||||
|
||||
(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)
|
||||
|
||||
-Justin
|
Loading…
Add table
Add a link
Reference in a new issue