summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/win32/inkscape.nsi23
1 files changed, 14 insertions, 9 deletions
diff --git a/packaging/win32/inkscape.nsi b/packaging/win32/inkscape.nsi
index 6aa9c9ed0..9f2c00727 100755
--- a/packaging/win32/inkscape.nsi
+++ b/packaging/win32/inkscape.nsi
@@ -410,8 +410,21 @@ Section "$(Alluser)" SecAlluser ; Then offer the user the option to make it glob
!endif
SectionEnd ; SecAllUser }}}
+Section /o "$(DeletePrefs)" SecPrefs ; Delete user preferences before installation {{{
+!ifndef DUMMYINSTALL
+ !insertmacro delprefs
+!endif
+SectionEnd ; SecPrefs }}}
+
SectionGroup "$(Shortcuts)" SecShortcuts ; Create shortcuts for the user {{{
+Section "$(Startmenu)" SecStartMenu ; Start menu shortcut {{{
+ SectionIn 1 2 3
+!ifndef DUMMYINSTALL
+ CreateShortcut $SMPROGRAMS\Inkscape.lnk $INSTDIR\inkscape.exe
+!endif
+SectionEnd ; SecStartMenu }}}
+
Section "$(Desktop)" SecDesktop ; Desktop shortcut {{{
SectionIn 1 2 3
!ifndef DUMMYINSTALL
@@ -468,12 +481,6 @@ SectionEnd ; SecContextMenu }}}
SectionGroupEnd ; SecShortcuts }}}
-Section /o "$(DeletePrefs)" SecPrefs ; Delete user preferences before installation {{{
-!ifndef DUMMYINSTALL
- !insertmacro delprefs
-!endif
-SectionEnd ; SecPrefs }}}
-
Section "$(Python)" SecPython ; Python distribution {{{
SectionIn 1 2
!ifndef DUMMYINSTALL
@@ -603,9 +610,6 @@ Section -FinalizeInstallation ; Hidden, mandatory section to finalize installati
WriteRegStr SHCTX "${INSTDIR_KEY}" askMultiUser $askMultiUser
WriteRegStr SHCTX "${INSTDIR_KEY}" User $User
- ; start menu entries
- CreateShortcut $SMPROGRAMS\Inkscape.lnk $INSTDIR\inkscape.exe
-
; uninstall settings
; WriteUninstaller $INSTDIR\uninst.exe
WriteRegExpandStr SHCTX "${UNINST_KEY}" UninstallString ${UNINST_EXE}
@@ -658,6 +662,7 @@ SectionEnd ; -FinalizeInstallation }}}
!insertmacro MUI_DESCRIPTION_TEXT ${SecGTK} "$(GTKFilesDesc)"
!insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} "$(ShortcutsDesc)"
!insertmacro MUI_DESCRIPTION_TEXT ${SecAlluser} "$(AlluserDesc)"
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenu} "$(StartmenuDesc)"
!insertmacro MUI_DESCRIPTION_TEXT ${SecDesktop} "$(DesktopDesc)"
!insertmacro MUI_DESCRIPTION_TEXT ${SecQuickLaunch} "$(QuicklaunchDesc)"
!insertmacro MUI_DESCRIPTION_TEXT ${SecSVGWriter} "$(SVGWriterDesc)"