diff --git a/Modules/NSIS.template.in b/Modules/NSIS.template.in index b910a3ec7..ee2a1abed 100644 --- a/Modules/NSIS.template.in +++ b/Modules/NSIS.template.in @@ -394,7 +394,10 @@ FunctionEnd ;-------------------------------- ; Define some macro setting for the gui - !define MUI_HEADERIMAGE_BITMAP "@CPACK_PACKAGE_ICON@" + !define CPACK_PACKAGE_ICON@CPACK_PACKAGE_ICON@ + !ifndef CPACK_PACKAGE_ICON + !define MUI_HEADERIMAGE_BITMAP "@CPACK_PACKAGE_ICON@" + !endif ;-------------------------------- ;Pages