diff options
| -rw-r--r-- | xmake/scripts/xpack/nsis/makensis.nsi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/scripts/xpack/nsis/makensis.nsi b/xmake/scripts/xpack/nsis/makensis.nsi index 8bddfd54a..77b3c10fa 100644 --- a/xmake/scripts/xpack/nsis/makensis.nsi +++ b/xmake/scripts/xpack/nsis/makensis.nsi @@ -52,7 +52,9 @@ RequestExecutionLevel user ManifestDPIAware true ; set icon -!define MUI_ICON "${PACKAGE_ICONFILE}" +!if "${PACKAGE_ICONFILE}" != "" + !define MUI_ICON "${PACKAGE_ICONFILE}" +!endif ; UAC !macro Init thing @@ -305,5 +307,8 @@ Section "Uninstall" ${WordReplace} $R0 ";$InstDir" "" "+" $R1 WriteRegExpandStr ${HKCU} "Environment" "Path" "$R1" ${EndIf} + + ; remove uninstall.exe + Delete "$InstDir\uninstall.exe" SectionEnd |
