Installer: Clean up Windows Start Menu entry

This commit is contained in:
RedBlackAka 2025-04-07 10:46:56 +02:00 committed by GitHub
commit 321c684d5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,19 +179,13 @@ Section "Base"
; Create start menu and desktop shortcuts ; Create start menu and desktop shortcuts
; This needs to be done after Dolphin.exe is copied ; This needs to be done after Dolphin.exe is copied
CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}" CreateShortCut "$SMPROGRAMS\$DisplayName.lnk" "$INSTDIR\Dolphin.exe"
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\$DisplayName.lnk" "$INSTDIR\Dolphin.exe"
CreateShortCut "$DESKTOP\$DisplayName.lnk" "$INSTDIR\Dolphin.exe" CreateShortCut "$DESKTOP\$DisplayName.lnk" "$INSTDIR\Dolphin.exe"
; ?? ; ??
SetOutPath "$TEMP" SetOutPath "$TEMP"
SectionEnd SectionEnd
Section -AdditionalIcons
; Create start menu shortcut for the uninstaller
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall $DisplayName.lnk" "$INSTDIR\uninst.exe" "/$MultiUser.InstallMode"
SectionEnd
!include "FileFunc.nsh" !include "FileFunc.nsh"
Section -Post Section -Post
@ -216,11 +210,8 @@ SectionEnd
Section Uninstall Section Uninstall
!insertmacro UPDATE_DISPLAYNAME !insertmacro UPDATE_DISPLAYNAME
Delete "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall $DisplayName.lnk" Delete "$SMPROGRAMS\$DisplayName.lnk"
Delete "$DESKTOP\$DisplayName.lnk" Delete "$DESKTOP\$DisplayName.lnk"
Delete "$SMPROGRAMS\${PRODUCT_NAME}\$DisplayName.lnk"
RMDir "$SMPROGRAMS\${PRODUCT_NAME}"
; Be a bit careful to not delete files a user may have put into the install directory. ; Be a bit careful to not delete files a user may have put into the install directory.
Delete "$INSTDIR\*.dll" Delete "$INSTDIR\*.dll"