From f62c8b0df4fd1b41dfa76d1e2a5963631686cdba Mon Sep 17 00:00:00 2001 From: alex-sh Date: Sat, 21 Dec 2013 13:20:03 +0000 Subject: [PATCH] Imported the latest version (2.24.10-2012-10-10) of gtk2-nsis-pack. --- .../trunk/gtk2-nsis-pack/README.txt | 4 + .../trunk/gtk2-nsis-pack/etc/gtk-2.0/gtkrc | 4 + .../gtk2-nsis-pack/etc/gtk-2.0/gtkrc.default | 4 + .../trunk/gtk2-nsis-pack/gtk-engine/info.txt | 3 + .../gtk2-nsis-pack/gtk-engine/libpixmap.dll | Bin 0 -> 53537 bytes .../trunk/gtk2-nsis-pack/gtk-runtime.ash.nsi | 949 ++++++++++++++++++ .../trunk/gtk2-nsis-pack/gtk-themes.ash.nsi | 622 ++++++++++++ gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk.ico | Bin 0 -> 22486 bytes .../trunk/gtk2-nsis-pack/license.txt | 30 + .../trunk/gtk2-nsis-pack/license_gpl.txt | 340 +++++++ .../trunk/gtk2-nsis-pack/license_jpeg.txt | 50 + .../trunk/gtk2-nsis-pack/license_lgpl.txt | 437 ++++++++ .../trunk/gtk2-nsis-pack/license_png.txt | 98 ++ .../trunk/gtk2-nsis-pack/license_themes.txt | 194 ++++ .../trunk/gtk2-nsis-pack/license_zlib.txt | 32 + .../trunk/gtk2-nsis-pack/nsi_configpage.ini | 15 + .../gtk2-nsis-pack/nsi_env_var_update.nsh | 327 ++++++ .../trunk/gtk2-nsis-pack/nsi_install.ico | Bin 0 -> 766 bytes .../trunk/gtk2-nsis-pack/nsi_pathpage.ini | 48 + .../trunk/gtk2-nsis-pack/nsi_uninstall.ico | Bin 0 -> 766 bytes 20 files changed, 3157 insertions(+) create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/README.txt create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/etc/gtk-2.0/gtkrc create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/etc/gtk-2.0/gtkrc.default create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-engine/info.txt create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-engine/libpixmap.dll create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-runtime.ash.nsi create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-themes.ash.nsi create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk.ico create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/license.txt create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_gpl.txt create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_jpeg.txt create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_lgpl.txt create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_png.txt create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_themes.txt create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_zlib.txt create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_configpage.ini create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_env_var_update.nsh create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_install.ico create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_pathpage.ini create mode 100644 gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_uninstall.ico diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/README.txt b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/README.txt new file mode 100644 index 00000000..1cd2b784 --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/README.txt @@ -0,0 +1,4 @@ +The latest version of this file can be found at +http://gtk-win.sourceforge.net +and +http://sourceforge.net/project/showfiles.php?group_id=71914 diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/etc/gtk-2.0/gtkrc b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/etc/gtk-2.0/gtkrc new file mode 100644 index 00000000..8d2a0c55 --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/etc/gtk-2.0/gtkrc @@ -0,0 +1,4 @@ +# Auto-written by gtk2-prefs. Do not edit. + +gtk-theme-name = "MS-Windows" + diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/etc/gtk-2.0/gtkrc.default b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/etc/gtk-2.0/gtkrc.default new file mode 100644 index 00000000..8d2a0c55 --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/etc/gtk-2.0/gtkrc.default @@ -0,0 +1,4 @@ +# Auto-written by gtk2-prefs. Do not edit. + +gtk-theme-name = "MS-Windows" + diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-engine/info.txt b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-engine/info.txt new file mode 100644 index 00000000..3047d59f --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-engine/info.txt @@ -0,0 +1,3 @@ +This is a dll from gtk 2.14. It is installed by themes package only if the +original third-party gtk installation didn't contain it. + diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-engine/libpixmap.dll b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-engine/libpixmap.dll new file mode 100644 index 0000000000000000000000000000000000000000..2dc0455b76bc91cff82b0a47bab1df5d24693ea7 GIT binary patch literal 53537 zcmeHw4_sWuwg25@)m7156)UmWu8Imu;_{z0KpzfW&+nYrhlIdkUBnKNhp+}ZNmdX$-pqL^_{O({wcAzg*+@9F<^;Pv^R-+8{$ zfA%jf51Pt;ad~BZLz}&&wRufz&02eHO;b~|*S^YQZ}m0V8=CA3mMpWcZLagoIq$r4 zk_71rm!g!J&Qk1edlo6{6y+f>Gpd|<<+-LAxk@FFytrp5%76_a-7UD4v3eEu9Zr~$~kp4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Bj4;6Aif&GY88hM&xROVr-E z*>vO}Hqg207;QS(+TDipU>e9|F;MtqZFik#b&apli$bH};lw--h{oce%9Xmi()Ba- z)XlKsaQI*k)5~bMkm+ec1KRMqej6`R;2dHj}Ju( zVTZW(=!uNyOQJUMsXB=QKgNN)-R=dIOO}RNkunl(jm}8bSz?o8l6-Jr;94{T{62`D zF%E9!2aFmH6lJA|KF}0o`3acfbW1&(8h$!u6g8pj#8T9eu0{m?jM1nXi5wtns1k1@ z(+DmG!^w-r(-ot|PFeHQU)@yM{B%2a4H^U;*6*J7>`%d8_}s)obXHu>TX_5RaJ}QP@C7TZQwP=bwM2IDTEY0g_ChRo!CXq@?@e4=_uGp7U1dGoGMA47ZrO1)OP`y(ePKr08anWI& zG97+gFE6k0kXjv=AMH8q5u0HY-3-K@Vk#j>N13|a*n|=#i_;h!*Wv}N8uiMD?a)~pjaT}4LD zY{stTh9)R*b6d3LM&(IGi$bS2q;bYWk|Q=mZ|JP%se@isgASfdHx!&7(yyOXjJ^SV z7@hKq4suP?S{m*!8y|H9Z@4}gOh0xvqGL>Eq63I}tE-1x`_mmR403t`c7pB4?u3|q zjU1sXdJIYMFf!C##T*E&7cFvHa#&5M(HeeJBixQ+IskWZbeAMrDmxih_r{Qt^j+tP zD@SekSy)K<0Ak2w8lbQoU^&byKl@fMOjwYTX!M-JdM#){pTfoqy@P(ZwM0hQI~`YH2gT5}lS2ei#5hEHcd1)! ze)KN}PC9^2mewC2l$c|`^*5(DELpr}a}(kKMgbD5IeHg)8tpZlt*z%LYy^~q{iL1% zh$i<=vzW0f)*coVfz>8?iH6Ioo{6$Bbn7KIVWNu$ kBnIlIwnyP&hJVRGFAVjxryr{UBVrD@(;x9ajHc%Q08S}Y`v3p{ literal 0 HcmV?d00001 diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-runtime.ash.nsi b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-runtime.ash.nsi new file mode 100644 index 00000000..dbfb9506 --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-runtime.ash.nsi @@ -0,0 +1,949 @@ + +; NSIS2 Script for GTK2-Runtime +; by Alexander Shaduri . +; Compatible with NSIS Unicode 2.45. +; Public Domain + +; The naming convention is: +; Product: GTK2-Runtime; +; Directory and package names: gtk2-runtime. +; The reason for this is that when gtk3 comes out, it +; should be installable side by side with this package. + + +!define GTK_VERSION "2.24.10" +!define GTK_BIN_VERSION "2.10.0" +!define PRODUCT_VERSION "${GTK_VERSION}-2012-10-10-ash" +!define PRODUCT_NAME "GTK2-Runtime" +!define PRODUCT_PUBLISHER "Alexander Shaduri" +!define PRODUCT_WEB_SITE "http://gtk-win.sourceforge.net" +!define INSTALLER_OUTPUT_FILE "gtk2-runtime-${PRODUCT_VERSION}.exe" + +;!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\AppMainExe.exe" +!define PRODUCT_UNINST_ROOT_KEY "HKLM" +!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" + +!define REGISTRY_APP_PATHS "Software\Microsoft\Windows\CurrentVersion\App Paths" + + +; AddToPath and friends should work with all users +!define ALL_USERS + +!include nsi_env_var_update.nsh ; EnvVar* functions +!include "FileFunc.nsh" ; GetOptions + + +; --------------- General Settings + + +; this is needed for proper start menu item manipulation (for all users) in vista +RequestExecutionLevel admin + +; This compressor gives us the best results +SetCompressor /SOLID lzma + +; Do a CRC check before installing +CRCCheck On + +; This is used in titles +Name "${PRODUCT_NAME}" ; ${PRODUCT_VERSION} + +; Output File Name +OutFile "${INSTALLER_OUTPUT_FILE}" + + +; The Default Installation Directory +InstallDir "$PROGRAMFILES\${PRODUCT_NAME}" +;InstallDir "$WINDIR" +; Detect the old installation +InstallDirRegKey HKLM "SOFTWARE\${PRODUCT_NAME}" "" +;InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" + +ShowInstDetails show +ShowUnInstDetails show + + + + + +; --------------------- MUI INTERFACE + +; MUI 2.0 compatible install +!include "MUI2.nsh" +!include "InstallOptions.nsh" + +; Icon "gtk.ico" +; UninstallIcon "gtk.ico" + +; MUI Settings +!define MUI_ABORTWARNING +;!define MUI_ICON "nsi_install.ico" +!define MUI_ICON "gtk.ico" +;!define MUI_UNICON "nsi_uninstall.ico" +!define MUI_UNICON "gtk.ico" + + +; Things that need to be extracted on first (keep these lines before any File command!) +; Only useful for BZIP2 compression +ReserveFile "nsi_pathpage.ini" +ReserveFile "nsi_configpage.ini" +ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll" + + +; Pages to show during installation +!insertmacro MUI_PAGE_WELCOME +!insertmacro MUI_PAGE_LICENSE "license.txt" +!insertmacro MUI_PAGE_COMPONENTS +Page custom PathPage PathPageExit ; Custom page +!define MUI_PAGE_CUSTOMFUNCTION_LEAVE DirectoryPageExit +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES + +;!define MUI_FINISHPAGE_RUN "$INSTDIR\gtk2-runtime\gtk2_prefs.exe" +;!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Example.file" +;!define MUI_FINISHPAGE_RUN_NOTCHECKED +!define MUI_FINISHPAGE_NOAUTOCLOSE +;!define MUI_FINISHPAGE_NOREBOOTSUPPORT +!insertmacro MUI_PAGE_FINISH + + + +; Uninstaller page +!insertmacro MUI_UNPAGE_CONFIRM +UninstPage custom un.DeleteConfig ;Custom page +!insertmacro MUI_UNPAGE_INSTFILES + + + + +Function PathPage + !insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)" + !insertmacro INSTALLOPTIONS_DISPLAY "nsi_pathpage.ini" +FunctionEnd + + +; Note: These options are unsupported unless the installer is launched in silent mode (/S). +; e.g. /setpath=no /dllpath=root /sideeffects=no +var install_option_setpath ; set PATH: yes (default), no +var install_option_dllpath ; bin (default), lib, root +var install_option_sideeffects ; yes (default), no. no = don't write to registry, PATH or start menu. +var install_option_translations ; install translations: yes, no (default) +var install_option_compatdlls ; install compatibility dlls: yes, no (default) +var install_option_removeold ; uninstall the old version first (if present): yes (default), no. + +var LIB_INSTDIR +var DLL_DIR_NAME +var DLL_TMP + + +; Executed when leaving PathPage page. +; Sets DLL_DIR_NAME to dll directory name. +Function PathPageExit + + IfSilent dllpath_silent + ; if not silent, show a page with radiobuttons + !insertmacro INSTALLOPTIONS_READ $DLL_TMP "nsi_pathpage.ini" "Field 3" "State" + StrCmp $DLL_TMP "1" goto_dll_bin + !insertmacro INSTALLOPTIONS_READ $DLL_TMP "nsi_pathpage.ini" "Field 4" "State" + StrCmp $DLL_TMP "1" goto_dll_lib + !insertmacro INSTALLOPTIONS_READ $DLL_TMP "nsi_pathpage.ini" "Field 5" "State" + StrCmp $DLL_TMP "1" goto_dll_none + goto dllpath_exit + dllpath_silent: + ; if silent, use the /dllpath= option + StrCmp $install_option_dllpath "bin" goto_dll_bin + StrCmp $install_option_dllpath "lib" goto_dll_lib + StrCmp $install_option_dllpath "root" goto_dll_none goto_dll_bin ; default to bin if not matched + dllpath_exit: + + goto_dll_none: + StrCpy $DLL_DIR_NAME "" + goto goto_dll_exit + goto_dll_lib: + StrCpy $DLL_DIR_NAME "lib" + goto goto_dll_exit + goto_dll_bin: + StrCpy $DLL_DIR_NAME "bin" + goto goto_dll_exit + goto_dll_exit: + +FunctionEnd + + +; Set $LIB_INSTDIR to \bin, \lib or \ . +; Must be after the directory selection page. +Function DirectoryPageExit + StrCpy $LIB_INSTDIR "$INSTDIR" + StrCmp $DLL_DIR_NAME "" no_dll_append + StrCpy $LIB_INSTDIR "$INSTDIR\$DLL_DIR_NAME" + no_dll_append: +FunctionEnd + + + +Function un.DeleteConfig + ; !insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)" + !insertmacro INSTALLOPTIONS_DISPLAY "nsi_configpage.ini" +FunctionEnd + + + +; Language files +!insertmacro MUI_LANGUAGE "English" + + +; --------------- END MUI + + + +;Description +LangString DESC_SecCopyUI ${LANG_ENGLISH} "GTK2 Runtime" +LangString TEXT_IO_TITLE ${LANG_ENGLISH} "GTK2 Runtime" +LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "Additional options" + + +;License page Introduction +;LicenseText "You must agree to this license before installing." +;License text +;LicenseData /LANG=${LANG_ENGLISH} "license.txt" + + + + + +; ----------------- INSTALLATION TYPES + +InstType "Recommended" ; 1 +InstType "Full" ; 2 + + +var SEC_COMPATDLLS_INSTALLED +var SEC_TRANSLATIONS_INSTALLED + + +Section "GTK+ libraries (required)" SecGTK +SectionIn 1 2 RO + SetShellVarContext all ; use all user variables as opposed to current user + SetOverwrite On + + SetOutPath "$LIB_INSTDIR" + + ; NOTE: If you add or remove any of these, + ; be sure to do the same in the uninstall section. + + File freetype6.dll ; freetype is needed for ft2 pango backend + File intl.dll ; gettext, needed by all i18n libs + File libatk-1.0-0.dll ; atk + File libcairo-2.dll ; cairo, needed by gtk + File libcairo-gobject-2.dll ; cairo. Doesn't seem to be required, but since we're distributing cairo... + File libcairo-script-interpreter-2.dll ; cairo. Doesn't seem to be required, but since we're distributing cairo... + File libexpat-1.dll ; fontconfig needs this + File libfontconfig-1.dll ; fontconfig is needed for ft2 pango backend + File libgailutil-18.dll ; from gtk + File libgdk_pixbuf-2.0-0.dll ; from gtk + File libgdk-win32-2.0-0.dll ; from gtk + File libgio-2.0-0.dll ; from glib + File libglib-2.0-0.dll ; glib + File libgmodule-2.0-0.dll ; from glib + File libgobject-2.0-0.dll ; from glib + File libgthread-2.0-0.dll ; from glib + File libgtk-win32-2.0-0.dll ; gtk + File libpango-1.0-0.dll ; pango, needed by gtk + File libpangocairo-1.0-0.dll ; pango, needed by gtk + File libpangoft2-1.0-0.dll ; pango, needed by gtk + File libpangowin32-1.0-0.dll ; pango, needed by gtk + File libpng14-14.dll ; for gdk_pixbuf loader. + File zlib1.dll ; png and many others need this + + + ; We install this into the same place as the DLLs to avoid any PATH manipulation. + SetOutPath "$LIB_INSTDIR" + File bin\fc-cache.exe + File bin\fc-list.exe + File bin\gdk-pixbuf-query-loaders.exe ; from gdk_pixbuf + File bin\gspawn-win32-helper.exe + File bin\gspawn-win32-helper-console.exe + File bin\gtk-query-immodules-2.0.exe + File bin\gtk-update-icon-cache.exe + File bin\gtk-update-icon-cache.exe.manifest + File bin\pango-querymodules.exe + + + SetOutPath "$INSTDIR" + SetOverwrite off + File /r etc ; don't overwrite config files + SetOverwrite On + + + SetOutPath "$INSTDIR\lib\gdk-pixbuf-2.0\${GTK_BIN_VERSION}" + File lib\gdk-pixbuf-2.0\${GTK_BIN_VERSION}\loaders.cache + + ; SetOutPath "$INSTDIR\lib\gdk-pixbuf-2.0\${GTK_BIN_VERSION}\loaders" + ; File /r lib\gdk-pixbuf-2.0\${GTK_BIN_VERSION}\loaders + + SetOutPath "$INSTDIR\lib\gtk-2.0\modules" + File /r lib\gtk-2.0\modules + + SetOutPath "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}" + ; no longer in gtk as of 2.14.5. + ; File /r lib\gtk-2.0\${GTK_BIN_VERSION}\immodules + ; gone as of gtk 2.16.6-2. + ; File /r lib\gtk-2.0\${GTK_BIN_VERSION}\loaders + + ; wimp + SetOutPath "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines" + File lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libwimp*.dll + ; We install this, but other installers may not have it. + File lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libpixmap*.dll + + SetOutPath "$INSTDIR\share\locale" + File share\locale\locale.alias ; from gettext + + ; Default theme + SetOutPath "$INSTDIR\share\themes" + ; Why have two dirs with the same content? disable "Default". + ; File /r share\themes\Default + File /r share\themes\Emacs + File /r share\themes\MS-Windows + File /r share\themes\Raleigh + + + SetOutPath "$INSTDIR\gtk2-runtime" + ; File gtk-postinstall.bat ; this file is generated now + File license.txt + File license_gpl.txt + File license_lgpl.txt + File license_jpeg.txt + File license_png.txt + File license_zlib.txt + File gtk.ico ; needed for "add/remove programs" + + + ; this script updates some config files, but it's unsafe + ; (gtk or pango may not work afterwards), so don't call it. + Push $INSTDIR\gtk2-runtime\gtk-postinstall.bat + Call WritePostInstall + ; update pango.modules, not working for now + ; Exec '$INSTDIR\gtk2-runtime\gtk-postinstall.bat' + +SectionEnd ; end of gtk section + + + +Section "Compatibility DLLs" SecCompatDlls +SectionIn 2 + SetShellVarContext all ; use all user variables as opposed to current user + StrCpy $SEC_COMPATDLLS_INSTALLED "1" + SetOverwrite On + + SetOutPath "$LIB_INSTDIR" + + ; NOTE: If you add or remove any of these, + ; be sure to do the same in the uninstall section. + + ; Jernej's installer contains these files in addition to the above: + ; File charset.dll ; from iconv package, for tools? + ; File iconv.exe + ; File libpng12.dll + ; File libxml2.dll + ; File xmlparse.dll ; for old? fontconfig + ; File xmltok.dll ; for old? fontconfig + + ; obsolete libs - not needed by gtk or any of its deps + ; File libimage.dll ; from libtiff-deps package, for tools? + ; File librle3.dll ; dep of libjpg tools? + + ; for compatibility only + File jpeg62.dll ; used to be in the runtime + File libjpeg-7.dll ; used to be in the runtime. also libtiff needs this. + File libtiff3.dll ; used to be in the runtime + File libtiff-3.dll ; used to be in the runtime + File libpng12.dll ; used to be in the runtime + File libpng12-0.dll ; used to be in the runtime + ; iconv was needed by intl (?) and glib, but they don't need it anymore + ; (as of glib 2.12.5). It's also used by libxml2, and packages + ; (e.g. pidgin) expect it to be in gtk installer because it used + ; to be with glib. we use mini (but compatible) version here. + File iconv.dll ; compatibility (see above) + +SectionEnd + + + +Section "Translations" SecTranslations +SectionIn 2 + SetShellVarContext all ; use all user variables as opposed to current user + StrCpy $SEC_TRANSLATIONS_INSTALLED "1" + SetOutPath "$INSTDIR" + SetOverwrite On + + ; SetOutPath "$INSTDIR\lib" + ; File /r lib\locale + + ; gtk (beginning with 2.12.3) uses share\locale + SetOutPath "$INSTDIR\share" + File /r share\locale + +SectionEnd + + + +; Section descriptions +!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN + !insertmacro MUI_DESCRIPTION_TEXT ${SecGTK} "GTK+ Runtime Libraries" + !insertmacro MUI_DESCRIPTION_TEXT ${SecCompatDlls} "DLLs for compatibility with older or incorrectly packaged programs" + !insertmacro MUI_DESCRIPTION_TEXT ${SecTranslations} "Additional translations (some are incomplete)" +!insertmacro MUI_FUNCTION_DESCRIPTION_END + + + + +; Executed on installer run +Function .onInit + SetShellVarContext all ; use all user variables as opposed to current user + + !insertmacro INSTALLOPTIONS_EXTRACT "nsi_pathpage.ini" + + StrCpy $SEC_COMPATDLLS_INSTALLED "0" ; set to 1 in appropriate section + StrCpy $SEC_TRANSLATIONS_INSTALLED "0" ; set to 1 in appropriate section + + ${GetOptions} "$CMDLINE" "/setpath=" $install_option_setpath + ${GetOptions} "$CMDLINE" "/dllpath=" $install_option_dllpath + ${GetOptions} "$CMDLINE" "/sideeffects=" $install_option_sideeffects + ${GetOptions} "$CMDLINE" "/translations=" $install_option_translations + ${GetOptions} "$CMDLINE" "/compatdlls=" $install_option_compatdlls + ${GetOptions} "$CMDLINE" "/removeold=" $install_option_removeold + + ; Debug stuff + ; MessageBox MB_ICONINFORMATION|MB_OK "/setpath=$install_option_setpath \ + ; /dllpath=$install_option_dllpath /sideeffects=$install_option_sideeffects \ + ; INSTDIR: $INSTDIR" /SD IDOK + + ; if we're using /sideeffects=no, set /setpath=no, because we can't + ; revert it during uninstall (there's no dllpath in registry). + StrCmp $install_option_sideeffects "no" "" init_sideeffects + StrCpy $install_option_setpath "no" ; set /setpath=no + goto init_sideeffects_exit + init_sideeffects: + Call PreventMultipleInstances ; in no-sideeffects mode this has no purpose + Call DetectPrevInstallation ; we don't want local installations to interfere with global ones. + init_sideeffects_exit: + + + ; enable compat dlls if requested through command line + StrCmp $install_option_compatdlls "yes" "" no_compatdlls + push $R0 + SectionGetFlags ${SecCompatDlls} $R0 + IntOp $R0 $R0 | ${SF_SELECTED} + SectionSetFlags ${SecCompatDlls} $R0 + pop $R0 + no_compatdlls: + + ; enable translations if requested through command line + StrCmp $install_option_translations "yes" "" no_translations + push $R0 + SectionGetFlags ${SecTranslations} $R0 + IntOp $R0 $R0 | ${SF_SELECTED} + SectionSetFlags ${SecTranslations} $R0 + pop $R0 + no_translations: + + ; Page callbacks are not called if in silent mode, so call these manually + IfSilent "" +3 + Call PathPageExit + Call DirectoryPageExit + +FunctionEnd + + + +; ------------------ POST INSTALL + + +var ADD_TO_PATH + + +Section -post + SetShellVarContext all ; use all user variables as opposed to current user + + IfSilent PATH_silent + ; Read a value from an InstallOptions INI File + !insertmacro INSTALLOPTIONS_READ $ADD_TO_PATH "nsi_pathpage.ini" "Field 1" "State" + StrCmp $ADD_TO_PATH "1" goto_set_path_yes goto_set_path_no + goto PATH_exit + PATH_silent: + ; if silent, use the /setpath= option + StrCmp $install_option_setpath "no" goto_set_path_no goto_set_path_yes + PATH_exit: + + + goto_set_path_yes: + ; The user requested to add the libdir to $PATH. + StrCpy $ADD_TO_PATH "1" + ; Push $LIB_INSTDIR + ; Call AddToPath ; add $LIB_INSTDIR to system $PATH + Push $0 ; result PATH + ${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$LIB_INSTDIR" ; Append + Pop $0 + ; MessageBox MB_ICONINFORMATION|MB_OK "$LIB_INSTDIR added to path" + goto goto_set_path_exit + goto_set_path_no: + StrCpy $ADD_TO_PATH "0" + goto goto_set_path_exit + goto_set_path_exit: + + + ; write out uninstaller + WriteUninstaller "$INSTDIR\gtk2_runtime_uninst.exe" + + StrCmp $install_option_sideeffects "no" no_sideeffects + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "InstallationDirectory" "$INSTDIR" + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "DllPath" "$LIB_INSTDIR" + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "Vendor" "${PRODUCT_PUBLISHER}" + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "PackageVersion" "${PRODUCT_VERSION}" + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "Version" "${GTK_VERSION}" + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "BinVersion" "${GTK_BIN_VERSION}" + + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "DllDirName" "$DLL_DIR_NAME" ; lib, bin, or "" + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "UsingSystemPath" $ADD_TO_PATH + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "CompatDllsInstalled" $SEC_COMPATDLLS_INSTALLED + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "TranslationsInstalled" $SEC_TRANSLATIONS_INSTALLED + + ; compat with installer from http://gimp-win.sourceforge.net/ + WriteRegStr HKLM "SOFTWARE\GTK\2.0" "Path" "$INSTDIR" + WriteRegStr HKLM "SOFTWARE\GTK\2.0" "Version" "${GTK_VERSION}" + ; compat with Dropline's GTK + WriteRegStr HKLM "SOFTWARE\GTK\2.0" "DllPath" "$LIB_INSTDIR" + + ; Information for the uninstall component in "add/remove programs" + WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayName" "${PRODUCT_NAME}" + WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\gtk2_runtime_uninst.exe" + WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "InstallLocation" "$INSTDIR" + WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" + WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\gtk2-runtime\gtk.ico" + WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" + WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" + WriteRegDWORD HKLM "${PRODUCT_UNINST_KEY}" "NoModify" 1 + WriteRegDWORD HKLM "${PRODUCT_UNINST_KEY}" "NoRepair" 1 + + ; uninstall shortcut + CreateDirectory "$SMPROGRAMS\GTK2 Runtime" + CreateShortCut "$SMPROGRAMS\GTK2 Runtime\Uninstall GTK2 Runtime.lnk" "$INSTDIR\gtk2_runtime_uninst.exe" "" "" + WriteIniStr "$SMPROGRAMS\GTK2 Runtime\Go to the website.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" + + + ; Write $INSTDIR\gtk2-runtime\gtk2r-env.bat + ; This script sets the GTK environment variables + DetailPrint "Generating $INSTDIR\gtk2-runtime\gtk2r-env.bat" + Push $INSTDIR\gtk2-runtime\gtk2r-env.bat + Call WriteEnvBat + DetailPrint "Done" + + no_sideeffects: + +SectionEnd ; post + + + + + +; ---------------- UNINSTALL + + +; Note: These options are unsupported unless the uninstaller is launched in silent mode (/S). +var uninstall_option_remove_config ; yes, no (default). +var uninstall_option_sideeffects ; yes (default), no. Use if it was installed with this option. +; These are used only if /sideffects=no : +var uninstall_option_dllpath ; uninstall dlls from: bin (default), lib, root. +var uninstall_option_translations ; uninstall translations: yes, no (default) +var uninstall_option_compatdlls ; uninstall compatibility dlls: yes, no (default) + + +Function un.onInit + ${GetOptions} "$CMDLINE" "/remove_config=" $uninstall_option_remove_config + ${GetOptions} "$CMDLINE" "/sideeffects=" $uninstall_option_sideeffects + ${GetOptions} "$CMDLINE" "/dllpath=" $uninstall_option_dllpath + ${GetOptions} "$CMDLINE" "/translations=" $uninstall_option_translations + ${GetOptions} "$CMDLINE" "/compatdlls=" $uninstall_option_compatdlls +FunctionEnd + + + +Function un.onUninstSuccess + HideWindow + MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer." /SD IDOK +FunctionEnd + + + + +var leave_config ; don't remove global gtk config (uninstall page option) +;var INST_DIR_REG ; installation dir from registry (uninstall stage) + + +; This is a separate function to allow multiple calls to it +Function un.DeleteDlls + SetShellVarContext all ; use all user variables as opposed to current user + + StrCpy $LIB_INSTDIR "$INSTDIR" + StrCmp $DLL_DIR_NAME "" un_no_dll_append + StrCpy $LIB_INSTDIR "$INSTDIR\$DLL_DIR_NAME" + un_no_dll_append: + + ; bin stuff (they are in the same directory) + Delete $LIB_INSTDIR\fc-cache.exe + Delete $LIB_INSTDIR\fc-list.exe + Delete $LIB_INSTDIR\gdk-pixbuf-query-loaders.exe + Delete $LIB_INSTDIR\gspawn-win32-helper.exe + Delete $LIB_INSTDIR\gspawn-win32-helper-console.exe + Delete $LIB_INSTDIR\gtk-query-immodules-2.0.exe + Delete $LIB_INSTDIR\gtk-update-icon-cache.exe + Delete $LIB_INSTDIR\gtk-update-icon-cache.exe.manifest + Delete $LIB_INSTDIR\pango-querymodules.exe + + ; dlls + Delete $LIB_INSTDIR\freetype6.dll ; freetype is needed for ft2 pango backend + Delete $LIB_INSTDIR\intl.dll ; gettext, needed by all i18n libs + Delete $LIB_INSTDIR\libatk-1.0-0.dll ; atk + Delete $LIB_INSTDIR\libcairo-2.dll ; cairo, needed by gtk + Delete $LIB_INSTDIR\libcairo-gobject-2.dll ; cairo. Doesn't seem to be required, but since we're distributing cairo... + Delete $LIB_INSTDIR\libcairo-script-interpreter-2.dll ; cairo. Doesn't seem to be required, but since we're distributing cairo... + Delete $LIB_INSTDIR\libexpat-1.dll ; fontconfig needs this + Delete $LIB_INSTDIR\libfontconfig-1.dll ; fontconfig is needed for ft2 pango backend + Delete $LIB_INSTDIR\libgailutil-18.dll ; from gtk + Delete $LIB_INSTDIR\libgdk_pixbuf-2.0-0.dll ; from gtk + Delete $LIB_INSTDIR\libgdk-win32-2.0-0.dll ; from gtk + Delete $LIB_INSTDIR\libgio-2.0-0.dll ; from glib + Delete $LIB_INSTDIR\libglib-2.0-0.dll ; glib + Delete $LIB_INSTDIR\libgmodule-2.0-0.dll ; from glib + Delete $LIB_INSTDIR\libgobject-2.0-0.dll ; from glib + Delete $LIB_INSTDIR\libgthread-2.0-0.dll ; from glib + Delete $LIB_INSTDIR\libgtk-win32-2.0-0.dll ; gtk + Delete $LIB_INSTDIR\libpango-1.0-0.dll ; pango, needed by gtk + Delete $LIB_INSTDIR\libpangocairo-1.0-0.dll ; pango, needed by gtk + Delete $LIB_INSTDIR\libpangoft2-1.0-0.dll ; pango, needed by gtk + Delete $LIB_INSTDIR\libpangowin32-1.0-0.dll ; pango, needed by gtk + Delete $LIB_INSTDIR\libpng14-14.dll ; for gdk_pixbuf loader. + Delete $LIB_INSTDIR\zlib1.dll ; png and many others need this + + StrCmp $SEC_COMPATDLLS_INSTALLED "1" "" un_nocompatdlls + Delete $LIB_INSTDIR\jpeg62.dll ; used to be in the runtime + Delete $LIB_INSTDIR\libjpeg-7.dll ; used to be in the runtime. also libtiff needs this. + Delete $LIB_INSTDIR\libtiff3.dll ; used to be in the runtime + Delete $LIB_INSTDIR\libtiff-3.dll ; used to be in the runtime + Delete $LIB_INSTDIR\libpng12.dll ; used to be in the runtime + Delete $LIB_INSTDIR\libpng12-0.dll ; used to be in the runtime + Delete $LIB_INSTDIR\iconv.dll ; compatibility + un_nocompatdlls: + +FunctionEnd + + + +var found_dir +var find_handle_lang_dir + + +Section Uninstall + SetShellVarContext all ; use all user variables as opposed to current user + SetAutoClose false + + ; Note: Checking if there is a registry key present, and using it to determine + ; if this is a private installation will not work, as it will break if a parallel + ; shared installation is present. + + ; ReadRegStr $INST_DIR_REG HKLM "SOFTWARE\${PRODUCT_NAME}" "InstallationDirectory" + ; StrCmp $INST_DIR_REG "" uninst_no_sideeffects + StrCmp $uninstall_option_sideeffects "no" uninst_no_sideeffects + ; For PATH removal + ReadRegStr $LIB_INSTDIR HKLM "SOFTWARE\${PRODUCT_NAME}" "DllPath" + ReadRegStr $DLL_DIR_NAME HKLM "SOFTWARE\${PRODUCT_NAME}" "DllDirName" + ReadRegStr $ADD_TO_PATH HKLM "SOFTWARE\${PRODUCT_NAME}" "UsingSystemPath" + ReadRegStr $SEC_COMPATDLLS_INSTALLED HKLM "SOFTWARE\${PRODUCT_NAME}" "CompatDllsInstalled" + ReadRegStr $SEC_TRANSLATIONS_INSTALLED HKLM "SOFTWARE\${PRODUCT_NAME}" "TranslationsInstalled" + + DeleteRegKey HKLM "SOFTWARE\GTK\2.0" ; dropline, etc... + DeleteRegKey /ifempty HKLM "SOFTWARE\GTK" ; don't damage other installations + + DeleteRegKey HKLM "SOFTWARE\${PRODUCT_NAME}" + DeleteRegKey HKLM "${PRODUCT_UNINST_KEY}" + + ; FIXME: Do we have this registry key? + ; DeleteRegKey HKCU "Software\${PRODUCT_NAME}" + + Delete "$SMPROGRAMS\GTK2 Runtime\Uninstall GTK2 Runtime.lnk" + Delete "$SMPROGRAMS\GTK2 Runtime\Go to the website.url" + RMDir "$SMPROGRAMS\GTK2 Runtime" ; only if empty, theme selector may still be there + + ; Remove GTK from $PATH + StrCmp $ADD_TO_PATH "0" un_nopath ; Setting $PATH was not requested during installation + ; Push $LIB_INSTDIR + ; Call un.RemoveFromPath + Push $0 ; result PATH + ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$LIB_INSTDIR" ; remove + Pop $0 + ; MessageBox MB_OK "$LIB_INSTDIR removed from PATH" /SD IDOK + un_nopath: + + ; $DLL_DIR_NAME is from the registry here + Call un.DeleteDlls + + goto delete_dlls_exit + + + uninst_no_sideeffects: + + Strcpy $SEC_COMPATDLLS_INSTALLED "0" + StrCmp $uninstall_option_compatdlls "yes" "" nodelete_compatdlls + Strcpy $SEC_COMPATDLLS_INSTALLED "1" + nodelete_compatdlls: + + Strcpy $SEC_TRANSLATIONS_INSTALLED "0" + StrCmp $uninstall_option_translations "yes" "" nodelete_translations + Strcpy $SEC_TRANSLATIONS_INSTALLED "1" + nodelete_translations: + + + ; All dll files. We delete them before /bin and /lib, so that + ; the directories are empty afterwards. + + ; Since we have no registry, we have to remove dlls from all possible locations + ; StrCpy $DLL_DIR_NAME "" + ; Call un.DeleteDlls + ; StrCpy $DLL_DIR_NAME "bin" + ; Call un.DeleteDlls + ; StrCpy $DLL_DIR_NAME "lib" + ; Call un.DeleteDlls + + ; Force users to use the command-line argument instead: + ; if silent, use the /dllpath= option + StrCmp $uninstall_option_dllpath "bin" goto_undll_bin + StrCmp $uninstall_option_dllpath "lib" goto_undll_lib + StrCmp $uninstall_option_dllpath "root" goto_undll_none goto_undll_bin ; default to bin if not matched + + goto_undll_none: + StrCpy $DLL_DIR_NAME "" + goto goto_undll_exit + goto_undll_lib: + StrCpy $DLL_DIR_NAME "lib" + goto goto_undll_exit + goto_undll_bin: + StrCpy $DLL_DIR_NAME "bin" + goto goto_undll_exit + + goto_undll_exit: + Call un.DeleteDlls + + delete_dlls_exit: + + + ; Delete config file? + IfSilent "" read_config_page + StrCmp $uninstall_option_remove_config "yes" delete_config skip_config + + read_config_page: + !insertmacro INSTALLOPTIONS_READ $leave_config "nsi_configpage.ini" "Field 1" "State" + StrCmp $leave_config "1" skip_config + + delete_config: + Delete "$INSTDIR\etc\gtk-2.0\gtkrc" + skip_config: + + + Delete "$INSTDIR\etc\fonts\fonts.conf" + RMDir "$INSTDIR\etc\fonts" ; only if empty + Delete "$INSTDIR\etc\pango\pango.modules" + RMDir "$INSTDIR\etc\pango" ; only if empty + ; Delete "$INSTDIR\etc\gtk-2.0\gdk-pixbuf.loaders" + Delete "$INSTDIR\etc\gtk-2.0\gtk.immodules" + Delete "$INSTDIR\etc\gtk-2.0\gtkrc.default" + Delete "$INSTDIR\etc\gtk-2.0\im-multipress.conf" + RMDir "$INSTDIR\etc\gtk-2.0" ; only if empty + RMDir "$INSTDIR\etc" ; only if empty + + ; some helper files here + RMDir /r "$INSTDIR\gtk2-runtime" + + RMDir "$INSTDIR\bin" ; only if empty + + ; RMDir /r "$INSTDIR\lib" + ; pango modules are gone as of gtk 2.10 + ; RMDir /r "$INSTDIR\lib\pango" + + Delete "$INSTDIR\lib\gdk-pixbuf-2.0\${GTK_BIN_VERSION}\loaders.cache" + ; RMDir "$INSTDIR\lib\gdk-pixbuf-2.0\${GTK_BIN_VERSION}\loaders" ; not forced + RMDir "$INSTDIR\lib\gdk-pixbuf-2.0\${GTK_BIN_VERSION}" ; not forced + RMDir "$INSTDIR\lib\gdk-pixbuf-2.0" ; not forced + + + RMDir /r "$INSTDIR\lib\gtk-2.0\modules" + + ; no longer in gtk as of 2.14.5 + ; RMDir /r "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\immodules" + ; gone as of gtk 2.16.6-2 + ;RMDir /r "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\loaders" + + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libwimp*.dll" + ; there should be no problem deleting this + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libpixmap*.dll" + + RMDir "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines" ; not forced + RMDir "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}" ; not forced + RMDir "$INSTDIR\lib\gtk-2.0" ; not forced + + RMDir "$INSTDIR\lib" ; not forced + + Delete "$INSTDIR\share\locale\locale.alias" ; gettext + + ; Remove our translations only + StrCmp $SEC_TRANSLATIONS_INSTALLED "1" "" un_notranslations + FindFirst $find_handle_lang_dir $found_dir "$INSTDIR\share\locale\*" + find_lang_dir_next: + ; DetailPrint "LOC: $found_dir" + StrCmp $found_dir "" find_lang_dir_done + ; check if it's a directory + IfFileExists "$INSTDIR\share\locale\$found_dir\*.*" "" find_lang_dir_continue + IfFileExists "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\*.*" "" find_lang_dir_continue + + Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\atk10.mo" + Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gdk-pixbuf.mo" + Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\glib20.mo" + Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gtk20.mo" + Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gtk20-properties.mo" + + RmDir "$INSTDIR\share\locale\$found_dir\LC_MESSAGES" ; only if empty + RmDir "$INSTDIR\share\locale\$found_dir" + + find_lang_dir_continue: + FindNext $find_handle_lang_dir $found_dir + goto find_lang_dir_next + find_lang_dir_done: + FindClose $find_handle_lang_dir + + RMDir "$INSTDIR\share\locale" ; only if empty, not to remove the other programs' translations + un_notranslations: + + + RMDir /r "$INSTDIR\share\themes\Raleigh" + RMDir /r "$INSTDIR\share\themes\MS-Windows" + RMDir /r "$INSTDIR\share\themes\Emacs" + + RMDir "$INSTDIR\share\themes" ; not forced + RMDir "$INSTDIR\share" ; not forced + + Delete "$INSTDIR\gtk2_runtime_uninst.exe" + + RMDir "$INSTDIR" ; delete only if empty + +SectionEnd ; end of uninstall section + + + + + + +; --------------- Helpers + + +; WriteEnvBat +Function WriteEnvBat + Pop $R0 ; Output file + Push $R9 + FileOpen $R9 $R0 w + FileWrite $R9 "@set GTK2R_PREFIX=$LIB_INSTDIR$\r$\n" + FileWrite $R9 "$\r$\n" + FileWrite $R9 "@echo Setting environment variables for GTK2-Runtime.$\r$\n" + FileWrite $R9 "@echo.$\r$\n" + FileWrite $R9 "$\r$\n" + FileWrite $R9 "@echo set PATH=%GTK2R_PREFIX%;%%PATH%%$\r$\n" + FileWrite $R9 "@set PATH=%GTK2R_PREFIX%;%PATH%$\r$\n" + FileWrite $R9 "$\r$\n" + FileWrite $R9 "@echo.$\r$\n" + FileClose $R9 + Pop $R9 +FunctionEnd + + + +; WritePostInstall +Function WritePostInstall + SetShellVarContext all ; use all user variables as opposed to current user + Pop $R0 ; Output file + Push $R9 + FileOpen $R9 $R0 w + FileWrite $R9 "@echo off$\r$\n" + FileWrite $R9 "$\"$INSTDIR\bin\pango-querymodules.exe$\" > $\"$INSTDIR\etc\pango\pango.modules$\"$\r$\n" + FileWrite $R9 "rem $\"$INSTDIR\bin\gdk-pixbuf-query-loaders.exe$\" > $\"$INSTDIR\etc\gtk-2.0\gdk-pixbuf.loaders$\"$\r$\n" + FileWrite $R9 "$\"$INSTDIR\bin\gtk-query-immodules-2.0.exe$\" > $\"$INSTDIR\etc\gtk-2.0\gtk.immodules$\"$\r$\n" + FileWrite $R9 "rem $\"$INSTDIR\bin\gtk-update-icon-cache.exe$\"$\r$\n" + FileClose $R9 + Pop $R9 +FunctionEnd + + + + +; Detect previous installation +Function DetectPrevInstallation + ; if /removeold=no option is given, don't check anything. + StrCmp $install_option_removeold "no" old_detect_done + + SetShellVarContext all ; use all user variables as opposed to current user + push $R0 + + ; detect previous installation + ReadRegStr $R0 HKLM "${PRODUCT_UNINST_KEY}" "UninstallString" + StrCmp $R0 "" old_detect_done + + MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \ + "${PRODUCT_NAME} is already installed. $\n$\nClick `OK` to remove the \ + previous version or `Cancel` to continue anyway." \ + /SD IDOK IDOK old_uninst + ; Abort + goto old_detect_done + + ; Run the old uninstaller + old_uninst: + ClearErrors + IfSilent old_silent_uninst old_nosilent_uninst + + old_nosilent_uninst: + ExecWait '$R0' + goto old_uninst_continue + + old_silent_uninst: + ; We assume it's an NSIS-generated uninstaller. + ExecWait '$R0 /S _?=$INSTDIR' + + old_uninst_continue: + + IfErrors old_no_remove_uninstaller + + ; You can either use Delete /REBOOTOK in the uninstaller or add some code + ; here to remove to remove the uninstaller. Use a registry key to check + ; whether the user has chosen to uninstall. If you are using an uninstaller + ; components page, make sure all sections are uninstalled. + old_no_remove_uninstaller: + + old_detect_done: ; old installation not found, all ok + + pop $R0 +FunctionEnd + + + +; Prevent running multiple instances of the installer +Function PreventMultipleInstances + Push $R0 + System::Call 'kernel32::CreateMutexA(i 0, i 0, t ${PRODUCT_NAME}) ?e' + Pop $R0 + StrCmp $R0 0 +3 + MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running." /SD IDOK + Abort + Pop $R0 +FunctionEnd + + + + +; eof \ No newline at end of file diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-themes.ash.nsi b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-themes.ash.nsi new file mode 100644 index 00000000..7c81e89c --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-themes.ash.nsi @@ -0,0 +1,622 @@ + +; NSIS2 Script for GTK2-Themes +; by Alexander Shaduri +; Compatible with NSIS 2.40 + + +!define PRODUCT_VERSION "2009-09-07-ash" +!define GTK_BIN_VERSION "2.10.0" +!define PRODUCT_NAME "GTK2-Themes" +!define PRODUCT_PUBLISHER "Alexander Shaduri" +!define PRODUCT_WEB_SITE "http://gtk-win.sourceforge.net" + +;!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\AppMainExe.exe" +!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" +!define PRODUCT_UNINST_ROOT_KEY "HKLM" + +!define REGISTRY_APP_PATHS "Software\Microsoft\Windows\CurrentVersion\App Paths" + + + + +; --------------- General Settings + + +; This compressor gives us the best results +SetCompressor /SOLID lzma + +; Do a CRC check before installing +CRCCheck On + +; This is used in titles +Name "${PRODUCT_NAME}" ; ${PRODUCT_VERSION} + +; Output File Name +OutFile "gtk2-themes-${PRODUCT_VERSION}.exe" + + + +;The Default Installation Directory +; try to install to the same directory as runtime. +; InstallDir "$PROGRAMFILES\GTK2-Runtime\" +InstallDir "$COMMONFILES\GTK\2.0\" ; gimp-installer gtk runtime compat. +; If our installer is present, install there +InstallDirRegKey HKLM "Software\GTK2-Runtime" "InstallationDirectory" + + +ShowInstDetails show +ShowUnInstDetails show + + + + + +; --------------------- MUI INTERFACE + +; MUI 2.0 compatible install +!include "MUI2.nsh" + +;Backgound Colors. uncomment to enable fullscreen. +; BGGradient 0000FF 000000 FFFFFF + +; MUI Settings +!define MUI_ABORTWARNING +!define MUI_ICON "nsi_install.ico" +!define MUI_UNICON "nsi_uninstall.ico" + + +;Things that need to be extracted on first (keep these lines before any File command!) +;Only useful for BZIP2 compression +!insertmacro MUI_RESERVEFILE_LANGDLL +; !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS + + +; Language Selection Dialog Settings +!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" +!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" +!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" + + +; Pages to show during installation +!insertmacro MUI_PAGE_WELCOME +!insertmacro MUI_PAGE_LICENSE "license_themes.txt" +!insertmacro MUI_PAGE_COMPONENTS +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES + +;!define MUI_FINISHPAGE_RUN "$INSTDIR\gtk2-runtime\gtk2_prefs.exe" +;!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Example.file" +;!define MUI_FINISHPAGE_RUN_NOTCHECKED +!define MUI_FINISHPAGE_NOAUTOCLOSE +!define MUI_FINISHPAGE_NOREBOOTSUPPORT +!insertmacro MUI_PAGE_FINISH + + + +; Uninstaller page +!insertmacro MUI_UNPAGE_CONFIRM +!insertmacro MUI_UNPAGE_INSTFILES + + + +; Language files +!insertmacro MUI_LANGUAGE "English" +!insertmacro MUI_LANGUAGE "Russian" + + +; --------------- END MUI + + +;Description +LangString DESC_SecCopyUI ${LANG_ENGLISH} "GTK2 Themes" +LangString DESC_SecCopyUI ${LANG_RUSSIAN} "GTK2 Themes" + +LangString TEXT_IO_TITLE ${LANG_ENGLISH} "GTK2 Themes" +LangString TEXT_IO_TITLE ${LANG_RUSSIAN} "GTK2 Themes" + +LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "Additional options" +LangString TEXT_IO_SUBTITLE ${LANG_RUSSIAN} "Additional options" + + + + + + + + +; --------------- START INSTALLATION + + +Function .onInit + + !insertmacro MUI_LANGDLL_DISPLAY + + Call PreventMultipleInstances + + Push 2 ;F ;22 = number of languages, F = change font + + ;Language selection + LangDLL::LangDialog "Installer Language" "Please select a language." + + Pop $LANGUAGE + StrCmp $LANGUAGE "cancel" 0 +2 + Abort + + + ; detect previous installation + ReadRegStr $R0 HKLM "${PRODUCT_UNINST_KEY}" "UninstallString" + StrCmp $R0 "" done + + MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \ + "${PRODUCT_NAME} is already installed. $\n$\nClick `OK` to remove the \ + previous version or `Cancel` to continue anyway." \ + /SD IDOK IDOK uninst + ; Abort + goto done + + ;Run the uninstaller + uninst: + ClearErrors + ExecWait '$R0 _?=$INSTDIR' ;Do not copy the uninstaller to a temp file + + IfErrors no_remove_uninstaller + + ;You can either use Delete /REBOOTOK in the uninstaller or add some code + ;here to remove to remove the uninstaller. Use a registry key to check + ;whether the user has chosen to uninstall. If you are using an uninstaller + ;components page, make sure all sections are uninstalled. + no_remove_uninstaller: + + done: + ; old installation not found + + +FunctionEnd + + + + +; ----------------- INSTALLATINO TYPES + +; InstType "Recommended" +InstType "Full" +;InstType "Minimal" + + + + + + +Section "Themes" SecThemes +SectionIn 1 + SetOutPath "$INSTDIR" + SetOverwrite On + + SetOutPath "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines" +; File /r lib\gtk-2.0\${GTK_BIN_VERSION}\engines + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libanachron.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libaurora.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libbluecurve.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libblueprint.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libcandido.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libcleanice.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libclearlooks.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libcrux-engine.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libdyndyn.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libexcelsior.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libgflat.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libglide.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libhcengine.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libindustrial.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\liblighthouseblue.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libmetal.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libmgicchikn.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libmist.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libmurrine.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libnimbus.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libnodoka.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libredmond95.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\librezlooks.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libsmooth.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libthinice.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libubuntulooks.dll" + File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libxfce.dll" + + + ; this file is optional. it may be installed by gtk runtime, or may be not. + SetOverwrite Off + ; gtk 2.14-bundled: + File "gtk-engine\libpixmap.dll" + ; gtk-bundled: +; File "lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libpixmap.dll" + SetOverwrite On + + + SetOutPath "$INSTDIR\share\themes" +; File /r share\themes + +File /r "share\themes\Amaranth" +File /r "share\themes\AnachronAna" +File /r "share\themes\Aurora" +File /r "share\themes\Bluecurve" +File /r "share\themes\Bluecurve-BerriesAndCream" +File /r "share\themes\Bluecurve-Gnome" +File /r "share\themes\Bluecurve-Grape" +File /r "share\themes\Bluecurve-Lime" +File /r "share\themes\Bluecurve-Slate" +File /r "share\themes\Bluecurve-Strawberry" +File /r "share\themes\Bluecurve-Tangerine" +File /r "share\themes\Blueprint" +File /r "share\themes\Blueprint-Green" +File /r "share\themes\Blueprint-Ice" +File /r "share\themes\Blueprint-Sand" +File /r "share\themes\Blueprint-no-color" +File /r "share\themes\Candido-Calm" +File /r "share\themes\Candido-Candy" +File /r "share\themes\Candido-DarkOrange" +File /r "share\themes\Candido-Hybrid" +File /r "share\themes\Candido-NeoGraphite" +File /r "share\themes\CleanIce" +File /r "share\themes\CleanIce-Dark" +File /r "share\themes\CleanIce-Debian" +File /r "share\themes\Clearlooks" +File /r "share\themes\ClearlooksClassic" +File /r "share\themes\ClearlooksTest" +File /r "share\themes\Crux" +File /r "share\themes\Darklooks" +File /r "share\themes\Delightfully-Smooth" +File /r "share\themes\DyndynBlueGray" +File /r "share\themes\DyndynPinkGray" +File /r "share\themes\G26" +File /r "share\themes\Glider" +File /r "share\themes\Glossy" +File /r "share\themes\Gorilla" +File /r "share\themes\HighContrast" +File /r "share\themes\HighContrastInverse" +File /r "share\themes\HighContrastLargePrint" +File /r "share\themes\HighContrastLargePrintInverse" +File /r "share\themes\Human" +File /r "share\themes\Industrial" +File /r "share\themes\Inverted" +File /r "share\themes\LargePrint" +File /r "share\themes\LighthouseBlue" +File /r "share\themes\LowContrast" +File /r "share\themes\LowContrastLargePrint" +File /r "share\themes\Lush" +File /r "share\themes\Metal" +File /r "share\themes\Mist" +File /r "share\themes\MurrinaAquaIsh" +File /r "share\themes\MurrinaAzul" +File /r "share\themes\MurrinaBleu" +File /r "share\themes\MurrinaBlue" +File /r "share\themes\MurrinaCandido" +File /r "share\themes\MurrinaCandy" +File /r "share\themes\MurrinaCappuccino" +File /r "share\themes\MurrinaChrome" +File /r "share\themes\MurrinaCream" +File /r "share\themes\MurrinaEalm" +File /r "share\themes\MurrinaFancyCandy" +File /r "share\themes\MurrinaGilouche" +File /r "share\themes\MurrinaLoveGray" +File /r "share\themes\MurrinaNeoGraphite" +File /r "share\themes\MurrinaVerdeOlivo" +File /r "share\themes\Nimbus" +File /r "share\themes\Nimbus-Dark" +File /r "share\themes\Nimbus-Light" +File /r "share\themes\Nodoka" +File /r "share\themes\Nodoka-Aqua" +File /r "share\themes\Nodoka-Gilouche" +File /r "share\themes\Nodoka-Looks" +File /r "share\themes\Nodoka-Midnight" +File /r "share\themes\Nodoka-Rounded" +File /r "share\themes\Nodoka-Silver" +File /r "share\themes\Nodoka-Squared" +File /r "share\themes\Nuvola" +File /r "share\themes\Redmond" +File /r "share\themes\Rezlooks-Gilouche" +File /r "share\themes\Rezlooks-Snow" +File /r "share\themes\Rezlooks-candy" +File /r "share\themes\Rezlooks-dark" +File /r "share\themes\Rezlooks-graphite" +File /r "share\themes\Simple" +File /r "share\themes\Smooth-Funky-Monkey" +File /r "share\themes\Smooth-Line" +File /r "share\themes\Smooth-Okayish" +File /r "share\themes\Smooth-Sea-Ice" +File /r "share\themes\Smooth-Tangerine-Dream" +File /r "share\themes\Smooth-Winter" +File /r "share\themes\ThinIce" +File /r "share\themes\Unity" +File /r "share\themes\Wasp" +File /r "share\themes\Xcl-aqua" +File /r "share\themes\Xcl-aqua-dark" +File /r "share\themes\Xcl-bubblegum" +File /r "share\themes\Xcl-bubblegum-dark" +File /r "share\themes\Xcl-clarius" +File /r "share\themes\Xcl-clarius-dark" +File /r "share\themes\Xcl-flat" +File /r "share\themes\Xcl-flat-dark" +File /r "share\themes\Xcl-inverted" +File /r "share\themes\Xcl-inverted-dark" +File /r "share\themes\Xfce" +File /r "share\themes\Xfce-4.0" +File /r "share\themes\Xfce-4.2" +File /r "share\themes\Xfce-4.4" + +SectionEnd + + + + +Section "GTK2 Preference Utility" SecGtkPrefs +SectionIn 1 + + SetOverwrite On + SetOutPath "$INSTDIR" + + File gtk2_prefs.exe + File gtk.ico + + + ; set a special path for this exe, as GTK may not be in a global path. + ReadRegStr $R3 HKLM "SOFTWARE\GTK\2.0" "DllPath" + WriteRegStr HKLM "${REGISTRY_APP_PATHS}\gtk2_prefs.exe" "Path" "$R3" + + + CreateDirectory "$SMPROGRAMS\GTK2 Runtime" + CreateShortCut "$SMPROGRAMS\GTK2 Runtime\Change GTK2 Appearance.lnk" "$INSTDIR\gtk2_prefs.exe" "" "$INSTDIR\gtk.ico" "" + +SectionEnd + + + + +!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN + !insertmacro MUI_DESCRIPTION_TEXT ${SecThemes} "GTK2 theme engines and themes to improve its look" + !insertmacro MUI_DESCRIPTION_TEXT ${SecGtkPrefs} "GTK2 Preference Utility to change the theme and font of GTK2 applications" +!insertmacro MUI_FUNCTION_DESCRIPTION_END + + + + + +; ------------------ POST INSTALL + + +!define TEMP $R0 + +Section -post + + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "InstallationDirectory" "$INSTDIR" + WriteRegStr HKLM "SOFTWARE\${PRODUCT_NAME}" "Vendor" "Alex Shaduri" + + WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "DisplayName" "${PRODUCT_NAME}" + WriteRegStr HKLM "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\gtk2_themes_uninst.exe" + + ; We don't need this, MUI takes care for us + WriteRegStr HKCU "Software\${PRODUCT_NAME}" "Installer Language" $LANGUAGE + + ; uninstall shortcut + CreateDirectory "$SMPROGRAMS\GTK2 Runtime" + CreateShortCut "$SMPROGRAMS\GTK2 Runtime\Uninstall GTK2 Themes.lnk" "$INSTDIR\gtk2_themes_uninst.exe" "" "" + + + ; write out uninstaller + WriteUninstaller "$INSTDIR\gtk2_themes_uninst.exe" + +SectionEnd ; post + + + + + +; ---------------- UNINSTALL + + + +Function un.onUninstSuccess + HideWindow + MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer." /SD IDOK +FunctionEnd + + + + +Section Uninstall + + SetAutoClose false + + ; add delete commands to delete whatever files/registry keys/etc you installed here. + Delete "$INSTDIR\gtk2_themes_uninst.exe" + + DeleteRegKey HKLM "SOFTWARE\${PRODUCT_NAME}" + DeleteRegKey HKLM "${PRODUCT_UNINST_KEY}" + + ; FIXME: Do we have this registry key? + DeleteRegKey HKCU "Software\${PRODUCT_NAME}" + + DeleteRegKey HKLM "${REGISTRY_APP_PATHS}\gtk2_prefs.exe" + + Delete "$INSTDIR\gtk2_prefs.exe" + Delete "$INSTDIR\gtk.ico" + + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libanachron.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libaurora.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libbluecurve.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libblueprint.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libcandido.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libcleanice.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libclearlooks.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libcrux-engine.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libdyndyn.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libexcelsior.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libgflat.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libglide.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libhcengine.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libindustrial.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\liblighthouseblue.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libmetal.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libmgicchikn.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libmist.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libmurrine.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libnimbus.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libnodoka.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libredmond95.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\librezlooks.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libsmooth.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libthinice.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libubuntulooks.dll" + Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libxfce.dll" + + + ; FIXME: STALE FILE! + ; we should not delete this, it may be owned by gtk-runtime. + ; Delete "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines\libpixmap.dll" + + RMDir "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}\engines" + RMDir "$INSTDIR\lib\gtk-2.0\${GTK_BIN_VERSION}" ; not forced + RMDir "$INSTDIR\lib\gtk-2.0" ; not forced + RMDir "$INSTDIR\lib" + +; RMDir /r "$INSTDIR\share" + +RMDir /r "$INSTDIR\share\themes\Amaranth" +RMDir /r "$INSTDIR\share\themes\AnachronAna" +RMDir /r "$INSTDIR\share\themes\Aurora" +RMDir /r "$INSTDIR\share\themes\Bluecurve" +RMDir /r "$INSTDIR\share\themes\Bluecurve-BerriesAndCream" +RMDir /r "$INSTDIR\share\themes\Bluecurve-Gnome" +RMDir /r "$INSTDIR\share\themes\Bluecurve-Grape" +RMDir /r "$INSTDIR\share\themes\Bluecurve-Lime" +RMDir /r "$INSTDIR\share\themes\Bluecurve-Slate" +RMDir /r "$INSTDIR\share\themes\Bluecurve-Strawberry" +RMDir /r "$INSTDIR\share\themes\Bluecurve-Tangerine" +RMDir /r "$INSTDIR\share\themes\Blueprint" +RMDir /r "$INSTDIR\share\themes\Blueprint-Green" +RMDir /r "$INSTDIR\share\themes\Blueprint-Ice" +RMDir /r "$INSTDIR\share\themes\Blueprint-Sand" +RMDir /r "$INSTDIR\share\themes\Blueprint-no-color" +RMDir /r "$INSTDIR\share\themes\Candido-Calm" +RMDir /r "$INSTDIR\share\themes\Candido-Candy" +RMDir /r "$INSTDIR\share\themes\Candido-DarkOrange" +RMDir /r "$INSTDIR\share\themes\Candido-Hybrid" +RMDir /r "$INSTDIR\share\themes\Candido-NeoGraphite" +RMDir /r "$INSTDIR\share\themes\CleanIce" +RMDir /r "$INSTDIR\share\themes\CleanIce-Dark" +RMDir /r "$INSTDIR\share\themes\CleanIce-Debian" +RMDir /r "$INSTDIR\share\themes\Clearlooks" +RMDir /r "$INSTDIR\share\themes\ClearlooksClassic" +RMDir /r "$INSTDIR\share\themes\ClearlooksTest" +RMDir /r "$INSTDIR\share\themes\Crux" +RMDir /r "$INSTDIR\share\themes\Darklooks" +RMDir /r "$INSTDIR\share\themes\Delightfully-Smooth" +RMDir /r "$INSTDIR\share\themes\DyndynBlueGray" +RMDir /r "$INSTDIR\share\themes\DyndynPinkGray" +RMDir /r "$INSTDIR\share\themes\G26" +RMDir /r "$INSTDIR\share\themes\Glider" +RMDir /r "$INSTDIR\share\themes\Glossy" +RMDir /r "$INSTDIR\share\themes\Gorilla" +RMDir /r "$INSTDIR\share\themes\HighContrast" +RMDir /r "$INSTDIR\share\themes\HighContrastInverse" +RMDir /r "$INSTDIR\share\themes\HighContrastLargePrint" +RMDir /r "$INSTDIR\share\themes\HighContrastLargePrintInverse" +RMDir /r "$INSTDIR\share\themes\Human" +RMDir /r "$INSTDIR\share\themes\Industrial" +RMDir /r "$INSTDIR\share\themes\Inverted" +RMDir /r "$INSTDIR\share\themes\LargePrint" +RMDir /r "$INSTDIR\share\themes\LighthouseBlue" +RMDir /r "$INSTDIR\share\themes\LowContrast" +RMDir /r "$INSTDIR\share\themes\LowContrastLargePrint" +RMDir /r "$INSTDIR\share\themes\Lush" +RMDir /r "$INSTDIR\share\themes\Metal" +RMDir /r "$INSTDIR\share\themes\Mist" +RMDir /r "$INSTDIR\share\themes\MurrinaAquaIsh" +RMDir /r "$INSTDIR\share\themes\MurrinaAzul" +RMDir /r "$INSTDIR\share\themes\MurrinaBleu" +RMDir /r "$INSTDIR\share\themes\MurrinaBlue" +RMDir /r "$INSTDIR\share\themes\MurrinaCandido" +RMDir /r "$INSTDIR\share\themes\MurrinaCandy" +RMDir /r "$INSTDIR\share\themes\MurrinaCappuccino" +RMDir /r "$INSTDIR\share\themes\MurrinaChrome" +RMDir /r "$INSTDIR\share\themes\MurrinaCream" +RMDir /r "$INSTDIR\share\themes\MurrinaEalm" +RMDir /r "$INSTDIR\share\themes\MurrinaFancyCandy" +RMDir /r "$INSTDIR\share\themes\MurrinaGilouche" +RMDir /r "$INSTDIR\share\themes\MurrinaLoveGray" +RMDir /r "$INSTDIR\share\themes\MurrinaNeoGraphite" +RMDir /r "$INSTDIR\share\themes\MurrinaVerdeOlivo" +RMDir /r "$INSTDIR\share\themes\Nimbus" +RMDir /r "$INSTDIR\share\themes\Nimbus-Dark" +RMDir /r "$INSTDIR\share\themes\Nimbus-Light" +RMDir /r "$INSTDIR\share\themes\Nodoka" +RMDir /r "$INSTDIR\share\themes\Nodoka-Aqua" +RMDir /r "$INSTDIR\share\themes\Nodoka-Gilouche" +RMDir /r "$INSTDIR\share\themes\Nodoka-Looks" +RMDir /r "$INSTDIR\share\themes\Nodoka-Midnight" +RMDir /r "$INSTDIR\share\themes\Nodoka-Rounded" +RMDir /r "$INSTDIR\share\themes\Nodoka-Silver" +RMDir /r "$INSTDIR\share\themes\Nodoka-Squared" +RMDir /r "$INSTDIR\share\themes\Nuvola" +RMDir /r "$INSTDIR\share\themes\Redmond" +RMDir /r "$INSTDIR\share\themes\Rezlooks-Gilouche" +RMDir /r "$INSTDIR\share\themes\Rezlooks-Snow" +RMDir /r "$INSTDIR\share\themes\Rezlooks-candy" +RMDir /r "$INSTDIR\share\themes\Rezlooks-dark" +RMDir /r "$INSTDIR\share\themes\Rezlooks-graphite" +RMDir /r "$INSTDIR\share\themes\Simple" +RMDir /r "$INSTDIR\share\themes\Smooth-Funky-Monkey" +RMDir /r "$INSTDIR\share\themes\Smooth-Line" +RMDir /r "$INSTDIR\share\themes\Smooth-Okayish" +RMDir /r "$INSTDIR\share\themes\Smooth-Sea-Ice" +RMDir /r "$INSTDIR\share\themes\Smooth-Tangerine-Dream" +RMDir /r "$INSTDIR\share\themes\Smooth-Winter" +RMDir /r "$INSTDIR\share\themes\ThinIce" +RMDir /r "$INSTDIR\share\themes\Unity" +RMDir /r "$INSTDIR\share\themes\Wasp" +RMDir /r "$INSTDIR\share\themes\Xcl-aqua" +RMDir /r "$INSTDIR\share\themes\Xcl-aqua-dark" +RMDir /r "$INSTDIR\share\themes\Xcl-bubblegum" +RMDir /r "$INSTDIR\share\themes\Xcl-bubblegum-dark" +RMDir /r "$INSTDIR\share\themes\Xcl-clarius" +RMDir /r "$INSTDIR\share\themes\Xcl-clarius-dark" +RMDir /r "$INSTDIR\share\themes\Xcl-flat" +RMDir /r "$INSTDIR\share\themes\Xcl-flat-dark" +RMDir /r "$INSTDIR\share\themes\Xcl-inverted" +RMDir /r "$INSTDIR\share\themes\Xcl-inverted-dark" +RMDir /r "$INSTDIR\share\themes\Xfce" +RMDir /r "$INSTDIR\share\themes\Xfce-4.0" +RMDir /r "$INSTDIR\share\themes\Xfce-4.2" +RMDir /r "$INSTDIR\share\themes\Xfce-4.4" + + RMDir "$INSTDIR\share\themes" ; not forced + RMDir "$INSTDIR\share" ; not forced + + ; only delete if empty + RMDir "$INSTDIR" + + ; FIXME: do we need this after deletion of instdir? +; RMDir /r "$SMPROGRAMS\GTK2 Runtime" + Delete "$SMPROGRAMS\GTK2 Runtime\Change GTK2 Appearance.lnk" + Delete "$SMPROGRAMS\GTK2 Runtime\Uninstall GTK2 Themes.lnk" + + RMDir "$SMPROGRAMS\GTK2 Runtime" ; gtk-runtime may still be there + + +SectionEnd ; end of uninstall section + + + +; Prevent running multiple instances of the installer +Function PreventMultipleInstances + Push $R0 + System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${PRODUCT_NAME}") ?e' + Pop $R0 + StrCmp $R0 0 +3 + MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running." /SD IDOK + Abort + Pop $R0 +FunctionEnd + + + +; eof \ No newline at end of file diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk.ico b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk.ico new file mode 100644 index 0000000000000000000000000000000000000000..fac4b78f4f19807cfd4fafd45f14da9d6d7d04d2 GIT binary patch literal 22486 zcmeIacYKt^_CJ2Sr1xw#b+fz4CfQ^+o8C6PZF&L(2qht*gesv61VjQV0@4Hp2`Wtx zm8M2eK&7czXd+Dn0Ra&Z1chtkdcN;@k_|}&F5auZ&;8@~@Om=)%$%7yb7tnu%z2-I z=mD}K7Z*ZkLxU`d1`v^-U*q@7Hbnan7a7^~?L;&dZzH`Q4YD9oDb4hL^fJnM!rx4f z?;xV^Xrd65i6la?QauPL;{oxv>1q1S%#;+Pqc67|Cg$HLGr5%9Z8}iYN`LB^-h)1T z|78l(cBAr2rXc4>$oNeNrEwbhrg+j@uWX{aab*-8IfuIUWa`v~$>6n^qCWJc(3LvM z;at+atR;hM2=Ps(k)wuCvhg65c4ks}cc!jAnBp|AQPf8YiK%QhQ3lFZX}swC(bJ?i zsHh9dOitZQ4pu%?QN?5od5glfc#w^&CB^QDCVRCt*?L$|=0ir}-%y@0fjX2h<>q}s zmS}le+WV9k_8w`M%g8y@fmD^=l+T6a*Tb8lBf_ae2d13-ugDa8oI=*h$vMiNf}hkN zCxI@X{AR0&&;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o{8Z&W4DD+A#VnC_2zO}4gNW$JKo^NTOx_Sb)o5B;5OUAuLyrgrSm z{q>Wly}hA+-sHJ`JH9(2C+?q}GBeMwnm%j#<)fE<{?7XU+p^93tV=g8d5f~HUOlfm z^V#7J@bl0>=Jr4S_~T#d3)T3a3!!A`e=-yyd5XV{H={&IxFLn-ZueEeqgtd-Zhc=B zeo4~hAt_9kuDMEt(l;`+3eD+tP4WLOG}D{Iw)EzBbEs}Ax9xY^__pbH`>tc@@*q5} nr2D#(fN+0Ty0?plsYN`Tvg$+#!K6#!c8MJFZj>kAl*0c9)#u6j literal 0 HcmV?d00001 diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license.txt b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license.txt new file mode 100644 index 00000000..1b874aae --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license.txt @@ -0,0 +1,30 @@ + +You can find the latest version of this software at http://gtk-win.sourceforge.net. +You may reach the packager (Alexander Shaduri) by email at ashaduri 'at' gmail.com + +The authors make NO WARRANTY or representation, either express or implied, with respect to this software, its quality, accuracy, merchantability, or fitness for a particular purpose. This software is provided "AS IS", and you, its user, assume the entire risk as to its quality and accuracy. + +This package contains the following software (or pieces of it): +GTK+, ATK, Pango, GLib, gdk_pixbuf: http://www.gtk.org/; +Cairo: http://cairographics.org/; +Expat: http://expat.sourceforge.net/; +Fontconfig: http://www.fontconfig.org/; +Freetype2: http://www.freetype.org/; +intl library (from gettext): http://www.gnu.org/software/gettext/; +JPEG library: http://www.ijg.org/; +libiconv: http://www.gnu.org/software/libiconv/; +libpng: http://www.libpng.org/pub/png/libpng.html; +LibTIFF: http://www.libtiff.org/; +zlib: http://www.zlib.net/. + +You may obtain the respective sources at the URLs listed above. + +The binaries distributed with this package come from either their official sites (listed above), or from the following locations: +GTK+, ATK, Pango, GLib, gdk_pixbuf, Cairo and their dependencies can be obtained from http://ftp.gnome.org/pub/gnome/binaries/win32/. +Most other binaries can be obtained from http://gnuwin32.sourceforge.net/. + +This package contains the licenses of libraries distributed in it: +license_lgpl.txt contains a license for GTK+, ATK, Pango, GLib, gdk_pixbuf, Cairo, Expat, Fontconfig, Freetype2, intl, libiconv, LibTIFF; +license_jpeg.txt contains a license for libjpeg; +license_png.txt contains a license for libpng; +license_zlib.txt contains a license for zlib. diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_gpl.txt b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_gpl.txt new file mode 100644 index 00000000..fbdd65f6 --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_gpl.txt @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_jpeg.txt b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_jpeg.txt new file mode 100644 index 00000000..e23c6578 --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_jpeg.txt @@ -0,0 +1,50 @@ + +LEGAL ISSUES +============ + +In plain English: + +1. We don't promise that this software works. (But if you find any bugs, + please let us know!) +2. You can use this software for whatever you want. You don't have to pay us. +3. You may not pretend that you wrote this software. If you use it in a + program, you must acknowledge somewhere in your documentation that + you've used the IJG code. + +In legalese: + +The authors make NO WARRANTY or representation, either express or implied, +with respect to this software, its quality, accuracy, merchantability, or +fitness for a particular purpose. This software is provided "AS IS", and you, +its user, assume the entire risk as to its quality and accuracy. + +This software is copyright (C) 1991-1998, Thomas G. Lane. +All Rights Reserved except as specified below. + +Permission is hereby granted to use, copy, modify, and distribute this +software (or portions thereof) for any purpose, without fee, subject to these +conditions: +(1) If any part of the source code for this software is distributed, then this +README file must be included, with this copyright and no-warranty notice +unaltered; and any additions, deletions, or changes to the original files +must be clearly indicated in accompanying documentation. +(2) If only executable code is distributed, then the accompanying +documentation must state that "this software is based in part on the work of +the Independent JPEG Group". +(3) Permission for use of this software is granted only if the user accepts +full responsibility for any undesirable consequences; the authors accept +NO LIABILITY for damages of any kind. + +These conditions apply to any software derived from or based on the IJG code, +not just to the unmodified library. If you use our work, you ought to +acknowledge us. + +Permission is NOT granted for the use of any IJG author's name or company name +in advertising or publicity relating to this software or products derived from +it. This software may be referred to only as "the Independent JPEG Group's +software". + +We specifically permit and encourage the use of this software as the basis of +commercial products, provided that all warranty or liability claims are +assumed by the product vendor. + diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_lgpl.txt b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_lgpl.txt new file mode 100644 index 00000000..339560d0 --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_lgpl.txt @@ -0,0 +1,437 @@ + GNU LIBRARY GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the library GPL. It is + numbered 2 because it goes with version 2 of the ordinary GPL.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Library General Public License, applies to some +specially designated Free Software Foundation software, and to any +other libraries whose authors decide to use it. You can use it for +your libraries, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if +you distribute copies of the library, or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link a program with the library, you must provide +complete object files to the recipients so that they can relink them +with the library, after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + Our method of protecting your rights has two steps: (1) copyright +the library, and (2) offer you this license which gives you legal +permission to copy, distribute and/or modify the library. + + Also, for each distributor's protection, we want to make certain +that everyone understands that there is no warranty for this free +library. If the library is modified by someone else and passed on, we +want its recipients to know that what they have is not the original +version, so that any problems introduced by others will not reflect on +the original authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that companies distributing free +software will individually obtain patent licenses, thus in effect +transforming the program into proprietary software. To prevent this, +we have made it clear that any patent must be licensed for everyone's +free use or not licensed at all. + + Most GNU software, including some libraries, is covered by the ordinary +GNU General Public License, which was designed for utility programs. This +license, the GNU Library General Public License, applies to certain +designated libraries. This license is quite different from the ordinary +one; be sure to read it in full, and don't assume that anything in it is +the same as in the ordinary license. + + The reason we have a separate public license for some libraries is that +they blur the distinction we usually make between modifying or adding to a +program and simply using it. Linking a program with a library, without +changing the library, is in some sense simply using the library, and is +analogous to running a utility program or application program. However, in +a textual and legal sense, the linked executable is a combined work, a +derivative of the original library, and the ordinary General Public License +treats it as such. + + Because of this blurred distinction, using the ordinary General +Public License for libraries did not effectively promote software +sharing, because most developers did not use the libraries. We +concluded that weaker conditions might promote sharing better. + + However, unrestricted linking of non-free programs would deprive the +users of those programs of all benefit from the free status of the +libraries themselves. This Library General Public License is intended to +permit developers of non-free programs to use free libraries, while +preserving your freedom as a user of such programs to change the free +libraries that are incorporated in them. (We have not seen how to achieve +this as regards changes in header files, but we have achieved it as regards +changes in the actual functions of the Library.) The hope is that this +will lead to faster development of free libraries. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, while the latter only +works together with the library. + + Note that it is possible for a library to be covered by the ordinary +General Public License rather than by this special one. + + GNU LIBRARY GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library which +contains a notice placed by the copyright holder or other authorized +party saying it may be distributed under the terms of this Library +General Public License (also called "this License"). Each licensee is +addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also compile or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + c) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + d) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the source code distributed need not include anything that is normally +distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Library General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_png.txt b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_png.txt new file mode 100644 index 00000000..6fd67c9b --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_png.txt @@ -0,0 +1,98 @@ + +COPYRIGHT NOTICE, DISCLAIMER, and LICENSE: + +If you modify libpng you may insert additional notices immediately following +this sentence. + +libpng versions 1.0.7, July 1, 2000, through 1.0.8, July 24, 2000, are +Copyright (c) 2000 Glenn Randers-Pehrson +and are distributed according to the same disclaimer and license as libpng-1.0.6 +with the following individuals added to the list of Contributing Authors + + Simon-Pierre Cadieux + Eric S. Raymond + Gilles Vollant + +and with the following additions to the disclaimer: + + There is no warranty against interference with your enjoyment of the + library or against infringement. There is no warranty that our + efforts or the library will fulfill any of your particular purposes + or needs. This library is provided with all faults, and the entire + risk of satisfactory quality, performance, accuracy, and effort is with + the user. + +libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are +Copyright (c) 1998, 1999 Glenn Randers-Pehrson, and are +distributed according to the same disclaimer and license as libpng-0.96, +with the following individuals added to the list of Contributing Authors: + + Tom Lane + Glenn Randers-Pehrson + Willem van Schaik + +libpng versions 0.89, June 1996, through 0.96, May 1997, are +Copyright (c) 1996, 1997 Andreas Dilger +Distributed according to the same disclaimer and license as libpng-0.88, +with the following individuals added to the list of Contributing Authors: + + John Bowler + Kevin Bracey + Sam Bushell + Magnus Holmgren + Greg Roelofs + Tom Tanner + +libpng versions 0.5, May 1995, through 0.88, January 1996, are +Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. + +For the purposes of this copyright and license, "Contributing Authors" +is defined as the following set of individuals: + + Andreas Dilger + Dave Martindale + Guy Eric Schalnat + Paul Schmidt + Tim Wegner + +The PNG Reference Library is supplied "AS IS". The Contributing Authors +and Group 42, Inc. disclaim all warranties, expressed or implied, +including, without limitation, the warranties of merchantability and of +fitness for any purpose. The Contributing Authors and Group 42, Inc. +assume no liability for direct, indirect, incidental, special, exemplary, +or consequential damages, which may result from the use of the PNG +Reference Library, even if advised of the possibility of such damage. + +Permission is hereby granted to use, copy, modify, and distribute this +source code, or portions hereof, for any purpose, without fee, subject +to the following restrictions: + +1. The origin of this source code must not be misrepresented. + +2. Altered versions must be plainly marked as such and must not + be misrepresented as being the original source. + +3. This Copyright notice may not be removed or altered from any + source or altered source distribution. + +The Contributing Authors and Group 42, Inc. specifically permit, without +fee, and encourage the use of this source code as a component to +supporting the PNG file format in commercial products. If you use this +source code in a product, acknowledgment is not required but would be +appreciated. + + +A "png_get_copyright" function is available, for convenient use in "about" +boxes and the like: + + printf("%s",png_get_copyright(NULL)); + +Also, the PNG logo (in PNG format, of course) is supplied in the +files "pngbar.png" and "pngbar.jpg (88x31) and "pngnow.png" (98x31). + +Libpng is OSI Certified Open Source Software. OSI Certified Open Source is a +certification mark of the Open Source Initiative. + +Glenn Randers-Pehrson +randeg@alum.rpi.edu +July 24, 2000 diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_themes.txt b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_themes.txt new file mode 100644 index 00000000..5b8e7d1b --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_themes.txt @@ -0,0 +1,194 @@ + +You can find the latest version of this software at http://gtk-win.sourceforge.net. +You may reach the packager (Alexander Shaduri) by email at ashaduri 'at' gmail.com + +The authors make NO WARRANTY or representation, either express or implied, with respect to this software, its quality, accuracy, merchantability, or fitness for a particular purpose. This software is provided "AS IS", and you, its user, assume the entire risk as to its quality and accuracy. + +This package contains the following software (or pieces of it): + +GTK+ Preference tool from http://gtk-win.sourceforge.net. + +GTK+ theme engines and themes: + +Themes from gnome-themes 2.26.3 http://ftp.gnome.org/pub/gnome/sources/gnome-themes/2.26/ + ClearlooksClassic (clearlooks engine) + ClearlooksTest (clearlooks engine) + Glider (glide engine) + Glossy (clearlooks engine) + HighContrast (accessibility theme, HighContrast (HC) engine) + HighContrastInverse (accessibility theme, HighContrast (HC) engine) + HighContrastLargePrint (accessibility theme, HighContrast (HC) engine) + HighContrastLargePrintInverse (accessibility theme, HighContrast (HC) engine) + Inverted (clearlooks engine) + LargePrint (accessibility theme, default engine) + LowContrast (accessibility theme, default engine) + LowContrastLargePrint (accessibility theme, default engine) + Simple (thinice engine) + +Themes from gnome-themes-extras 2.22.0 http://ftp.gnome.org/pub/gnome/sources/gnome-themes-extras/2.22/ + Darklooks (clearlooks engine) + Unity (clearlooks engine) + +Themes from gnome-themes-extras 0.9 http://ftp.gnome.org/pub/gnome/sources/gnome-themes-extras/0.9/ + Amaranth (smooth engine) + Gorilla (industrial engine) + Lush (smooth engine) + Nuvola (smooth engine) + Wasp (smooth engine) + +Anachron 0.1 http://www.gnome-look.org/content/show.php/anachron-engine?content=20370 + AnachronAna + +Aurora 1.5.1 http://www.gnome-look.org/content/show.php/Aurora+Gtk+Engine?content=56438 + Aurora + +Bluecurve 1.0.0 (aka Wonderland) http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/bluecurve-gtk-themes-1.0.0-4.fc12.src.rpm + Bluecurve (Red Hat style) + Bluecurve-BerriesAndCream + Bluecurve-Gnome + Bluecurve-Grape + Bluecurve-Lime + Bluecurve-Slate + Bluecurve-Strawberry + Bluecurve-Tangerine + +Blueprint 0.9.20 http://dlc.sun.com/osol/jds/downloads/extras/ + Blueprint + Blueprint-Green + Blueprint-Ice + Blueprint-Sand + Blueprint-no-color + +Candido 0.9.1 http://candido.berlios.de/pages/engine.php . The themes come from the same location. + Candido-Calm + Candido-Candy + Candido-DarkOrange + Candido-Hybrid + Candido-NeoGraphite + +CleanIce 2.4.1 http://sourceforge.net/projects/elysium-project/ . The themes come from Debian patches at http://packages.debian.org/unstable/graphics/gtk2-engines-cleanice . + Cleanice + Cleanice-Dark + Cleanice-Debian + +Clearlooks from gtk-engines 2.18.2 http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.18/ + Clearlooks + +Crux from gtk-engines 2.18.2 http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.18/ + Crux + +Dyndyn 0.1 http://dyndyn-engine.sourceforge.net/ . The themes come from the same location. + DyndynBlueGray + DyndynPinkGray + +Excelsior 4.1.0 http://www.gnome-look.org/content/show.php/Excelsior+(Engine)?content=76486 + Xcl-aqua + Xcl-aqua-dark + Xcl-bubblegum + Xcl-bubblegum-dark + Xcl-clarius + Xcl-clarius-dark + Xcl-flat + Xcl-flat-dark + Xcl-inverted + Xcl-inverted-dark + +gFlat 0.3 http://www.gnome-look.org/content/show.php/gFlat+gtk+engine?content=39916 + Gflat-graphite + Gflat-quicksilver + +Glide from gtk-engines 2.18.2 http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.18/ + +HighContrast (HC) from gtk-engines 2.18.2 http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.18/ + +Industrial from gtk-engines 2.18.2 http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.18/ + Industrial + +LighthouseBlue from gtk-engines-2.6.11, http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.6/ + LighthouseBlue + +Metal from gtk-engines-2.6.11, http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.6/ + Metal (Java Swing style) + +MagicChicken 1.1.1 http://packages.debian.org/source/sid/gtk2-engines-magicchicken + CortlandChicken (MacOS 9 style) + MagicChicken + OkayishChicken + +Mist from gtk-engines 2.18.2 http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.18/ + Mist + +Murrine 0.90.3 http://www.cimitan.com/pages/murrine.php . The themes come from http://packages.debian.org/sid/murrine-themes . + MurrinaAquaIsh + MurrinaAzul + MurrinaBleu + MurrinaBlue + MurrinaCandido + MurrinaCandy + MurrinaCappuccino + MurrinaChrome + MurrinaCream + MurrinaEalm + MurrinaFancyCandy + MurrinaGilouche + MurrinaLoveGray + MurrinaNeoGraphite + MurrinaVerdeOlivo + MurrineRounded + MurrineRoundedIcon + MurrineRoundedLessFramed + MurrineRoundedLessFramedIcon + +Nimbus 0.1.3 http://dlc.sun.com/osol/jds/downloads/extras/nimbus/ + Nimbus + Nimbus-Dark + Nimbus-Light + +Nodoka 0.7.2 https://fedorahosted.org/nodoka/ + Nodoka (FC8 theme) + Nodoka-Aqua + Nodoka-Gilouche + Nodoka-Looks + Nodoka-Midnight + Nodoka-Rounded + Nodoka-Silver + Nodoka-Squared + +Redmond95 from gtk-engines 2.18.2 http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.18/ + Redmond (Win9x style) + +Rezlooks 0.6 http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/gtk-rezlooks-engine-0.6-9.fc12.src.rpm + Rezlooks-Gilouche + Rezlooks-Snow + Rezlooks-candy + Rezlooks-dark + Rezlooks-graphite + +Smooth 2.14.3 http://packages.debian.org/source/sid/gtk-smooth-engine . The themes come from smooth-themes 0.5.8 at http://packages.debian.org/sid/gtk-smooth-themes . + Delightfully-Smooth + G26 + Smooth-Funky-Monkey + Smooth-Line + Smooth-Okayish + Smooth-Sea-Ice + Smooth-Tangerine-Dream + Smooth-Winter + +ThinIce from gtk-engines 2.18.2 http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.18/ + ThinIce + +Ubuntulooks 0.9.12 http://packages.ubuntu.com/karmic/gtk2-engines-ubuntulooks + Human (Ubuntu theme) + +XFCE 2.6.0 http://mocha.xfce.org/archive/xfce-4.6.1/src/ + Xfce + Xfce-4.0 + Xfce-4.2 + Xfce-4.4 + (many more themes are distributed with xfce-engine but not included here) + +Unless indicated otherwise, all themes come with their respective engine packages. + +You may obtain the respective sources at the URLs listed above. + +The combined package (engines, themes, GTK+ Preference Tool) is licensed under GNU GPLv2. See license_gpl.txt file for details. diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_zlib.txt b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_zlib.txt new file mode 100644 index 00000000..1135b3e2 --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/license_zlib.txt @@ -0,0 +1,32 @@ + +Copyright notice: + + (C) 1995-1998 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + +If you use the zlib library in a product, we would appreciate *not* +receiving lengthy legal documents to sign. The sources are provided +for free but without warranty of any kind. The library has been +entirely written by Jean-loup Gailly and Mark Adler; it does not +include third-party code. + +If you redistribute modified sources, we would appreciate that you include +in the file ChangeLog history information documenting your changes. diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_configpage.ini b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_configpage.ini new file mode 100644 index 00000000..6725714f --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_configpage.ini @@ -0,0 +1,15 @@ +[Settings] +NumFields=1 + +[Field 1] +Type=checkbox +Text=Save global GTK+ settings for future installations +Left=0 +Right=-1 +Top=10 +Bottom=40 +State=1 + + + + diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_env_var_update.nsh b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_env_var_update.nsh new file mode 100644 index 00000000..839d6a02 --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_env_var_update.nsh @@ -0,0 +1,327 @@ +/** + * EnvVarUpdate.nsh + * : Environmental Variables: append, prepend, and remove entries + * + * WARNING: If you use StrFunc.nsh header then include it before this file + * with all required definitions. This is to avoid conflicts + * + * Usage: + * ${EnvVarUpdate} "ResultVar" "EnvVarName" "Action" "RegLoc" "PathString" + * + * Credits: + * Version 1.0 + * * Cal Turney (turnec2) + * * Amir Szekely (KiCHiK) and e-circ for developing the forerunners of this + * function: AddToPath, un.RemoveFromPath, AddToEnvVar, un.RemoveFromEnvVar, + * WriteEnvStr, and un.DeleteEnvStr + * * Diego Pedroso (deguix) for StrTok + * * Kevin English (kenglish_hi) for StrContains + * * Hendri Adriaens (Smile2Me), Diego Pedroso (deguix), and Dan Fuhry + * (dandaman32) for StrReplace + * + * Version 1.1 (compatibility with StrFunc.nsh) + * * techtonik + * + * http://nsis.sourceforge.net/Environmental_Variables:_append%2C_prepend%2C_and_remove_entries + * + */ + + +!ifndef ENVVARUPDATE_FUNCTION +!define ENVVARUPDATE_FUNCTION +!verbose push +!verbose 3 +!include "LogicLib.nsh" +!include "WinMessages.NSH" +!include "StrFunc.nsh" + +; ---- Fix for conflict if StrFunc.nsh is already includes in main file ----------------------- +!macro _IncludeStrFunction StrFuncName + !ifndef ${StrFuncName}_INCLUDED + ${${StrFuncName}} + !endif + !ifndef Un${StrFuncName}_INCLUDED + ${Un${StrFuncName}} + !endif + !define un.${StrFuncName} "${Un${StrFuncName}}" +!macroend + +!insertmacro _IncludeStrFunction StrTok +!insertmacro _IncludeStrFunction StrStr +!insertmacro _IncludeStrFunction StrRep + +; ---------------------------------- Macro Definitions ---------------------------------------- +!macro _EnvVarUpdateConstructor ResultVar EnvVarName Action Regloc PathString + Push "${EnvVarName}" + Push "${Action}" + Push "${RegLoc}" + Push "${PathString}" + Call EnvVarUpdate + Pop "${ResultVar}" +!macroend +!define EnvVarUpdate '!insertmacro "_EnvVarUpdateConstructor"' + +!macro _unEnvVarUpdateConstructor ResultVar EnvVarName Action Regloc PathString + Push "${EnvVarName}" + Push "${Action}" + Push "${RegLoc}" + Push "${PathString}" + Call un.EnvVarUpdate + Pop "${ResultVar}" +!macroend +!define un.EnvVarUpdate '!insertmacro "_unEnvVarUpdateConstructor"' +; ---------------------------------- Macro Definitions end------------------------------------- + +;----------------------------------- EnvVarUpdate start---------------------------------------- +!define hklm_all_users 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"' +!define hkcu_current_user 'HKCU "Environment"' + +!macro EnvVarUpdate UN + +Function ${UN}EnvVarUpdate + + Push $0 + Exch 4 + Exch $1 + Exch 3 + Exch $2 + Exch 2 + Exch $3 + Exch + Exch $4 + Push $5 + Push $6 + Push $7 + Push $8 + Push $9 + Push $R0 + + /* After this point: + ------------------------- + $0 = ResultVar (returned) + $1 = EnvVarName (input) + $2 = Action (input) + $3 = RegLoc (input) + $4 = PathString (input) + $5 = Orig EnvVar (read from registry) + $6 = Len of $0 (temp) + $7 = tempstr1 (temp) + $8 = Entry counter (temp) + $9 = tempstr2 (temp) + $R0 = tempChar (temp) */ + + ; Step 1: Read contents of EnvVarName from RegLoc + ; + ; Check for empty EnvVarName + ${If} $1 == "" + SetErrors + DetailPrint "ERROR: EnvVarName is blank" + Goto EnvVarUpdate_Restore_Vars + ${EndIf} + + ; Check for valid Action + ${If} $2 != "A" + ${AndIf} $2 != "P" + ${AndIf} $2 != "R" + SetErrors + DetailPrint "ERROR: Invalid Action - must be A, P, or R" + Goto EnvVarUpdate_Restore_Vars + ${EndIf} + + ${If} $3 == HKLM + ReadRegStr $5 ${hklm_all_users} $1 ; Get EnvVarName from all users into $5 + ${ElseIf} $3 == HKCU + ReadRegStr $5 ${hkcu_current_user} $1 ; Read EnvVarName from current user into $5 + ${Else} + SetErrors + DetailPrint 'ERROR: Action is [$3] but must be "HKLM" or HKCU"' + Goto EnvVarUpdate_Restore_Vars + ${EndIf} + + ; Check for empty PathString + ${If} $4 == "" + SetErrors + DetailPrint "ERROR: PathString is blank" + Goto EnvVarUpdate_Restore_Vars + ${EndIf} + + ; Make sure we've got some work to do + ${If} $5 == "" + ${AndIf} $2 == "R" + SetErrors + DetailPrint "$1 is empty - Nothing to remove" + Goto EnvVarUpdate_Restore_Vars + ${EndIf} + + ; Step 2: Scrub EnvVar + ; + StrCpy $0 $5 ; Copy the contents to $0 + ; Remove spaces around semicolons (NOTE: spaces before the 1st entry or + ; after the last one are not removed here but instead in Step 3) + ${If} $0 != "" ; If EnvVar is not empty ... + ${Do} + ${${UN}StrStr} $7 $0 " ;" + ${If} $7 == "" + ${ExitDo} + ${EndIf} + ${${UN}StrRep} $0 $0 " ;" ";" ; Remove ';' + ${Loop} + ${Do} + ${${UN}StrStr} $7 $0 "; " + ${If} $7 == "" + ${ExitDo} + ${EndIf} + ${${UN}StrRep} $0 $0 "; " ";" ; Remove ';' + ${Loop} + ${Do} + ${${UN}StrStr} $7 $0 ";;" + ${If} $7 == "" + ${ExitDo} + ${EndIf} + ${${UN}StrRep} $0 $0 ";;" ";" + ${Loop} + + ; Remove a leading or trailing semicolon from EnvVar + StrCpy $7 $0 1 0 + ${If} $7 == ";" + StrCpy $0 $0 "" 1 ; Change ';' to '' + ${EndIf} + StrLen $6 $0 + IntOp $6 $6 - 1 + StrCpy $7 $0 1 $6 + ${If} $7 == ";" + StrCpy $0 $0 $6 ; Change ';' to '' + ${EndIf} + ; DetailPrint "Scrubbed $1: [$0]" ; Uncomment to debug + ${EndIf} + + /* Step 3. Remove all instances of the target path/string (even if "A" or "P") + $6 = bool flag (1 = found and removed PathString) + $7 = a string (e.g. path) delimited by semicolon(s) + $8 = entry counter starting at 0 + $9 = copy of $0 + $R0 = tempChar */ + + ${If} $5 != "" ; If EnvVar is not empty ... + StrCpy $9 $0 + StrCpy $0 "" + StrCpy $8 0 + StrCpy $6 0 + + ${Do} + ${${UN}StrTok} $7 $9 ";" $8 "0" ; $7 = next entry, $8 = entry counter + + ${If} $7 == "" ; If we've run out of entries, + ${ExitDo} ; were done + ${EndIf} ; + + ; Remove leading and trailing spaces from this entry (critical step for Action=Remove) + ${Do} + StrCpy $R0 $7 1 + ${If} $R0 != " " + ${ExitDo} + ${EndIf} + StrCpy $7 $7 "" 1 ; Remove leading space + ${Loop} + ${Do} + StrCpy $R0 $7 1 -1 + ${If} $R0 != " " + ${ExitDo} + ${EndIf} + StrCpy $7 $7 -1 ; Remove trailing space + ${Loop} + ${If} $7 == $4 ; If string matches, remove it by not appending it + StrCpy $6 1 ; Set 'found' flag + ${ElseIf} $7 != $4 ; If string does NOT match + ${AndIf} $0 == "" ; and the 1st string being added to $0, + StrCpy $0 $7 ; copy it to $0 without a prepended semicolon + ${ElseIf} $7 != $4 ; If string does NOT match + ${AndIf} $0 != "" ; and this is NOT the 1st string to be added to $0, + StrCpy $0 $0;$7 ; append path to $0 with a prepended semicolon + ${EndIf} ; + + IntOp $8 $8 + 1 ; Bump counter + ${Loop} ; Check for duplicates until we run out of paths + ${EndIf} + + ; Step 4: Perform the requested Action + ; + ${If} $2 != "R" ; If Append or Prepend + ${If} $6 == 1 ; And if we found the target + DetailPrint "Target is already present in $1. It will be removed and" + ${EndIf} + ${If} $0 == "" ; If EnvVar is (now) empty + StrCpy $0 $4 ; just copy PathString to EnvVar + ${If} $6 == 0 ; If found flag is either 0 + ${OrIf} $6 == "" ; or blank (if EnvVarName is empty) + DetailPrint "$1 was empty and has been updated with the target" + ${EndIf} + ${ElseIf} $2 == "A" ; If Append (and EnvVar is not empty), + StrCpy $0 $0;$4 ; append PathString + ${If} $6 == 1 + DetailPrint "appended to $1" + ${Else} + DetailPrint "Target was appended to $1" + ${EndIf} + ${Else} ; If Prepend (and EnvVar is not empty), + StrCpy $0 $4;$0 ; prepend PathString + ${If} $6 == 1 + DetailPrint "prepended to $1" + ${Else} + DetailPrint "Target was prepended to $1" + ${EndIf} + ${EndIf} + ${Else} ; If Action = Remove + ${If} $6 == 1 ; and we found the target + DetailPrint "Target was found and removed from $1" + ${Else} + DetailPrint "Target was NOT found in $1 (nothing to remove)" + ${EndIf} + ${If} $0 == "" + DetailPrint "$1 is now empty" + ${EndIf} + ${EndIf} + + ; Step 5: Update the registry at RegLoc with the updated EnvVar and announce the change + ; + ClearErrors + ${If} $3 == HKLM + WriteRegExpandStr ${hklm_all_users} $1 $0 ; Write it in all users section + ${ElseIf} $3 == HKCU + WriteRegExpandStr ${hkcu_current_user} $1 $0 ; Write it to current user section + ${EndIf} + + IfErrors 0 +4 + MessageBox MB_OK|MB_ICONEXCLAMATION "Could not write updated $1 to $3" + DetailPrint "Could not write updated $1 to $3" + Goto EnvVarUpdate_Restore_Vars + + ; "Export" our change + SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000 + + EnvVarUpdate_Restore_Vars: + ; + ; Restore the user's variables and return ResultVar + Pop $R0 + Pop $9 + Pop $8 + Pop $7 + Pop $6 + Pop $5 + Pop $4 + Pop $3 + Pop $2 + Pop $1 + Push $0 ; Push my $0 (ResultVar) + Exch + Pop $0 ; Restore his $0 + +FunctionEnd + +!macroend ; EnvVarUpdate UN +!insertmacro EnvVarUpdate "" +!insertmacro EnvVarUpdate "un." +;----------------------------------- EnvVarUpdate end---------------------------------------- + +!verbose pop +!endif diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_install.ico b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_install.ico new file mode 100644 index 0000000000000000000000000000000000000000..28339848036c83f167765197b9a689681fc4450e GIT binary patch literal 766 zcmaJPWTE{U78(RANmf{dfw?S8 zA|D>|m?QBhVZ?$Im6m)CWnQbd$V^)kU{$oLIE8B literal 0 HcmV?d00001 diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_pathpage.ini b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_pathpage.ini new file mode 100644 index 00000000..ea2d8e3d --- /dev/null +++ b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_pathpage.ini @@ -0,0 +1,48 @@ +[Settings] +NumFields=5 + +[Field 1] +Type=CheckBox +Text=Set up PATH environment variable to include GTK+ (recommended) +Left=0 +Right=-1 +Top=10 +Bottom=30 +State=1 + +[Field 2] +Type=Label +Text=Install DLL files to: +Left=0 +Right=-1 +Top=50 +Bottom=65 + +[Field 3] +Type=RadioButton +Text=\bin (recommended) +Flags=Group +State=1 +Left=0 +Right=-1 +Top=65 +Bottom=80 + +[Field 4] +Type=RadioButton +Text=\lib (required for compatibility with some packages) +State=0 +Left=0 +Right=-1 +Top=80 +Bottom=95 + +[Field 5] +Type=RadioButton +Text= +State=0 +Left=0 +Right=-1 +Top=95 +Bottom=110 + diff --git a/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_uninstall.ico b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_uninstall.ico new file mode 100644 index 0000000000000000000000000000000000000000..9b336f06d739754912b6ec63aa8ad921c0a39bd2 GIT binary patch literal 766 zcmbu7F>-@25Jf+6W=NM*X`#$5l3U?U+d=0maTL#_N$HXzj&Nl2eZcXHL^V;>Ky}I}%sMrHjF5 z26Gn!@0SHwxJ$ulvLUu(oM7CU19f1t