NSIS修改安装界面图标
MUI 预定义常量
!define MUI_ABORTWARNING
;修改图标
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall.ico"
;修改左侧图片
!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange-uninstall.bmp"
;修改Head图片
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\orange.bmp"
!define MUI_HEADERIMAGE_UNBITMAP "${NSISDIR}\Contrib\Graphics\Header\orange-uninstall.bmp"
;修改标题
!define MUI_WELCOMEPAGE_TITLE "\r\n 测试文体 V${PRODUCT_VERSION}"
;修改欢迎页面上的描述文字
!define MUI_WELCOMEPAGE_TEXT " 测试文本。\r\n\r\n 软件版权:测试文本\r\n\r\n $_CLICK"
;修改完成页面上的标题
!define MUI_FINISHPAGE_TITLE "\r\n 测试文本"
; 欢迎页面
!insertmacro MUI_PAGE_WELCOME
; 许可协议页面
!define MUI_LICENSEPAGE_CHECKBOX
!insertmacro MUI_PAGE_LICENSE "lisence.txt"
; 组件选择页面
!insertmacro MUI_PAGE_COMPONENTS
;---!define MUI_COMPONENTSPAGE_CHECKBITMAP "1.bmp" ;(96x16,256色)
; 安装目录选择页面
!insertmacro MUI_PAGE_DIRECTORY
; 开始菜单设置页面
var ICONS_GROUP
!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "GIGA/Parfait ~Chocolat second brew~ Re-order"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
; 安装过程页面
!insertmacro MUI_PAGE_INSTFILES
; 安装完成页面
Section
CopyFiles "patch\modern-wizard.bmp" "$PLUGINSDIR" ;用文件名为“modern-wizard.bmp”的BMP文件覆盖过去
SectionEND
!define MUI_FINISHPAGE_RUN "$INSTDIR\mp3.exe"
!define MUI_FINISHPAGE_RUN_TEXT "start exe"
!insertmacro MUI_PAGE_FINISH
#Nsis
相关文章
文章评论
-
-
-