From 5e952a561b948b9b150bc019cf56ae0e7b4b3992 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 25 Jan 2023 20:35:21 +0200 Subject: [PATCH] NSIS: Set shortcut's workind dir to install path --- dist/windows/installer.nsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dist/windows/installer.nsi b/dist/windows/installer.nsi index 75f2a0f95..95d002a6c 100644 --- a/dist/windows/installer.nsi +++ b/dist/windows/installer.nsi @@ -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"