mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
NSIS: Set shortcut's workind dir to install path
This commit is contained in:
2
dist/windows/installer.nsi
vendored
2
dist/windows/installer.nsi
vendored
@@ -35,6 +35,8 @@ Section $(inst_qbt_req) ;"qBittorrent (required)"
|
|||||||
SetOutPath "$INSTDIR\translations"
|
SetOutPath "$INSTDIR\translations"
|
||||||
; Put files there
|
; Put files there
|
||||||
File /r "translations\qt*.qm"
|
File /r "translations\qt*.qm"
|
||||||
|
; Restore output path because it affects `CreateShortCut`. It affects the "Start in" field.
|
||||||
|
SetOutPath $INSTDIR
|
||||||
|
|
||||||
; Write the installation path into the registry
|
; Write the installation path into the registry
|
||||||
WriteRegStr HKLM "Software\qBittorrent" "InstallLocation" "$INSTDIR"
|
WriteRegStr HKLM "Software\qBittorrent" "InstallLocation" "$INSTDIR"
|
||||||
|
|||||||
Reference in New Issue
Block a user