mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
Improve start menu shortcut (#557)
* Update windows_installer.nsi * Update windows_installer.nsi
This commit is contained in:
parent
055f44e919
commit
d67814f408
@ -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"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user