home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / zkuste / delphi / nastroje / d23456 / NSIS.EXE / splash.txt < prev    next >
Text File  |  2001-05-19  |  894b  |  30 lines

  1. Splash.exe - small (3.5k), simple (one file) program that lets you throw 
  2. up a splash screen in NSIS installers.
  3.  
  4. To use:
  5.  
  6. Create a .BMP file of your splash screen.
  7.  
  8. Add the following lines to your .NSI file:
  9.  
  10.  
  11. Function .onInit
  12.   SetOutPath $TEMP
  13.   File /oname=spltmp.dat "my_splash.bmp"
  14.   File /oname=spltmp.exe "C:\program files\nsis\splash.exe"
  15.   ExecWait '"$TEMP\spltmp.exe" 1000 $HWNDPARENT spltmp.dat'
  16.   Delete $TEMP\spltmp.exe
  17.   Delete $TEMP\spltmp.dat
  18. FunctionEnd
  19.  
  20. Note that the first parameter to splash.exe is the length to show the
  21. screen for (in milliseconds), the second is the parent window (in decimal), 
  22. and the last is the splash bitmap filename.
  23.  
  24. (If you already have an .onInit function, put that in it)
  25.  
  26. Note: the return value of splash.exe is 1 if the user closed the splash 
  27. screen early (you can check it using ClearErrors/IfErrors)
  28.  
  29. -Justin
  30.