请把轻狂志网址 www.flighty.cn 加入收藏夹,其他俱为假冒,谨防被骗!赞助请点 这里!找东东请用右边的搜索 ===>
05 2013-09

NSIS皮肤插件

作者:不死帝国 | 发布:2010-08-26 | 更新:2013-09-05 | 分类:部署 | Disposition | 热度:

[有一个更好的皮肤,大家不妨试一下。http://www.flighty.cn/html/bushu/20110413_118.html ]

对于一般的安装不推荐使用皮肤,因为此插件的最大缺点是容量大了,单单个DLL就4.02MB,而且还要附加.skf作为插件调用的皮肤!假如安装包大小过500MB或以上的使用也不错,至少能漂亮一些!

压缩包内有几个皮肤以及插件与说明,还有示例脚本,一看则明!
 

;NSIS_SkinCrafter_Plugin   
;Basic Example Script   
  
Function .onInit   
    ;User defined skin   
    SetOutPath $TEMP   
    File /oname=Deka_ST.skf "Deka_ST.skf"  
    NSIS_SkinCrafter_Plugin::skin /NOUNLOAD $TEMP\Deka_ST.skf   
    Delete $TEMP\Deka_ST.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=Skinastic.skf "Skinastic.skf"  
    ;NSIS_SkinCrafter_Plugin::skin /NOUNLOAD $TEMP\Skinastic.skf   
    ;Delete $TEMP\Skinastic.skf   
  
    ;Default Skin   
    NSIS_SkinCrafter_Plugin::skin /NOUNLOAD   
FunctionEnd   
  
Function un.onGUIEnd   
 NSIS_SkinCrafter_Plugin::destroy   
FunctionEnd   
  
;--------------------------------   
;Include Modern UI   
  
  !include "MUI.nsh"  
  
;--------------------------------   
;General   
  
  ;Name and file   
  Name "NSIS SkinCrafter Plugin Test"  
  OutFile "sample.exe"  
  
  ;Default installation folder   
  InstallDir "$PROGRAMFILES\NSIS SkinCrafter Plugin Test"  
  
  ;Get installation folder from registry if available   
  InstallDirRegKey HKCU "Software\NSIS 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 "Software\NSIS SkinCrafter Plugin" "" $INSTDIR   
  
  ;Create uninstaller   
  WriteUninstaller "$INSTDIR\Uninstall.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 "$INSTDIR\Uninstall.exe"    
  RMDir "$INSTDIR"    
  DeleteRegKey /ifempty HKCU "Software\NSIS SkinCrafter Plugin"    
SectionEnd  

 
NSIS皮肤插件

 

标签:插件(7)NSIS(49)皮肤(2)