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 00000000..2dc0455b Binary files /dev/null and b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk-engine/libpixmap.dll differ 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 00000000..fac4b78f Binary files /dev/null and b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/gtk.ico differ 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 00000000..28339848 Binary files /dev/null and b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_install.ico differ 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 00000000..9b336f06 Binary files /dev/null and b/gtk2-nsis-pack/trunk/gtk2-nsis-pack/nsi_uninstall.ico differ