/*
NSIS_SkinCrafter_Plugin是NSIS第三方皮肤文件插件
NSIS SkinCrafter插件是一个简单免费的插件可以美化你的安装程序界面,你也可以自行设计一个独一无二的界面.
官方网址:http://skincrafter.com/你可以在上面下载许多精美的皮肤包.
NSIS SkinCrafter使用非常简单,只需要在初始化时加载插件即可,当界面安装完成后释放.
*/
!AddPluginDir "."
Function .onInit
;User defined skin
SetOutPath $TEMP
File /oname=deka.skf "Fabre.skf"
NSIS_SkinCrafter_Plugin::skin /NOUNLOAD $TEMPdeka.skf
Delete $TEMPdeka.skf
;Default Skin
;NSIS_SkinCrafter_Plugin::skin /NOUNLOAD
FunctionEnd
Function .onGUIEnd
NSIS_SkinCrafter_Plugin::destroy
FunctionEnd
Function un.onInit
;User defined skin
;SetOutPath $TEMP
;File /oname=Stylish.skf "Stylish.skf"
;NSIS_SkinCrafter_Plugin::skin /NOUNLOAD $TEMPStylish.skf
;Delete $TEMPStylish.skf
;Default Skin
NSIS_SkinCrafter_Plugin::skin /NOUNLOAD
FunctionEnd
Function un.onGUIEnd
NSIS_SkinCrafter_Plugin::destroy
FunctionEnd
;--------------------------------
;Include Modern UI
!include "MUI2.nsh"
;--------------------------------
;General
;Name and file
Name "NSIS SkinCrafter Plugin Test"
OutFile "sample.exe"
;Default installation folder
InstallDir "$PROGRAMFILESNSIS SkinCrafter Plugin Test"
;Get installation folder from registry if available
InstallDirRegKey HKCU "SoftwareNSIS SkinCrafter Plugin" ""
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
;Pages
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;Installer Sections
Section "Dummy Section" SecDummy
SetOutPath "$INSTDIR"
;ADD YOUR OWN FILES HERE...
;Store installation folder
WriteRegStr HKCU "SoftwareNSIS SkinCrafter Plugin" "" $INSTDIR
;Create uninstaller
WriteUninstaller "$INSTDIRUninstall.exe"
SectionEnd
;--------------------------------
;Descriptions
;Language strings
LangString DESC_SecDummy ${LANG_ENGLISH} "A test section."
;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
!insertmacro MUI_FUNCTION_DESCRIPTION_END
;--------------------------------
;Uninstaller Section
Section "Uninstall"
;ADD YOUR OWN FILES HERE...
Delete "$INSTDIRUninstall.exe"
RMDir "$INSTDIR"
DeleteRegKey /ifempty HKCU "SoftwareNSIS SkinCrafter Plugin"
SectionEnd
© 版权声明
THE END
暂无评论内容