diff options
| author | ruki <[email protected]> | 2023-11-14 23:21:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-14 23:21:00 +0800 |
| commit | 2a70793d5afbca2417bc65601f3a1785a1328d76 (patch) | |
| tree | d48c8bc9b998f496f9869d7682979b70428f4455 | |
| parent | f070b5c9e770199d6fd5de9f696b4894238c6b58 (diff) | |
improve uninstall
| -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 |
