From 3cf928557bb8a4d1ea032be5a35f344c0a78eebc Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Fri, 7 Nov 2014 16:28:20 +0100 Subject: [PATCH] Fix the working directory for shortcuts created by the Windows installer In NSIS the working directory for shortcuts is controlled by the SetOutPath variable, see http://nsis.sourceforge.net/Docs/Chapter4.html#createshortcut . In our case this caused the working directory to be set to the "locale" directory. Fixes [PICARD-649](http://tickets.musicbrainz.org/browse/PICARD-649) --- installer/picard-setup.nsi.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installer/picard-setup.nsi.in b/installer/picard-setup.nsi.in index 3b75e2b60..fe3b93a18 100644 --- a/installer/picard-setup.nsi.in +++ b/installer/picard-setup.nsi.in @@ -140,18 +140,21 @@ SubSection "Shortcuts" shortcuts Section "Startmenu" startmenu SetShellVarContext all + SetOutPath "$INSTDIR" CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}.lnk" "$INSTDIR\picard.exe" \ "" "" "" SW_SHOWNORMAL "" "${PRODUCT_DESCRIPTION}" SectionEnd Section "Desktop" desktop SetShellVarContext all + SetOutPath "$INSTDIR" CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\picard.exe" \ "" "" "" SW_SHOWNORMAL "" "${PRODUCT_DESCRIPTION}" SectionEnd Section "Quick Launch" quicklaunch SetShellVarContext all + SetOutPath "$INSTDIR" CreateShortCut "$QUICKLAUNCH\${PRODUCT_NAME}.lnk" "$INSTDIR\picard.exe" \ "" "" "" SW_SHOWNORMAL "" "${PRODUCT_DESCRIPTION}" SectionEnd