2014-12-13 1 views

답변

1

MUI_UNWELCOMEFINISHPAGE_BITMAP 일반적으로 필요한 모든 것이 있지만 적절한 시간에 비트 맵 파일을 덮어 쓰면 변경할 수 있습니다.

!include MUI2.nsh 
InstallDir $temp\example 
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange.bmp" ; This sets the image for the uninstallers Welcome AND Finish pages which is usually what you want. 

!insertmacro MUI_PAGE_WELCOME 
!insertmacro MUI_PAGE_DIRECTORY 
!insertmacro MUI_PAGE_INSTFILES 
!insertmacro MUI_PAGE_FINISH 
!insertmacro MUI_UNPAGE_WELCOME 
!insertmacro MUI_UNPAGE_CONFIRM 
!insertmacro MUI_UNPAGE_INSTFILES 
!define MUI_PAGE_CUSTOMFUNCTION_PRE un.overrideunfinishbmp 
!insertmacro MUI_UNPAGE_FINISH 
!insertmacro MUI_LANGUAGE "English" 

Function un.overrideunfinishbmp 
File "/oname=$PLUGINSDIR\modern-wizard.bmp" "${NSISDIR}\Contrib\Graphics\Wizard\nullsoft.bmp" 
FunctionEnd 

Section 
SetOutPath "$InstDir" 
WriteUninstaller "$InstDir\Uninstall.exe" 
SectionEnd 

Section Uninstall 
Delete "$InstDir\Uninstall.exe" 
RMDir "$InstDir" 
SectionEnd