Improve start menu shortcut (#557)

* Update windows_installer.nsi

* Update windows_installer.nsi
This commit is contained in:
Muhammadhussein Ammari 2025-07-22 00:31:37 +03:30 committed by GitHub
parent 055f44e919
commit d67814f408
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"