2013-01-10 70 views
1

我想在Windows程序和功能中顯示我的自定義圖標。我已經通過NSIS 創建安裝腳本下面是我的MUI用戶接口設置程序和功能中的NSIS MUI圖標

; MUI Settings 
!define MUI_ABORTWARNING 
!define MUI_ICON ".\Include\Images\Icons\icon.ico" 
!define MUI_UNICON ".\Include\Images\Icons\icon.ico" 
!define MUI_HEADERIMAGE 
!define MUI_HEADERIMAGE_BITMAP ".\Include\Images\Header\header.bmp" 
!define MUI_HEADERIMAGE_UNBITMAP ".\Include\Images\Header\header.bmp" 
!define MUI_HEADERIMAGE_RIGHT 
!define MUI_WELCOMEFINISHPAGE_BITMAP ".\Include\Images\Wizard\welcome.bmp" 
!define MUI_UNWELCOMEFINISHPAGE_BITMAP ".\Include\Images\Wizard\welcome.bmp" 

回答

0

圖標必須註冊爲卸載價值的一部分,你需要添加一個指向您的.exe或DisplayIcon字符串值.ico在$InstDir