home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 March / CMCD0304.ISO / Software / Freeware / Programare / nullsoft / nsis20.exe / Contrib / AdvSplash / Example.nsi < prev   
Encoding:
Text File  |  2004-02-06  |  1.1 KB  |  35 lines

  1. Name "AdvSplash.dll test"
  2.  
  3. OutFile "AdvSplash Test.exe"
  4.  
  5. XPStyle on
  6.  
  7. Function .onInit
  8.         # the plugins dir is automatically deleted when the installer exits
  9.         InitPluginsDir
  10.         File /oname=$PLUGINSDIR\splash.bmp "${NSISDIR}\Contrib\Graphics\Header\nsis.bmp"
  11.         #optional
  12.         #File /oname=$PLUGINSDIR\splash.wav "C:\myprog\sound.wav"
  13.  
  14.         MessageBox MB_OK "Fading"
  15.  
  16.         advsplash::show 1000 600 400 -1 $PLUGINSDIR\splash
  17.  
  18.         Pop $0          ; $0 has '1' if the user closed the splash screen early,
  19.                         ; '0' if everything closed normal, and '-1' if some error occured.
  20.  
  21.         MessageBox MB_OK "Transparency"
  22.         File /oname=$PLUGINSDIR\splash.bmp "${NSISDIR}\Contrib\Makensisw\logo.bmp"
  23.         advsplash::show 2000 0 0 0x1856B1 $PLUGINSDIR\splash
  24.         Pop $0 
  25.  
  26.         MessageBox MB_OK "Transparency/Fading"
  27.         File /oname=$PLUGINSDIR\splash.bmp "${NSISDIR}\Contrib\Graphics\Wizard\llama.bmp"
  28.         advsplash::show 1000 600 400 0x04025C $PLUGINSDIR\splash
  29.         Pop $0 
  30.  
  31.         Delete $PLUGINSDIR\splash.bmp
  32. FunctionEnd
  33.  
  34. Section
  35. SectionEnd