(Interested users may wish to copy the following code into the NSIs plug-in to run a look)
/*
If you are have this effects,please keep!
Writer: "Mr.z_production JUAN "
http://blog.163.com/53_54
Thanks:restools,zhfi,x-star
*/
! Addplugindir "."
! Addincludedir "."
!include Mui2.nsh
; --------------------------------------------------
; General settings.
Name "Flame_effects Example"
OutFile "Nsis_fire.exe"
Setcompressor/solid Lzma
Reservefile "${nsisdir}pluginssystem.dll"
Reservefile Firectrl.dll
; --------------------------------------------------
; MUI interface settings.
!define Mui_finishpage_noautoclose
; --------------------------------------------------
; Insert MUI pages.
!define Mui_welcomefinishpage_bitmap wizmodernimage-is.bmp
; Installer pages
!define Mui_page_customfunction_pre PRE
!define Mui_page_customfunction_leave LEAVE
!define Mui_welcomepage_text "Flame effect"
!insertmacro Mui_page_welcome
!insertmacro Mui_page_instfiles
!define Mui_page_customfunction_pre Pre
!define Mui_page_customfunction_leave LEAVE
!insertmacro Mui_page_finish
; --------------------------------------------------
; Languages.
!insertmacro mui_language "中文版"
Function. Onguiend
Setpluginunload Manual
Firectrl::d Isablefire
System::free
FunctionEnd
Function. OnInit
Initpluginsdir
Setoutpath $PLUGINSDIR
File Firectrl.dll
Setoutpath $TEMP
FunctionEnd
Function Pre
System::call ' User32::loadimage (i,t,i,i,i,i,) I (0, "$PLUGINSDIRmodern-wizard.bmp", 0,0,0,0x10). S '
Pop $R 0
System::call ' $PLUGINSDIRfirectrl:: Enablefire (I,i,i,i,i) I ($HWNDPARENT, 0,0, $R 0,50) '
FunctionEnd
Function leave
System::call ' $PLUGINSDIRfirectrl::d isablefire ()
FunctionEnd
section "Dummy" Secdummy
Sectionend