[ekiga/gnome-2-26] [windows] Cleanup code and add License page
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/gnome-2-26] [windows] Cleanup code and add License page
- Date: Sun, 9 May 2010 19:58:54 +0000 (UTC)
commit 1c5229570207779732d754cd7820fed2b86bcd69
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date: Sun May 9 21:57:37 2010 +0200
[windows] Cleanup code and add License page
win32/Makefile | 1 +
win32/nsisinstaller/ekiga.nsi | 54 +++++++++++++++-------------------------
2 files changed, 21 insertions(+), 34 deletions(-)
---
diff --git a/win32/Makefile b/win32/Makefile
index 59af112..62a379b 100644
--- a/win32/Makefile
+++ b/win32/Makefile
@@ -148,6 +148,7 @@ GTK_URL := http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16
GTK_ARCHIVE := gtk+-dev_$(GTK_VER)_win32.zip
# this is an installer, not a zip of files to be manually installed
+# see http://gtk-win.sourceforge.net for more information
GTK_BIN_VER := 2.16.0
GTK_INSTALLER_URL := http://downloads.sourceforge.net/gtk-win
GTK_BIN_EXE := gtk2-runtime-2.16.0-2009-03-22-ash.exe
diff --git a/win32/nsisinstaller/ekiga.nsi b/win32/nsisinstaller/ekiga.nsi
index 48ea8e1..826e854 100644
--- a/win32/nsisinstaller/ekiga.nsi
+++ b/win32/nsisinstaller/ekiga.nsi
@@ -1,14 +1,8 @@
-; Ekiga.nsi
-; ====================================================
; NSIS Installer for Ekiga Win32
; Original Authors: Herman Bloggs <hermanator12002 yahoo com>
; and Daniel Atallah <daniel_atallah yahoo com> (GAIM Installler)
; Original version : Installer for Ekiga win32
-; Update: Luba Vincent <luba novacom be>
-; Installer Version: 1.0
; Created : 09/01/06
-; Last Update: 10/13/06
-; ====================================================
!addPluginDir ${NSISPLUGINDIR}
; ===========================
@@ -53,21 +47,20 @@ OutFile "${TARGET_DIR}/ekiga-setup-${EKIGA_VERSION}-nogtk.exe"
; ===========================
; Defines
-!define EKIGA_REG_KEY "SOFTWARE\ekiga"
-!define EKIGA_UNINST_EXE "ekiga-uninst.exe"
-!define EKIGA_UNINSTALL_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Ekiga"
-!define HKLM_APP_PATHS_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\ekiga.exe"
-!define EKIGA_REG_LANG "Installer Language"
-!define EKIGA_STARTUP_RUN_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
+!define EKIGA_REG_KEY "SOFTWARE\ekiga"
+!define EKIGA_UNINST_EXE "ekiga-uninst.exe"
+!define EKIGA_UNINSTALL_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Ekiga"
+!define HKLM_APP_PATHS_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\ekiga.exe"
+!define EKIGA_REG_LANG "Installer Language"
+!define EKIGA_STARTUP_RUN_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
!define GTK_REG_KEY "SOFTWARE\GTK\2.0"
-!define GTK_DEFAULT_INSTALL_PATH "$COMMONFILES\GTK\2.0"
-!define GTK_RUNTIME_INSTALLER "gtk+-${GTK_VERSION}-setup.exe"
-!define GTK_UNINSTALLER_BIN "unins000.exe"
+!define GTK_RUNTIME_INSTALLER "gtk+-${GTK_VERSION}-setup.exe"
+!define GTK_UNINSTALLER_BIN "unins000.exe"
; ===========================
; Modern UI configuration
-!define MUI_ICON "${EKIGA_DIR}/win32/ico/ekiga.ico"
-!define MUI_UNICON "${EKIGA_DIR}/win32/ico/ekiga-uninstall.ico"
+!define MUI_ICON "${EKIGA_DIR}/win32/ico/ekiga.ico"
+!define MUI_UNICON "${EKIGA_DIR}/win32/ico/ekiga-uninstall.ico"
!define MUI_HEADERIMAGE
!define MUI_COMPONENTSPAGE_SMALLDESC
@@ -81,13 +74,14 @@ OutFile "${TARGET_DIR}/ekiga-setup-${EKIGA_VERSION}-nogtk.exe"
; Pages
!ifndef WITH_GTK
- !define MUI_PAGE_CUSTOMFUNCTION_PRE preWelcomePage
+ !define MUI_PAGE_CUSTOMFUNCTION_PRE preWelcomePage
!endif
!insertmacro MUI_PAGE_WELCOME
; Alter License section
-!define MUI_LICENSEPAGE_BUTTON $(EKIGA_LICENSE_BUTTON)
-!define MUI_LICENSEPAGE_TEXT_BOTTOM $(EKIGA_LICENSE_BOTTOM_TEXT)
+!define MUI_LICENSEPAGE_BUTTON $(EKIGA_LICENSE_BUTTON)
+!define MUI_LICENSEPAGE_TEXT_BOTTOM $(EKIGA_LICENSE_BOTTOM_TEXT)
+!insertmacro MUI_PAGE_LICENSE "${EKIGA_DIR}/LICENSE"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
@@ -602,7 +596,6 @@ FunctionEnd
!insertmacro CheckUserInstallRightsMacro ""
!insertmacro CheckUserInstallRightsMacro "un."
-
;
; Usage:
; Call DoWeNeedGtk
@@ -722,19 +715,12 @@ FunctionEnd
;--------------------------------
;Descriptions
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
- !insertmacro MUI_DESCRIPTION_TEXT ${SecEkiga} \
- $(EKIGA_SECTION_DESCRIPTION)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecEkiga} $(EKIGA_SECTION_DESCRIPTION)
!ifdef WITH_GTK
- !insertmacro MUI_DESCRIPTION_TEXT ${SecGtk} \
- $(GTK_SECTION_DESCRIPTION)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecGtk} $(GTK_SECTION_DESCRIPTION)
!endif
- !insertmacro MUI_DESCRIPTION_TEXT ${SecStartup} \
- $(EKIGA_STARTUP_SECTION_DESCRIPTION)
- !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} \
- $(EKIGA_SHORTCUTS_SECTION_DESCRIPTION)
- !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} \
- $(EKIGA_DESKTOP_SHORTCUT_DESC)
- !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenuShortcut} \
- $(EKIGA_STARTMENU_SHORTCUT_DESC)
-
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecStartup} $(EKIGA_STARTUP_SECTION_DESCRIPTION)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} $(EKIGA_SHORTCUTS_SECTION_DESCRIPTION)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopShortcut} $(EKIGA_DESKTOP_SHORTCUT_DESC)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenuShortcut} $(EKIGA_STARTMENU_SHORTCUT_DESC)
!insertmacro MUI_FUNCTION_DESCRIPTION_END
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]