Getting started with NSIS-waterline special effects scripting language

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.