SF.net SVN: geany:[3099] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Wed Oct 15 15:50:06 UTC 2008


Revision: 3099
          http://geany.svn.sourceforge.net/geany/?rev=3099&view=rev
Author:   eht16
Date:     2008-10-15 15:50:06 +0000 (Wed, 15 Oct 2008)

Log Message:
-----------
Add option to not create desktop and quicklaunch shortcuts. Allow skipping creation of the Start Menu folder.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/geany.nsi

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-10-15 14:14:48 UTC (rev 3098)
+++ trunk/ChangeLog	2008-10-15 15:50:06 UTC (rev 3099)
@@ -1,3 +1,10 @@
+2008-10-15  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * geany.nsi:
+   Add option to not create desktop and quicklaunch shortcuts.
+   Allow skipping creation of the Start Menu folder.
+
+
 2008-10-15  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
 
  * src/interface.c, src/callbacks.c, src/callbacks.h, src/plugins.c,

Modified: trunk/geany.nsi
===================================================================
--- trunk/geany.nsi	2008-10-15 14:14:48 UTC (rev 3098)
+++ trunk/geany.nsi	2008-10-15 15:50:06 UTC (rev 3099)
@@ -19,9 +19,6 @@
 
 !define RESOURCEDIR "geany-${PRODUCT_VERSION}"
 
-; only used when embedding GTK+ installer
-!define GTK_INSTALLER "gtk+-2.10.6-1-setup.exe"
-
 SetCompressor /SOLID lzma
 XPStyle on
 Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
@@ -47,6 +44,9 @@
 VIAddVersionKey "LegalCopyright" "Copyright 2005-2008 by the Geany developers"
 VIAddVersionKey "FileDescription" "${PRODUCT_NAME} Installer"
 
+;Request application privileges for Windows Vista
+RequestExecutionLevel user
+
 ;;;;;;;;;;;;;;;;
 ; Init code    ;
 ;;;;;;;;;;;;;;;;
@@ -94,7 +94,6 @@
 !insertmacro MUI_PAGE_DIRECTORY
 ; Start menu page
 var ICONS_GROUP
-!define MUI_STARTMENUPAGE_NODISABLE
 !define MUI_STARTMENUPAGE_DEFAULTFOLDER "Geany"
 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
 !define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
@@ -139,12 +138,11 @@
   File /r "${RESOURCEDIR}\share\icons\*"
 
   SetOutPath "$INSTDIR"
+
+  CreateShortCut "$INSTDIR\Geany.lnk" "$INSTDIR\bin\Geany.exe"
   !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
   CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
-  CreateShortCut "$INSTDIR\Geany.lnk" "$INSTDIR\bin\Geany.exe"
   CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Geany.lnk" "$INSTDIR\bin\Geany.exe"
-  CreateShortCut "$DESKTOP\Geany.lnk" "$INSTDIR\bin\Geany.exe"
-  CreateShortCut "$QUICKLAUNCH\Geany.lnk" "$INSTDIR\bin\Geany.exe"
   !insertmacro MUI_STARTMENU_WRITE_END
 SectionEnd
 
@@ -166,10 +164,8 @@
   SetOverwrite ifnewer
   SetOutPath "$INSTDIR"
   File /r "${RESOURCEDIR}\doc"
-
-; Shortcuts
+  WriteIniStr "$INSTDIR\Documentation.url" "InternetShortcut" "URL" "$INSTDIR\doc\Manual.html"
   !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
-  WriteIniStr "$INSTDIR\Documentation.url" "InternetShortcut" "URL" "$INSTDIR\doc\Manual.html"
   CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Documentation.lnk" "$INSTDIR\Documentation.url"
   !insertmacro MUI_STARTMENU_WRITE_END
 SectionEnd
@@ -206,12 +202,18 @@
 SectionEnd
 !endif
 
-Section "Context menus" SEC07
+Section "Context Menus" SEC07
   SectionIn 1
   WriteRegStr HKCR "*\shell\OpenWithGeany" "" "Open with Geany"
   WriteRegStr HKCR "*\shell\OpenWithGeany\command" "" '$INSTDIR\bin\geany.exe "%1"'
 SectionEnd
 
+Section "Desktop Shortcuts" SEC08
+  SectionIn 1
+  CreateShortCut "$DESKTOP\Geany.lnk" "$INSTDIR\bin\Geany.exe"
+  CreateShortCut "$QUICKLAUNCH\Geany.lnk" "$INSTDIR\bin\Geany.exe"
+SectionEnd
+
 Section -AdditionalIcons
   SetOutPath $INSTDIR
   !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
@@ -247,6 +249,7 @@
   !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "You need this files to run Geany. If you have already installed a GTK Runtime Environment (2.6 or higher), you can skip it."
 !endif
   !insertmacro MUI_DESCRIPTION_TEXT ${SEC07} "Add context menu item 'Open With Geany'"
+  !insertmacro MUI_DESCRIPTION_TEXT ${SEC08} "Create shortcuts for Geany on the desktop and in the Quicklaunch Bar"
 !insertmacro MUI_FUNCTION_DESCRIPTION_END
 
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list