[Gpg4win-commits] r23 - in trunk: . src
marcus at wald.intevation.org
marcus at wald.intevation.org
Thu Oct 20 18:38:10 CEST 2005
Author: marcus
Date: 2005-10-20 18:38:10 +0200 (Thu, 20 Oct 2005)
New Revision: 23
Modified:
trunk/ChangeLog
trunk/src/gpg4win.nsi
trunk/src/inst-sections.nsi
trunk/src/installer-finish.nsi
trunk/src/installer.nsi
Log:
2005-10-20 Marcus Brinkmann <marcus at g10code.de>
* src/gpg4win.nsi: Add start menu support.
* src/inst-sections.nsi: Likewise.
* src/installer.nsi: Likewise.
* src/installer-finish.nsi: Likewise.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2005-10-20 16:03:54 UTC (rev 22)
+++ trunk/ChangeLog 2005-10-20 16:38:10 UTC (rev 23)
@@ -1,5 +1,10 @@
2005-10-20 Marcus Brinkmann <marcus at g10code.de>
+ * src/gpg4win.nsi: Add start menu support.
+ * src/inst-sections.nsi: Likewise.
+ * src/installer.nsi: Likewise.
+ * src/installer-finish.nsi: Likewise.
+
* src/gpg4win.mk.in (GETVAR): Don't quote the first $.
(STRIP_macro): New macro.
(SPKG, BPKG): Use it here.
Modified: trunk/src/gpg4win.nsi
===================================================================
--- trunk/src/gpg4win.nsi 2005-10-20 16:03:54 UTC (rev 22)
+++ trunk/src/gpg4win.nsi 2005-10-20 16:38:10 UTC (rev 23)
@@ -18,6 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
!include "../include/config.nsi"
+!define HAVE_PKG_GPA 1
# The package name and version. PRETTY_PACKAGE is a user visible name
# only while PACKAGE is useful for filenames etc. PROD_VERSION is the
@@ -69,6 +70,7 @@
# Now include the generic parts.
+!define HAVE_STARTMENU
!include "installer.nsi"
Modified: trunk/src/inst-sections.nsi
===================================================================
--- trunk/src/inst-sections.nsi 2005-10-20 16:03:54 UTC (rev 22)
+++ trunk/src/inst-sections.nsi 2005-10-20 16:38:10 UTC (rev 23)
@@ -141,3 +141,19 @@
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_gnupg} $(DESC_SEC_gnupg)
!insertmacro MUI_FUNCTION_DESCRIPTION_END
+
+# This also must be in a central place. Also Urgs.
+
+Section "-startmenu"
+!ifdef HAVE_STARTMENU
+!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
+ CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
+!ifdef HAVE_PKG_GPA
+ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\GPA.lnk" \
+ "$INSTDIR\gpa.exe"
+!endif
+ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" \
+ "$INSTDIR\${PACKAGE}-uninstall.exe"
+!insertmacro MUI_STARTMENU_WRITE_END
+!endif
+SectionEnd
Modified: trunk/src/installer-finish.nsi
===================================================================
--- trunk/src/installer-finish.nsi 2005-10-20 16:03:54 UTC (rev 22)
+++ trunk/src/installer-finish.nsi 2005-10-20 16:38:10 UTC (rev 23)
@@ -37,6 +37,15 @@
Section Uninstall
+!ifdef HAVE_STARTMENU
+!insertmacro MUI_STARTMENU_GETFOLDER ${STARTMENU_FOLDER} $R0
+!ifdef HAVE_PKG_GPA
+ Delete "$SMPROGRAMS\$R0\GPA.lnk"
+!endif
+ Delete "$SMPROGRAMS\$R0\Uninstall.lnk"
+ RMDir "$SMPROGRAMS\$R0"
+!endif
+
Delete "$INSTDIR\${PACKAGE}-uninstall.exe"
RMDir "$INSTDIR"
Modified: trunk/src/installer.nsi
===================================================================
--- trunk/src/installer.nsi 2005-10-20 16:03:54 UTC (rev 22)
+++ trunk/src/installer.nsi 2005-10-20 16:38:10 UTC (rev 23)
@@ -112,6 +112,15 @@
!define MUI_PAGE_CUSTOMFUNCTION_SHOW PrintNonAdminWarning
!insertmacro MUI_PAGE_COMPONENTS
+!ifdef HAVE_STARTMENU
+Var STARTMENU_FOLDER
+!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
+!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\GNU\${PRETTY_PACKAGE_SHORT}"
+!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
+
+!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
+!endif
+
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
More information about the Gpg4win-commits
mailing list