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)
This commit is contained in:
Philipp Wolfer
2014-11-07 16:28:20 +01:00
parent 836110e0d5
commit 3cf928557b

View File

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