如何更改默认的 NSIS 徽标并添加桌面快捷方式?

How to change default NSIS logo and also add an shortcut to desktop?

我尝试更改徽标,但出现以下错误:!define: "MUI_INSERT_NSISCONF" already defined!

如果这对你来说是个愚蠢的问题,我是 NSIS.Sorry 的新手。

要在 Desktop 上为当前用户创建快捷方式:

CreateShortCut "$DESKTOP\Filename.lnk" "$INSTDIR\SomeFile.exe" "<Optional Command Line>"

要更改图标和徽标:

!include "MUI2.nsh"

!define MUI_ICON "MyApp.ico"
!define MUI_UNICON "MyApp.ico"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "InstallerLogo.bmp"