From d67814f4087ce1156e1685b265ef436c63e6e1db Mon Sep 17 00:00:00 2001 From: Muhammadhussein Ammari Date: Tue, 22 Jul 2025 00:31:37 +0330 Subject: [PATCH] Improve start menu shortcut (#557) * Update windows_installer.nsi * Update windows_installer.nsi --- script/windows_installer.nsi | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/script/windows_installer.nsi b/script/windows_installer.nsi index 94ba0a4..04e22d8 100644 --- a/script/windows_installer.nsi +++ b/script/windows_installer.nsi @@ -42,11 +42,8 @@ Section "Install" File /r ".\deployment\windows64\*" CreateShortcut "$desktop\Throne.lnk" "$instdir\Throne.exe" - - CreateDirectory "$SMPROGRAMS\Throne" - CreateShortcut "$SMPROGRAMS\Throne\Throne.lnk" "$INSTDIR\Throne.exe" "" "$INSTDIR\Throne.exe" 0 - CreateShortcut "$SMPROGRAMS\Throne\Uninstall Throne.lnk" "$INSTDIR\uninstall.exe" - + CreateShortcut "$SMPROGRAMS\Throne.lnk" "$INSTDIR\Throne.exe" "" "$INSTDIR\Throne.exe" 0 + WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Throne" "DisplayName" "Throne" WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Throne" "UninstallString" "$INSTDIR\uninstall.exe" WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Throne" "InstallLocation" "$INSTDIR" @@ -59,8 +56,7 @@ Section "Uninstall" !insertmacro AbortOnRunningApp "$INSTDIR\Throne.exe" - Delete "$SMPROGRAMS\Throne\Throne.lnk" - Delete "$SMPROGRAMS\Throne\Uninstall Throne.lnk" + Delete "$SMPROGRAMS\Throne.lnk" Delete "$desktop\Throne.lnk" RMDir "$SMPROGRAMS\Throne"