~simdgenius/inkscape/my2

« back to all changes in this revision

Viewing changes to packaging/win32/inkscape.nsi

  • Committer: Yale Zhang
  • Date: 2017-09-24 12:08:18 UTC
  • mfrom: (15617.1.123 inkscape)
  • Revision ID: yzhang1985@gmail.com-20170924120818-jjpv7rgk55hoozr1
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
; Find inkscape distribution directory (uncomment line below to manually define)
137
137
;!define INKSCAPE_DIST_DIR ..\..\inkscape
138
138
!ifdef INKSCAPE_DIST_DIR
139
 
  ${!ifnexist} ${INKSCAPE_DIST_DIR}\inkscape.exe
 
139
  ${!defineifexist} ${INKSCAPE_DIST_DIR}\inkscape.exe FOUND 1
 
140
  !ifndef FOUND
140
141
    !error "inkscape.exe not found in INKSCAPE_DIST_DIR ('${INKSCAPE_DIST_DIR}')"
 
142
  !endif
141
143
!endif
142
144
!ifndef INKSCAPE_DIST_DIR
143
 
  ${!defineifexist} ${INKSCAPE_DIST_DIR}\inkscape.exe INKSCAPE_DIST_DIR ..\..\inkscape ; btool default
 
145
  ${!defineifexist} ..\..\inkscape\inkscape.exe INKSCAPE_DIST_DIR ..\..\inkscape ; btool default
144
146
!endif
145
147
!ifndef INKSCAPE_DIST_DIR
146
148
  ${!defineifexist} ..\..\build\inkscape\inkscape.exe INKSCAPE_DIST_DIR ..\..\build\inkscape ; cmake default
424
426
Section "$(Startmenu)" SecStartMenu ; Start menu shortcut {{{
425
427
  SectionIn 1 2 3
426
428
!ifndef DUMMYINSTALL
 
429
  SetOutPath $INSTDIR
427
430
  CreateShortcut $SMPROGRAMS\Inkscape.lnk $INSTDIR\inkscape.exe
428
431
!endif
429
432
SectionEnd ; SecStartMenu }}}
431
434
Section "$(Desktop)" SecDesktop ; Desktop shortcut {{{
432
435
  SectionIn 1 2 3
433
436
!ifndef DUMMYINSTALL
 
437
  SetOutPath $INSTDIR
434
438
  CreateShortCut $DESKTOP\Inkscape.lnk $INSTDIR\inkscape.exe
435
439
!endif
436
440
SectionEnd ; SecDesktop }}}
438
442
Section "$(Quicklaunch)" SecQuickLaunch ; Quick Launch shortcut {{{
439
443
  SectionIn 1 2 3
440
444
!ifndef DUMMYINSTALL
 
445
  SetOutPath $INSTDIR
441
446
  ${IfThen} $QUICKLAUNCH != $TEMP ${|} CreateShortCut $QUICKLAUNCH\Inkscape.lnk $INSTDIR\inkscape.exe ${|}
442
447
!endif
443
448
SectionEnd ; SecQuickLaunch }}}