summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-04-26 19:38:55 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-04-26 19:38:55 +0000
commit53247f7099595c91ef79865b08d4acaf10a61728 (patch)
tree785faa91209a7bd87714aee30cf1bc7fb2212e36 /packaging
parentImprove 0.92 support for Clone Original LPE (diff)
downloadinkscape-53247f7099595c91ef79865b08d4acaf10a61728.tar.gz
inkscape-53247f7099595c91ef79865b08d4acaf10a61728.zip
Packaging: Fix wrong working directory in shortcuts created by NSIS installer
Also fix manually defined INKSCAPE_DIST_DIR (bzr r15646)
Diffstat (limited to 'packaging')
-rw-r--r--packaging/win32/inkscape.nsi9
1 files changed, 7 insertions, 2 deletions
diff --git a/packaging/win32/inkscape.nsi b/packaging/win32/inkscape.nsi
index 7bc65cc69..525df2294 100644
--- a/packaging/win32/inkscape.nsi
+++ b/packaging/win32/inkscape.nsi
@@ -136,11 +136,13 @@ ReserveFile /plugin UserInfo.dll
; Find inkscape distribution directory (uncomment line below to manually define)
;!define INKSCAPE_DIST_DIR ..\..\inkscape
!ifdef INKSCAPE_DIST_DIR
- ${!ifnexist} ${INKSCAPE_DIST_DIR}\inkscape.exe
+ ${!defineifexist} ${INKSCAPE_DIST_DIR}\inkscape.exe FOUND 1
+ !ifndef FOUND
!error "inkscape.exe not found in INKSCAPE_DIST_DIR ('${INKSCAPE_DIST_DIR}')"
+ !endif
!endif
!ifndef INKSCAPE_DIST_DIR
- ${!defineifexist} ${INKSCAPE_DIST_DIR}\inkscape.exe INKSCAPE_DIST_DIR ..\..\inkscape ; btool default
+ ${!defineifexist} ..\..\inkscape\inkscape.exe INKSCAPE_DIST_DIR ..\..\inkscape ; btool default
!endif
!ifndef INKSCAPE_DIST_DIR
${!defineifexist} ..\..\build\inkscape\inkscape.exe INKSCAPE_DIST_DIR ..\..\build\inkscape ; cmake default
@@ -424,6 +426,7 @@ SectionGroup "$(Shortcuts)" SecShortcuts ; Create shortcuts for the user {{{
Section "$(Startmenu)" SecStartMenu ; Start menu shortcut {{{
SectionIn 1 2 3
!ifndef DUMMYINSTALL
+ SetOutPath $INSTDIR
CreateShortcut $SMPROGRAMS\Inkscape.lnk $INSTDIR\inkscape.exe
!endif
SectionEnd ; SecStartMenu }}}
@@ -431,6 +434,7 @@ SectionEnd ; SecStartMenu }}}
Section "$(Desktop)" SecDesktop ; Desktop shortcut {{{
SectionIn 1 2 3
!ifndef DUMMYINSTALL
+ SetOutPath $INSTDIR
CreateShortCut $DESKTOP\Inkscape.lnk $INSTDIR\inkscape.exe
!endif
SectionEnd ; SecDesktop }}}
@@ -438,6 +442,7 @@ SectionEnd ; SecDesktop }}}
Section "$(Quicklaunch)" SecQuickLaunch ; Quick Launch shortcut {{{
SectionIn 1 2 3
!ifndef DUMMYINSTALL
+ SetOutPath $INSTDIR
${IfThen} $QUICKLAUNCH != $TEMP ${|} CreateShortCut $QUICKLAUNCH\Inkscape.lnk $INSTDIR\inkscape.exe ${|}
!endif
SectionEnd ; SecQuickLaunch }}}