mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-22 01:06:03 +03:00
NSIS: Set shortcut's workind dir to install path
This commit is contained in:
parent
ca72360b6f
commit
5e952a561b
1 changed files with 2 additions and 0 deletions
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"
|
||||
; Put files there
|
||||
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
|
||||
WriteRegStr HKLM "Software\qBittorrent" "InstallLocation" "$INSTDIR"
|
||||
|
|
Loading…
Reference in a new issue