mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-25 02:50: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\*"
|
File /r ".\deployment\windows64\*"
|
||||||
|
|
||||||
CreateShortcut "$desktop\Throne.lnk" "$instdir\Throne.exe"
|
CreateShortcut "$desktop\Throne.lnk" "$instdir\Throne.exe"
|
||||||
|
CreateShortcut "$SMPROGRAMS\Throne.lnk" "$INSTDIR\Throne.exe" "" "$INSTDIR\Throne.exe" 0
|
||||||
CreateDirectory "$SMPROGRAMS\Throne"
|
|
||||||
CreateShortcut "$SMPROGRAMS\Throne\Throne.lnk" "$INSTDIR\Throne.exe" "" "$INSTDIR\Throne.exe" 0
|
|
||||||
CreateShortcut "$SMPROGRAMS\Throne\Uninstall Throne.lnk" "$INSTDIR\uninstall.exe"
|
|
||||||
|
|
||||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Throne" "DisplayName" "Throne"
|
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" "UninstallString" "$INSTDIR\uninstall.exe"
|
||||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Throne" "InstallLocation" "$INSTDIR"
|
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Throne" "InstallLocation" "$INSTDIR"
|
||||||
@ -59,8 +56,7 @@ Section "Uninstall"
|
|||||||
|
|
||||||
!insertmacro AbortOnRunningApp "$INSTDIR\Throne.exe"
|
!insertmacro AbortOnRunningApp "$INSTDIR\Throne.exe"
|
||||||
|
|
||||||
Delete "$SMPROGRAMS\Throne\Throne.lnk"
|
Delete "$SMPROGRAMS\Throne.lnk"
|
||||||
Delete "$SMPROGRAMS\Throne\Uninstall Throne.lnk"
|
|
||||||
Delete "$desktop\Throne.lnk"
|
Delete "$desktop\Throne.lnk"
|
||||||
RMDir "$SMPROGRAMS\Throne"
|
RMDir "$SMPROGRAMS\Throne"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user