当我在 NSIS 安装程序欢迎屏幕中自定义位图图像时,更新的位图图像未反映出来

When I customize the bitmap image in NSIS installer Welcome screen the updated bitmap image is not reflecting

作为我项目的一部分,当我在 NSIS 安装程序欢迎屏幕中自定义位图图像时,更新的位图图像没有反映出来。

我使用下面的行来更改位图图像:

 !define MUI_DEFAULT_MUI_WELCOMEFINISHPAGE_BITMAP "E:\Source\NULLSOFT\src\Bitmaps\dlgbmp.bmp"

下面是代码片段:

    ;Pages
    ;Customizing the bitmap image
    
    !define MUI_DEFAULT_MUI_WELCOMEFINISHPAGE_BITMAP "E:\Source\NULLSOFT\src\Bitmaps\dlgbmp.bmp"
    
      !insertmacro MUI_PAGE_WELCOME
;Languages

  !insertmacro MUI_LANGUAGE "English" ; The first language is the default language
  !insertmacro MUI_LANGUAGE "French"

我们需要做任何额外的更改来更新新的位图吗?请帮助我。

没有名为 MUI_DEFAULT_MUI_WELCOMEFINISHPAGE_BITMAP 的定义,请参阅 MUI documentation 以获得有效定义。

在你的例子中,定义被命名为 MUI_WELCOMEFINISHPAGE_BITMAP:

!include MUI2.nsh
!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange.bmp"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"