Getting started with NSIS-waterline special effects scripting language
/*
Script: zhfi
Special thanks: Restools, X-Star
*/
! AddPluginDir "."
! AddIncludeDir "."
! Include MUI2.nsh
;--------------------------------------------------
; General settings.
Name "WaterCtrl_Test Example"
OutFile "WaterCtrl_Test.exe"
SetCompressor/SOLID lzma
ReserveFile "$ {NSISDIR} Pluginssystem. dll"
ReserveFile waterctrl. dll
; SetFont tahoma 8
;--------------------------------------------------
; 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
! Insertmacro MUI_PAGE_WELCOME
! Insertmacro MUI_PAGE_INSTFILES
! Define MUI_PAGE_CUSTOMFUNCTION_Pre pre
! Define MUI_PAGE_CUSTOMFUNCTION_LEAVE leave
! Insertmacro MUI_PAGE_FINISH
;--------------------------------------------------
; Ages.
! Insertmacro MUI_LANGUAGE "SimpChinese"
Function. onGUIEnd
SetPluginUnload manual
Waterctrl: disablewater
System: Free
FunctionEnd
Function. onInit
InitPluginsDir
SetOutPath $ PLUGINSDIR
File waterctrl. dll
SetOutPath $ TEMP
FunctionEnd
Function Pre
System: Call 'user32: LoadImage (I, t, I,) I (0, "$PLUGINSDIRmodern-wizard.bmp", 2010, x). s'
Pop $ R0
System: call' $ PLUGINSDIRwaterctrl: enablewater (I, I) I ($ HWNDPARENT, $ R0 )'
System: Call '$ PLUGINSDIRwaterctrl: setwaterparent (I $ HWNDPARENT )'
System: Call '$ PLUGINSDIRwaterctrl: flattenwater ()'
System: Call '$ PLUGINSDIRwaterctrl: waterblob (I, I) I (70,198 )'
FunctionEnd
Function leave
System: Call '$ PLUGINSDIRwaterctrl: disablewater ()'
FunctionEnd
Section "Dummy" SecDummy
SectionEnd