NSIS: Set shortcut's workind dir to install path

This commit is contained in:
sledgehammer999 2023-01-25 20:35:21 +02:00
parent ca72360b6f
commit 5e952a561b
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2

View File

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