* Checking for SetLayeredWindowAttributes is all we need, no need to check the version.
* Updated readme example git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6652 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b81aac947b
commit
7f6735532e
2 changed files with 44 additions and 59 deletions
|
@ -1,28 +1,26 @@
|
|||
AdvSplash.dll - small (5.5k), simple plugin that lets you throw
|
||||
up a splash screen in NSIS installers with cool fading effects (win2k/xp)
|
||||
and transparency.
|
||||
up a splash screen in NSIS installers with cool
|
||||
fading effects (Win2000+) and transparency.
|
||||
|
||||
To use:
|
||||
|
||||
Create a .BMP file of your splash screen.
|
||||
(optional) Create a .WAV file to play while your splash screen shows.
|
||||
Create a .WAV file to play while your splash screen shows. (optional)
|
||||
|
||||
Add the following lines to your .NSI file:
|
||||
|
||||
Function .onInit
|
||||
SetOutPath $TEMP
|
||||
File /oname=spltmp.bmp "my_splash.bmp"
|
||||
InitPluginsDir
|
||||
File "/oname=$PluginsDir\spltmp.bmp" "${NSISDIR}\Contrib\Graphics\Wizard\llama.bmp"
|
||||
|
||||
; optional
|
||||
; File /oname=spltmp.wav "my_splashsound.wav"
|
||||
; File /oname=$PluginsDir\spltmp.wav "my_splashsound.wav"
|
||||
|
||||
advsplash::show 1000 600 400 -1 $TEMP\spltmp
|
||||
advsplash::show 1000 600 400 -1 $PluginsDir\spltmp
|
||||
|
||||
Pop $0 ; $0 has '1' if the user closed the splash screen early,
|
||||
; '0' if everything closed normally, and '-1' if some error occurred.
|
||||
|
||||
Delete $TEMP\spltmp.bmp
|
||||
; Delete $TEMP\spltmp.wav
|
||||
FunctionEnd
|
||||
|
||||
Calling format
|
||||
|
@ -33,7 +31,7 @@ FadeIn - length to show the fadein scene (in ms) (not included in Delay)
|
|||
FadeOut - length to show the fadeout scene (in ms) (not included in Delay)
|
||||
KeyColor - color used for transparency, could be any RGB value
|
||||
(for ex. R=255 G=100 B=16 -> KeyColor=0xFF6410),
|
||||
use KeyColor=-1 if there is no transparent color at your image.
|
||||
use KeyColor=-1 if there is no transparent color in your image.
|
||||
FileName - 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue