Compare commits
14 Commits
2014-09-28
...
2016-01-27
Author | SHA1 | Date | |
---|---|---|---|
1c9141a50b | |||
d55963d2a7 | |||
7e9191ba33 | |||
9adcfe1399 | |||
5ccd4e14ef | |||
842e785b0a | |||
a8d71d9e8f | |||
ed9543055c | |||
beb82a20c4 | |||
6913ebb81a | |||
9099de89b6 | |||
684f71904c | |||
97c43bccc7 | |||
61163067dd |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
*~
|
||||
gtk2-runtime*-ts-win64*exe
|
||||
gtk3-runtime*-ts-win64*exe
|
||||
*.swp
|
||||
|
53
README.md
53
README.md
@ -3,7 +3,7 @@ GTK+ for Windows Runtime Environment Installer: 64-bit
|
||||
|
||||
This repository is a fork of the [GTK+ for Windows Runtime Environment Installer](http://gtk-win.sourceforge.net) that was originally created
|
||||
by Alexander Shaduri.
|
||||
My efforts here will focus on creating a **64-bit version** of the runtime that he has been providing so far, using up to date versions of GTK+ and its dependencies.
|
||||
My efforts here will focus on creating a **64-bit version** of the GTK+-2 runtime that he has been providing so far, using up to date versions of GTK+ and its dependencies. Recently I have also created a 64-bit **GTK+-3 runtime package**. All packages now contain **Gtkmm** and its dependencies too. Since the GTK+ developers recently dropped support for stock icons (a mistake of epic proportions IMHO...), I added the Adwaita icon theme to the GTK+-3 runtime, so you can still enjoy pretty filechooserdialogs etc! I have also added a couple of commonly used libraries such as libxml++ and libxslt.
|
||||
|
||||
The installers can be found [here](http://lvserver.ugent.be/gtk-win64/).
|
||||
|
||||
@ -11,29 +11,48 @@ The installers can be found [here](http://lvserver.ugent.be/gtk-win64/).
|
||||
|
||||
Both for convencience as well as for increased reliability across installations, it is recommended for developers to compile and link against the GTK+ SDK that I used to create the installers. This SDK can also be obtained at the aforementioned url.
|
||||
|
||||
The current release (gtk2-runtime-2.24.24-2014-09-28-ts-win64.exe) has been compiled using GCC 4.8.1 (MinGW-w64 installed from TDM-GCC).
|
||||
The current releases ([gtk2-runtime-2.24.29-2016-01-10-ts-win64.exe](http://lvserver.ugent.be/gtk-win64/gtk2-runtime/gtk2-runtime-2.24.29-2016-01-10-ts-win64.exe) and [gtk3-runtime-3.18.6-2016-01-10-ts-win64.exe](http://lvserver.ugent.be/gtk-win64/gtk3-runtime/gtk3-runtime-3.18.6-2016-01-10-ts-win64.exe)) have been compiled using GCC 5.1.0 (MinGW-w64 installed from TDM-GCC).
|
||||
The included GTK+ dependencies were selected according to the flowchart used by [Hexchat](http://hexchat.github.io/gtk-win32/). The source tarballs can be obtained by clicking on the names of the dependencies in the following list:
|
||||
|
||||
* [atk](http://ftp.gnome.org/pub/GNOME/sources/atk/) (2.14.0)
|
||||
* [cairo](http://cairographics.org/releases/) (1.12.16)
|
||||
* [adwaita icon theme](http://ftp.gnome.org/pub/GNOME/sources/adwaita-icon-theme/) (3.18.0)
|
||||
* [atk](http://ftp.gnome.org/pub/GNOME/sources/atk/) (2.18.0)
|
||||
* [atkmm](http://ftp.gnome.org/pub/GNOME/sources/atkmm/) (2.24.2)
|
||||
* [cairo](http://cairographics.org/releases/) (1.14.6)
|
||||
* [cairomm](http://cairographics.org/releases/) (1.12.0)
|
||||
* [fontconfig](http://www.freedesktop.org/software/fontconfig/release/) (2.11.1)
|
||||
* [freetype](http://www.freetype.org/download.html) (2.5.3)
|
||||
* [gdk-pixbuf](http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/) (2.31.1)
|
||||
* [gettext](http://ftp.gnu.org/pub/gnu/gettext/) (0.19.2)
|
||||
* [glib](http://ftp.gnome.org/pub/GNOME/sources/glib/) (2.42.0)
|
||||
* [gtk](http://ftp.gnome.org/pub/GNOME/sources/gtk+/) (2.24.24)
|
||||
* [harfbuzz](http://www.freedesktop.org/software/harfbuzz/release/) (0.9.35)
|
||||
* [libffi](http://sourceware.org/libffi/) (3.1)
|
||||
* [libpng](http://sourceforge.net/project/showfiles.php?group_id=5624) (1.6.13)
|
||||
* [libxml2](http://xmlsoft.org/sources/) (2.9.1)
|
||||
* [pango](http://ftp.gnome.org/pub/GNOME/sources/pango/) (1.36.8)
|
||||
* [pixman](http://cairographics.org/releases/) (0.32.6)
|
||||
* [freetype](http://www.freetype.org/download.html) (2.6.2)
|
||||
* [gdk-pixbuf](http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/) (2.32.3)
|
||||
* [gettext](http://ftp.gnu.org/pub/gnu/gettext/) (0.19.7)
|
||||
* [glib](http://ftp.gnome.org/pub/GNOME/sources/glib/) (2.46.2)
|
||||
* [glibmm](http://ftp.gnome.org/pub/GNOME/sources/glibmm/) (2.46.3)
|
||||
* [gtk2](http://ftp.gnome.org/pub/GNOME/sources/gtk+/) (2.24.29)
|
||||
* [gtk3](http://ftp.gnome.org/pub/GNOME/sources/gtk+/) (3.18.6)
|
||||
* [gtkmm2](http://ftp.gnome.org/pub/GNOME/sources/gtkmm) (2.24.4)
|
||||
* [gtkmm3](http://ftp.gnome.org/pub/GNOME/sources/gtkmm) (3.18.0)
|
||||
* [harfbuzz](http://www.freedesktop.org/software/harfbuzz/release/) (1.1.2)
|
||||
* [hicolor-icon-theme](http://icon-theme.freedesktop.org/releases/) (0.15)
|
||||
* [icon-naming-utils](http://tango.freedesktop.org/releases/) (0.8.90)
|
||||
* [intltool](http://ftp.gnome.org/pub/gnome/sources/intltool/) (0.51.0)
|
||||
* [json-glib](http://ftp.gnome.org/pub/gnome/sources/json-glib/) (1.0.4)
|
||||
* [libepoxy](https://github.com/anholt/libepoxy) (1.3.1)
|
||||
* [libffi](http://sourceware.org/libffi/) (3.2.1)
|
||||
* [libpng](http://sourceforge.net/project/showfiles.php?group_id=5624) (1.6.20)
|
||||
* [libsigc++](http://ftp.gnome.org/pub/GNOME/sources/libsigc++/) (2.6.2)
|
||||
* [libxml2](http://xmlsoft.org/sources/) (2.9.3)
|
||||
* [libxml++](http://ftp.gnome.org/pub/GNOME/sources/libxml++/) (2.38.1)
|
||||
* [libxslt](http://xmlsoft.org/sources/) (1.1.28)
|
||||
* [mm-common](http://ftp.gnome.org/pub/GNOME/sources/mm-common/) (0.9.9)
|
||||
* [pango](http://ftp.gnome.org/pub/GNOME/sources/pango/) (1.38.1)
|
||||
* [pangomm](http://ftp.gnome.org/pub/GNOME/sources/pangomm/) (2.38.1)
|
||||
* [pixman](http://cairographics.org/releases/) (0.32.8)
|
||||
* [pkg-config](http://pkgconfig.freedesktop.org/releases/) (0.29)
|
||||
* [win-iconv](http://code.google.com/p/win-iconv/downloads/list) (0.0.6)
|
||||
* [zlib](http://www.zlib.net) (1.2.8)
|
||||
|
||||
For all other information regarding how to use the installer, the reader is kindly referred to the [Alexander Shaduri's website](http://gtk-win.sourceforge.net) of the GTK for Windows runtime environment installer. The only difference with the installers found at this website is that mine DO NOT have the `compatdlls` option, but this should present no problems to any user.
|
||||
For all other information regarding how to use the installer, the reader is kindly referred to [Alexander Shaduri's website](http://gtk-win.sourceforge.net) of the GTK for Windows runtime environment installer. The only difference with the installers found at his website is that mine DO NOT have the `compatdlls` option, but this should present no problems to any user.
|
||||
|
||||
Personally I use this installer in my [XMI-MSIM project](http://github.com/xmimsim). You may want to have a look at my Inno Setup ([new](https://github.com/tschoonj/xmimsim/blob/master/nsis/xmimsim.iss)) and NSIS ([old](https://github.com/tschoonj/xmimsim/blob/XMI-MSIM-4.0/nsis/xmimsim-win64.nsi.in)) based installers.
|
||||
Personally I use this installer in my [XMI-MSIM project](http://github.com/xmimsim). You may want to have a look at my Inno Setup ([new](https://github.com/tschoonj/xmimsim/blob/master/windows/xmimsim.iss)) and NSIS ([old](https://github.com/tschoonj/xmimsim/blob/XMI-MSIM-4.0/nsis/xmimsim-win64.nsi.in)) based installers.
|
||||
|
||||
Those interested in scientific plotting using Gtkmm3 may want to have a look at my project [Gtkmm-PLplot](https://github.com/tschoonj/gtkmm-plplot). Documentation and examples can be found [here](http://tschoonj.github.io/gtkmm-plplot)
|
||||
|
||||
Tom Schoonjans
|
||||
|
BIN
gtk-nsis-pack/bin/fc-cache.exe
Normal file
BIN
gtk-nsis-pack/bin/fc-cache.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/fc-cat.exe
Normal file
BIN
gtk-nsis-pack/bin/fc-cat.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/fc-list.exe
Normal file
BIN
gtk-nsis-pack/bin/fc-list.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/fc-match.exe
Normal file
BIN
gtk-nsis-pack/bin/fc-match.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/fc-pattern.exe
Normal file
BIN
gtk-nsis-pack/bin/fc-pattern.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/fc-query.exe
Normal file
BIN
gtk-nsis-pack/bin/fc-query.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/fc-scan.exe
Normal file
BIN
gtk-nsis-pack/bin/fc-scan.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/fc-validate.exe
Normal file
BIN
gtk-nsis-pack/bin/fc-validate.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/gdk-pixbuf-query-loaders.exe
Normal file
BIN
gtk-nsis-pack/bin/gdk-pixbuf-query-loaders.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/gspawn-win64-helper-console.exe
Normal file
BIN
gtk-nsis-pack/bin/gspawn-win64-helper-console.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/gspawn-win64-helper.exe
Normal file
BIN
gtk-nsis-pack/bin/gspawn-win64-helper.exe
Normal file
Binary file not shown.
@ -146,8 +146,9 @@ def copy_properties(node, props, prop_dict):
|
||||
|
||||
class GtkBuilderConverter(object):
|
||||
|
||||
def __init__(self, skip_windows, root):
|
||||
def __init__(self, skip_windows, target_version, root):
|
||||
self.skip_windows = skip_windows
|
||||
self.target_version = target_version
|
||||
self.root = root
|
||||
self.root_objects = []
|
||||
self.objects = {}
|
||||
@ -295,6 +296,25 @@ class GtkBuilderConverter(object):
|
||||
self._convert_menu(node, popup=True)
|
||||
elif klass in WINDOWS and self.skip_windows:
|
||||
self._remove_window(node)
|
||||
|
||||
if self.target_version == "3.0":
|
||||
if klass == "GtkComboBoxEntry":
|
||||
node.setAttribute("class","GtkComboBox")
|
||||
prop = self._dom.createElement("property")
|
||||
prop.setAttribute("name", "has-entry")
|
||||
prop.appendChild(self._dom.createTextNode("True"))
|
||||
node.appendChild(prop)
|
||||
elif klass == "GtkDialog":
|
||||
for child in node.childNodes:
|
||||
if child.nodeType != Node.ELEMENT_NODE:
|
||||
continue
|
||||
if child.tagName != 'property':
|
||||
continue
|
||||
if (child.getAttribute("name") not in ("has-separator", "has_separator")):
|
||||
continue;
|
||||
node.removeChild(child)
|
||||
break
|
||||
|
||||
self._default_widget_converter(node)
|
||||
|
||||
def _default_widget_converter(self, node):
|
||||
@ -732,7 +752,10 @@ def usage():
|
||||
def main(args):
|
||||
try:
|
||||
opts, args = getopt.getopt(args[1:], "hwr:",
|
||||
["help", "skip-windows", "root="])
|
||||
["help",
|
||||
"skip-windows",
|
||||
"target-version=",
|
||||
"root="])
|
||||
except getopt.GetoptError:
|
||||
usage()
|
||||
return 2
|
||||
@ -746,6 +769,7 @@ def main(args):
|
||||
skip_windows = False
|
||||
split = False
|
||||
root = None
|
||||
target_version = "2.0"
|
||||
for o, a in opts:
|
||||
if o in ("-h", "--help"):
|
||||
usage()
|
||||
@ -754,8 +778,11 @@ def main(args):
|
||||
root = a
|
||||
elif o in ("-w", "--skip-windows"):
|
||||
skip_windows = True
|
||||
elif o in ("-t", "--target-version"):
|
||||
target_version = a
|
||||
|
||||
conv = GtkBuilderConverter(skip_windows=skip_windows,
|
||||
target_version=target_version,
|
||||
root=root)
|
||||
conv.parse_file(input_filename)
|
||||
|
BIN
gtk-nsis-pack/bin/gtk-demo.exe
Normal file
BIN
gtk-nsis-pack/bin/gtk-demo.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/gtk-query-immodules-2.0.exe
Normal file
BIN
gtk-nsis-pack/bin/gtk-query-immodules-2.0.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/gtk-query-immodules-3.0.exe
Normal file
BIN
gtk-nsis-pack/bin/gtk-query-immodules-3.0.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/gtk-update-icon-cache.exe
Normal file
BIN
gtk-nsis-pack/bin/gtk-update-icon-cache.exe
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libasprintf-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libasprintf-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libatk-1.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libatk-1.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libatkmm-1.6-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libatkmm-1.6-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libcairo-2.dll
Normal file
BIN
gtk-nsis-pack/bin/libcairo-2.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libcairo-gobject-2.dll
Normal file
BIN
gtk-nsis-pack/bin/libcairo-gobject-2.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libcairo-script-interpreter-2.dll
Normal file
BIN
gtk-nsis-pack/bin/libcairo-script-interpreter-2.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libcairomm-1.0-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libcairomm-1.0-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libepoxy-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libepoxy-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libexslt-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libexslt-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libffi-6.dll
Normal file
BIN
gtk-nsis-pack/bin/libffi-6.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libfontconfig-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libfontconfig-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libfreetype-6.dll
Normal file
BIN
gtk-nsis-pack/bin/libfreetype-6.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgailutil-18.dll
Normal file
BIN
gtk-nsis-pack/bin/libgailutil-18.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgailutil-3-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libgailutil-3-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgcc_s_seh_64-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libgcc_s_seh_64-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgdk-3-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libgdk-3-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgdk-win32-2.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libgdk-win32-2.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgdk_pixbuf-2.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libgdk_pixbuf-2.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgdkmm-2.4-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libgdkmm-2.4-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgdkmm-3.0-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libgdkmm-3.0-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgio-2.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libgio-2.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgiomm-2.4-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libgiomm-2.4-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libglib-2.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libglib-2.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libglibmm-2.4-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libglibmm-2.4-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libglibmm_generate_extra_defs-2.4-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libglibmm_generate_extra_defs-2.4-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgmodule-2.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libgmodule-2.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgobject-2.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libgobject-2.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgthread-2.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libgthread-2.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgtk-3-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libgtk-3-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgtk-win32-2.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libgtk-win32-2.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgtkmm-2.4-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libgtkmm-2.4-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libgtkmm-3.0-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libgtkmm-3.0-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libharfbuzz-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libharfbuzz-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libintl-8.dll
Normal file
BIN
gtk-nsis-pack/bin/libintl-8.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libjson-glib-1.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libjson-glib-1.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libpango-1.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libpango-1.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libpangocairo-1.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libpangocairo-1.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libpangoft2-1.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libpangoft2-1.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libpangomm-1.4-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libpangomm-1.4-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libpangowin32-1.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libpangowin32-1.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libpixman-1-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libpixman-1-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libpng16-16.dll
Normal file
BIN
gtk-nsis-pack/bin/libpng16-16.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libsigc-2.0-0.dll
Normal file
BIN
gtk-nsis-pack/bin/libsigc-2.0-0.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libstdc++_64-6.dll
Normal file
BIN
gtk-nsis-pack/bin/libstdc++_64-6.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libxml++-2.6-2.dll
Normal file
BIN
gtk-nsis-pack/bin/libxml++-2.6-2.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libxml2-2.dll
Normal file
BIN
gtk-nsis-pack/bin/libxml2-2.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/libxslt-1.dll
Normal file
BIN
gtk-nsis-pack/bin/libxslt-1.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/bin/pango-querymodules.exe
Normal file
BIN
gtk-nsis-pack/bin/pango-querymodules.exe
Normal file
Binary file not shown.
22
gtk-nsis-pack/etc/gtk-3.0/im-multipress.conf
Normal file
22
gtk-nsis-pack/etc/gtk-3.0/im-multipress.conf
Normal file
@ -0,0 +1,22 @@
|
||||
# Example configuration file for the GTK+ Multipress Input Method
|
||||
# Authored by Openismus GmbH, 2009.
|
||||
#
|
||||
# This file follows the GKeyFile format. On the left of the equal sign goes
|
||||
# the key that you press repeatedly to iterate through the text items listed
|
||||
# on the right-hand side. The list items are separated by semicolons ";" and
|
||||
# consist of one or more characters each. The backslash "\" is used to escape
|
||||
# characters; for instance "\;" for a literal semicolon.
|
||||
#
|
||||
# The example configuration below imitates the behavior of a standard mobile
|
||||
# phone by a major manufacturer, with German language setting.
|
||||
[keys]
|
||||
KP_1 = .;,;?;!;';";1;-;(;);@;/;:;_
|
||||
KP_2 = a;b;c;2;ä;à;á;ã;â;å;æ;ç
|
||||
KP_3 = d;e;f;3;è;é;ë;ê;ð
|
||||
KP_4 = g;h;i;4;ì;í;î;ï
|
||||
KP_5 = j;k;l;5;£
|
||||
KP_6 = m;n;o;6;ö;ò;ó;ô;õ;ø;ñ
|
||||
KP_7 = p;q;r;s;7;ß;$
|
||||
KP_8 = t;u;v;8;ü;ù;ú;û
|
||||
KP_9 = w;x;y;z;9;ý;þ
|
||||
KP_0 = \s;0
|
3
gtk-nsis-pack/etc/gtk-3.0/settings.ini
Normal file
3
gtk-nsis-pack/etc/gtk-3.0/settings.ini
Normal file
@ -0,0 +1,3 @@
|
||||
[Settings]
|
||||
gtk-theme-name = gtk-win32
|
||||
gtk-icon-theme-name = Adwaita
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
932
gtk-nsis-pack/gtk2-runtime.ts.nsi
Normal file
932
gtk-nsis-pack/gtk2-runtime.ts.nsi
Normal file
@ -0,0 +1,932 @@
|
||||
|
||||
; NSIS2 Script for GTK2-Runtime
|
||||
; by Alexander Shaduri <ashaduri 'at' gmail.com>.
|
||||
; modified by Tom Schoonjans <Tom.Schoonjans 'at' gmail.com>
|
||||
; 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.29"
|
||||
!define GTK_BIN_VERSION "2.10.0"
|
||||
!define PRODUCT_VERSION "${GTK_VERSION}-2016-01-10-ts-win64"
|
||||
!define PRODUCT_NAME "GTK2-Runtime Win64"
|
||||
!define PRODUCT_PUBLISHER "Tom Schoonjans"
|
||||
!define PRODUCT_WEB_SITE "https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer"
|
||||
!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
|
||||
!include "x64.nsh"
|
||||
!include "LogicLib.nsh"
|
||||
|
||||
|
||||
; --------------- 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 "$PROGRAMFILES64\${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_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 <instpath>\bin, <instpath>\lib or <instpath>\ .
|
||||
; 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 64-bit"
|
||||
LangString TEXT_IO_TITLE ${LANG_ENGLISH} "GTK2 Runtime 64-bit"
|
||||
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_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 bin\libatk-1.0-0.dll ; atk
|
||||
File bin\libatkmm-1.6-1.dll ; atk
|
||||
File bin\libcairo-2.dll ; cairo, needed by gtk
|
||||
File bin\libcairo-gobject-2.dll ; cairo. Doesn't seem to be required, but since we're distributing cairo...
|
||||
File bin\libcairo-script-interpreter-2.dll ; cairo. Doesn't seem to be required, but since we're distributing cairo...
|
||||
File bin\libcairomm-1.0-1.dll
|
||||
File bin\libexslt-0.dll
|
||||
File bin\libffi-6.dll ; libffi is required by glib
|
||||
File bin\libfontconfig-1.dll ; fontconfig is needed for ft2 pango backend
|
||||
File bin\libfreetype-6.dll ; freetype is needed for ft2 pango backend
|
||||
File bin\libgailutil-18.dll ; from gtk
|
||||
File bin\libgdk_pixbuf-2.0-0.dll ; from gtk
|
||||
File bin\libgdk-win32-2.0-0.dll ; from gtk
|
||||
File bin\libgdkmm-2.4-1.dll
|
||||
File bin\libgio-2.0-0.dll ; from glib
|
||||
File bin\libglib-2.0-0.dll ; glib
|
||||
File bin\libglibmm-2.4-1.dll ; glib
|
||||
File bin\libgiomm-2.4-1.dll ; glib
|
||||
File bin\libsigc-2.0-0.dll
|
||||
File bin\libglibmm_generate_extra_defs-2.4-1.dll ; glib
|
||||
File bin\libgmodule-2.0-0.dll ; from glib
|
||||
File bin\libgobject-2.0-0.dll ; from glib
|
||||
File bin\libgthread-2.0-0.dll ; from glib
|
||||
File bin\libgtk-win32-2.0-0.dll ; gtk
|
||||
File bin\libgtkmm-2.4-1.dll
|
||||
File bin\libharfbuzz-0.dll
|
||||
File bin\libintl-8.dll ; gettext, needed by all i18n libs
|
||||
File bin\libjson-glib-1.0-0.dll ; gettext, needed by all i18n libs
|
||||
File bin\libpango-1.0-0.dll ; pango, needed by gtk
|
||||
File bin\libpangocairo-1.0-0.dll ; pango, needed by gtk
|
||||
File bin\libpangowin32-1.0-0.dll ; pango, needed by gtk
|
||||
File bin\libpangoft2-1.0-0.dll ; pango, needed by gtk
|
||||
File bin\libpangomm-1.4-1.dll
|
||||
File bin\libpixman-1-0.dll ; libpixman, needed by cairo
|
||||
File bin\libpng16-16.dll ; for gdk_pixbuf loader.
|
||||
File bin\libxml++-2.6-2.dll ; fontconfig needs this
|
||||
File bin\libxml2-2.dll ; fontconfig needs this
|
||||
File bin\libxslt-1.dll ; fontconfig needs this
|
||||
File bin\zlib1.dll ; png and many others need this
|
||||
File bin\libstdc++_64-6.dll
|
||||
File bin\libgcc_s_seh_64-1.dll
|
||||
|
||||
; 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-cat.exe
|
||||
File bin\fc-list.exe
|
||||
File bin\fc-match.exe
|
||||
File bin\fc-pattern.exe
|
||||
File bin\fc-query.exe
|
||||
File bin\fc-scan.exe
|
||||
File bin\fc-validate.exe
|
||||
File bin\gdk-pixbuf-query-loaders.exe ; from gdk_pixbuf
|
||||
File bin\gspawn-win64-helper.exe
|
||||
File bin\gspawn-win64-helper-console.exe
|
||||
File bin\gtk-query-immodules-2.0.exe
|
||||
File bin\gtk-update-icon-cache.exe
|
||||
|
||||
|
||||
SetOutPath "$INSTDIR\etc"
|
||||
SetOverwrite off
|
||||
File /r etc\gtk-2.0
|
||||
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
|
||||
|
||||
SetOutPath "$INSTDIR\share\themes\Emacs"
|
||||
File /r share\themes\Emacs\gtk-2.0-key
|
||||
SetOutPath "$INSTDIR\share\themes"
|
||||
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 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 "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+ 64-bit Runtime Libraries"
|
||||
!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
|
||||
${IfNot} ${RunningX64}
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION "This installation requires a 64-bit Windows system" /SD IDOK
|
||||
Abort
|
||||
${EndIf}
|
||||
|
||||
SetRegView 64
|
||||
|
||||
|
||||
|
||||
!insertmacro INSTALLOPTIONS_EXTRACT "nsi_pathpage.ini"
|
||||
|
||||
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" "/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 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}" "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 64-bit"
|
||||
CreateShortCut "$SMPROGRAMS\GTK2 Runtime 64-bit\Uninstall GTK2 Runtime.lnk" "$INSTDIR\gtk2_runtime_uninst.exe" "" ""
|
||||
WriteIniStr "$SMPROGRAMS\GTK2 Runtime 64-bit\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)
|
||||
|
||||
|
||||
Function un.onInit
|
||||
SetRegView 64
|
||||
${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
|
||||
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-cat.exe
|
||||
Delete $LIB_INSTDIR\fc-list.exe
|
||||
Delete $LIB_INSTDIR\fc-match.exe
|
||||
Delete $LIB_INSTDIR\fc-pattern.exe
|
||||
Delete $LIB_INSTDIR\fc-query.exe
|
||||
Delete $LIB_INSTDIR\fc-scan.exe
|
||||
Delete $LIB_INSTDIR\fc-validate.exe
|
||||
Delete $LIB_INSTDIR\gdk-pixbuf-query-loaders.exe
|
||||
Delete $LIB_INSTDIR\gspawn-win64-helper.exe
|
||||
Delete $LIB_INSTDIR\gspawn-win64-helper-console.exe
|
||||
Delete $LIB_INSTDIR\gtk-query-immodules-2.0.exe
|
||||
Delete $LIB_INSTDIR\gtk-update-icon-cache.exe
|
||||
|
||||
; dlls
|
||||
Delete $LIB_INSTDIR\libatk-1.0-0.dll ; atk
|
||||
Delete $LIB_INSTDIR\libatkmm-1.6-1.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\libcairomm-1.0-1.dll
|
||||
Delete $LIB_INSTDIR\libexslt-0.dll
|
||||
Delete $LIB_INSTDIR\libffi-6.dll ; libffi is required by glib
|
||||
Delete $LIB_INSTDIR\libfontconfig-1.dll ; fontconfig is needed for ft2 pango backend
|
||||
Delete $LIB_INSTDIR\libfreetype-6.dll ; freetype 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\libgdkmm-2.4-1.dll
|
||||
Delete $LIB_INSTDIR\libgio-2.0-0.dll ; from glib
|
||||
Delete $LIB_INSTDIR\libglib-2.0-0.dll ; glib
|
||||
Delete $LIB_INSTDIR\libglibmm-2.4-1.dll ; glib
|
||||
Delete $LIB_INSTDIR\libgiomm-2.4-1.dll ; glib
|
||||
Delete $LIB_INSTDIR\libsigc-2.0-0.dll ; glib
|
||||
Delete $LIB_INSTDIR\libglibmm_generate_extra_defs-2.4-1.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\libgtkmm-2.4-1.dll
|
||||
Delete $LIB_INSTDIR\libharfbuzz-0.dll
|
||||
Delete $LIB_INSTDIR\libintl-8.dll ; gettext, needed by all i18n libs
|
||||
Delete $LIB_INSTDIR\libjson-glib-1.0-0.dll
|
||||
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\libpangowin32-1.0-0.dll ; pango, needed by gtk
|
||||
Delete $LIB_INSTDIR\libpangoft2-1.0-0.dll ; pango, needed by gtk
|
||||
Delete $LIB_INSTDIR\libpangomm-1.4-1.dll
|
||||
Delete $LIB_INSTDIR\libpixman-1-0.dll ; libpixman, needed by cairo
|
||||
Delete $LIB_INSTDIR\libpng16-16.dll ; for gdk_pixbuf loader.
|
||||
Delete $LIB_INSTDIR\libxml2-2.dll ; fontconfig needs this
|
||||
Delete $LIB_INSTDIR\libxslt-1.dll ; fontconfig needs this
|
||||
Delete $LIB_INSTDIR\libxml++-2.6-2.dll ; fontconfig needs this
|
||||
Delete $LIB_INSTDIR\zlib1.dll ; png and many others need this
|
||||
Delete $LIB_INSTDIR\libstdc++_64-6.dll
|
||||
Delete $LIB_INSTDIR\libgcc_s_seh_64-1.dll
|
||||
|
||||
|
||||
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_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 64-bit\Uninstall GTK2 Runtime.lnk"
|
||||
Delete "$SMPROGRAMS\GTK2 Runtime 64-bit\Go to the website.url"
|
||||
RMDir "$SMPROGRAMS\GTK2 Runtime 64-bit" ; 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_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"
|
||||
Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gtk30.mo"
|
||||
Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\json-glib-1.0.mo"
|
||||
Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gtk30-properties.mo"
|
||||
Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gettext-runtime.mo"
|
||||
Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gettext-tools.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
|
||||
|
||||
un_notranslations:
|
||||
RMDir "$INSTDIR\share\locale" ; only if empty, not to remove the other programs' translations
|
||||
|
||||
|
||||
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 "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
|
936
gtk-nsis-pack/gtk3-runtime.ts.nsi
Normal file
936
gtk-nsis-pack/gtk3-runtime.ts.nsi
Normal file
@ -0,0 +1,936 @@
|
||||
|
||||
; NSIS2 Script for GTK3-Runtime
|
||||
; based on the Gtk2-Runtime script
|
||||
; by Alexander Shaduri <ashaduri 'at' gmail.com>.
|
||||
; modified by Tom Schoonjans <Tom.Schoonjans 'at' gmail.com>
|
||||
; Compatible with NSIS Unicode 2.45.
|
||||
; Public Domain
|
||||
|
||||
; The naming convention is:
|
||||
; Product: GTK3-Runtime;
|
||||
; Directory and package names: gtk3-runtime.
|
||||
|
||||
|
||||
!define GTK_VERSION "3.18.6"
|
||||
!define GTK_BIN_VERSION "3.0.0"
|
||||
!define PRODUCT_VERSION "${GTK_VERSION}-2016-01-10-ts-win64"
|
||||
!define PRODUCT_NAME "GTK3-Runtime Win64"
|
||||
!define PRODUCT_PUBLISHER "Tom Schoonjans"
|
||||
!define PRODUCT_WEB_SITE "https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer"
|
||||
!define INSTALLER_OUTPUT_FILE "gtk3-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
|
||||
!include "x64.nsh"
|
||||
!include "LogicLib.nsh"
|
||||
|
||||
|
||||
; --------------- 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 "$PROGRAMFILES64\${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_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 <instpath>\bin, <instpath>\lib or <instpath>\ .
|
||||
; 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} "GTK3 Runtime 64-bit"
|
||||
LangString TEXT_IO_TITLE ${LANG_ENGLISH} "GTK3 Runtime 64-bit"
|
||||
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_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 bin\libatk-1.0-0.dll ; atk
|
||||
File bin\libatkmm-1.6-1.dll ; atk
|
||||
File bin\libcairo-2.dll ; cairo, needed by gtk
|
||||
File bin\libcairo-gobject-2.dll ; cairo. Doesn't seem to be required, but since we're distributing cairo...
|
||||
File bin\libcairo-script-interpreter-2.dll ; cairo. Doesn't seem to be required, but since we're distributing cairo...
|
||||
File bin\libcairomm-1.0-1.dll
|
||||
File bin\libepoxy-0.dll
|
||||
File bin\libexslt-0.dll
|
||||
File bin\libffi-6.dll ; libffi is required by glib
|
||||
File bin\libfontconfig-1.dll ; fontconfig is needed for ft2 pango backend
|
||||
File bin\libfreetype-6.dll ; freetype is needed for ft2 pango backend
|
||||
File bin\libgailutil-3-0.dll ; from gtk
|
||||
File bin\libgdk_pixbuf-2.0-0.dll ; from gtk
|
||||
File bin\libgdk-3-0.dll ; from gtk
|
||||
File bin\libgdkmm-3.0-1.dll
|
||||
File bin\libgio-2.0-0.dll ; from glib
|
||||
File bin\libglib-2.0-0.dll ; glib
|
||||
File bin\libglibmm-2.4-1.dll ; glib
|
||||
File bin\libgiomm-2.4-1.dll ; glib
|
||||
File bin\libsigc-2.0-0.dll
|
||||
File bin\libglibmm_generate_extra_defs-2.4-1.dll ; glib
|
||||
File bin\libgmodule-2.0-0.dll ; from glib
|
||||
File bin\libgobject-2.0-0.dll ; from glib
|
||||
File bin\libgthread-2.0-0.dll ; from glib
|
||||
File bin\libgtk-3-0.dll ; gtk
|
||||
File bin\libgtkmm-3.0-1.dll
|
||||
File bin\libharfbuzz-0.dll
|
||||
File bin\libintl-8.dll ; gettext, needed by all i18n libs
|
||||
File bin\libjson-glib-1.0-0.dll ; gettext, needed by all i18n libs
|
||||
File bin\libpango-1.0-0.dll ; pango, needed by gtk
|
||||
File bin\libpangocairo-1.0-0.dll ; pango, needed by gtk
|
||||
File bin\libpangowin32-1.0-0.dll ; pango, needed by gtk
|
||||
File bin\libpangoft2-1.0-0.dll ; pango, needed by gtk
|
||||
File bin\libpangomm-1.4-1.dll
|
||||
File bin\libpixman-1-0.dll ; libpixman, needed by cairo
|
||||
File bin\libpng16-16.dll ; for gdk_pixbuf loader.
|
||||
File bin\libxml++-2.6-2.dll ; fontconfig needs this
|
||||
File bin\libxml2-2.dll ; fontconfig needs this
|
||||
File bin\libxslt-1.dll ; fontconfig needs this
|
||||
File bin\zlib1.dll ; png and many others need this
|
||||
File bin\libstdc++_64-6.dll
|
||||
File bin\libgcc_s_seh_64-1.dll
|
||||
|
||||
; 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-cat.exe
|
||||
File bin\fc-list.exe
|
||||
File bin\fc-match.exe
|
||||
File bin\fc-pattern.exe
|
||||
File bin\fc-query.exe
|
||||
File bin\fc-scan.exe
|
||||
File bin\fc-validate.exe
|
||||
File bin\gdk-pixbuf-query-loaders.exe ; from gdk_pixbuf
|
||||
File bin\gspawn-win64-helper.exe
|
||||
File bin\gspawn-win64-helper-console.exe
|
||||
File bin\gtk-query-immodules-3.0.exe
|
||||
File bin\gtk-update-icon-cache.exe
|
||||
|
||||
|
||||
SetOutPath "$INSTDIR\etc"
|
||||
SetOverwrite off
|
||||
File /r etc\gtk-3.0
|
||||
SetOverwrite On
|
||||
|
||||
|
||||
SetOutPath "$INSTDIR\lib\gdk-pixbuf-2.0\2.10.0"
|
||||
File lib\gdk-pixbuf-2.0\2.10.0\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-3.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
|
||||
|
||||
SetOutPath "$INSTDIR\share\themes\Emacs"
|
||||
File /r share\themes\Emacs\gtk-3.0
|
||||
SetOutPath "$INSTDIR\share\themes\Default"
|
||||
File /r share\themes\Default\gtk-3.0
|
||||
|
||||
SetOutPath "$INSTDIR\share\glib-2.0"
|
||||
File /r share\glib-2.0\schemas
|
||||
|
||||
SetOutPath "$INSTDIR\share"
|
||||
File /r share\icons
|
||||
|
||||
SetOutPath "$INSTDIR\gtk3-runtime"
|
||||
; File gtk-postinstall.bat ; this file is generated now
|
||||
File license.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\gtk3-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 "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+ 64-bit Runtime Libraries"
|
||||
!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
|
||||
${IfNot} ${RunningX64}
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION "This installation requires a 64-bit Windows system" /SD IDOK
|
||||
Abort
|
||||
${EndIf}
|
||||
|
||||
SetRegView 64
|
||||
|
||||
|
||||
|
||||
!insertmacro INSTALLOPTIONS_EXTRACT "nsi_pathpage.ini"
|
||||
|
||||
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" "/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 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\gtk3_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}" "TranslationsInstalled" $SEC_TRANSLATIONS_INSTALLED
|
||||
|
||||
; compat with installer from http://gimp-win.sourceforge.net/
|
||||
WriteRegStr HKLM "SOFTWARE\GTK\3.0" "Path" "$INSTDIR"
|
||||
WriteRegStr HKLM "SOFTWARE\GTK\3.0" "Version" "${GTK_VERSION}"
|
||||
; compat with Dropline's GTK
|
||||
WriteRegStr HKLM "SOFTWARE\GTK\3.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\gtk3_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\gtk3-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\GTK3 Runtime 64-bit"
|
||||
CreateShortCut "$SMPROGRAMS\GTK3 Runtime 64-bit\Uninstall GTK3 Runtime.lnk" "$INSTDIR\gtk3_runtime_uninst.exe" "" ""
|
||||
WriteIniStr "$SMPROGRAMS\GTK3 Runtime 64-bit\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\gtk3-runtime\gtk3r-env.bat"
|
||||
Push $INSTDIR\gtk3-runtime\gtk3r-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)
|
||||
|
||||
|
||||
Function un.onInit
|
||||
SetRegView 64
|
||||
${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
|
||||
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-cat.exe
|
||||
Delete $LIB_INSTDIR\fc-list.exe
|
||||
Delete $LIB_INSTDIR\fc-match.exe
|
||||
Delete $LIB_INSTDIR\fc-pattern.exe
|
||||
Delete $LIB_INSTDIR\fc-query.exe
|
||||
Delete $LIB_INSTDIR\fc-scan.exe
|
||||
Delete $LIB_INSTDIR\fc-validate.exe
|
||||
Delete $LIB_INSTDIR\gdk-pixbuf-query-loaders.exe
|
||||
Delete $LIB_INSTDIR\gspawn-win64-helper.exe
|
||||
Delete $LIB_INSTDIR\gspawn-win64-helper-console.exe
|
||||
Delete $LIB_INSTDIR\gtk-query-immodules-3.0.exe
|
||||
Delete $LIB_INSTDIR\gtk-update-icon-cache.exe
|
||||
|
||||
; dlls
|
||||
Delete $LIB_INSTDIR\libatk-1.0-0.dll ; atk
|
||||
Delete $LIB_INSTDIR\libatkmm-1.6-1.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\libcairomm-1.0-1.dll
|
||||
Delete $LIB_INSTDIR\libepoxy-0.dll
|
||||
Delete $LIB_INSTDIR\libexslt-0.dll
|
||||
Delete $LIB_INSTDIR\libffi-6.dll ; libffi is required by glib
|
||||
Delete $LIB_INSTDIR\libfontconfig-1.dll ; fontconfig is needed for ft2 pango backend
|
||||
Delete $LIB_INSTDIR\libfreetype-6.dll ; freetype is needed for ft2 pango backend
|
||||
Delete $LIB_INSTDIR\libgailutil-3-0.dll ; from gtk
|
||||
Delete $LIB_INSTDIR\libgdk_pixbuf-2.0-0.dll ; from gtk
|
||||
Delete $LIB_INSTDIR\libgdk-3-0.dll ; from gtk
|
||||
Delete $LIB_INSTDIR\libgdkmm-3.0-1.dll
|
||||
Delete $LIB_INSTDIR\libgio-2.0-0.dll ; from glib
|
||||
Delete $LIB_INSTDIR\libglib-2.0-0.dll ; glib
|
||||
Delete $LIB_INSTDIR\libglibmm-2.4-1.dll ; glib
|
||||
Delete $LIB_INSTDIR\libgiomm-2.4-1.dll ; glib
|
||||
Delete $LIB_INSTDIR\libsigc-2.0-0.dll ; glib
|
||||
Delete $LIB_INSTDIR\libglibmm_generate_extra_defs-2.4-1.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-3-0.dll ; gtk
|
||||
Delete $LIB_INSTDIR\libgtkmm-3.0-1.dll
|
||||
Delete $LIB_INSTDIR\libharfbuzz-0.dll
|
||||
Delete $LIB_INSTDIR\libintl-8.dll ; gettext, needed by all i18n libs
|
||||
Delete $LIB_INSTDIR\libjson-glib-1.0-0.dll
|
||||
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\libpangowin32-1.0-0.dll ; pango, needed by gtk
|
||||
Delete $LIB_INSTDIR\libpangoft2-1.0-0.dll ; pango, needed by gtk
|
||||
Delete $LIB_INSTDIR\libpangomm-1.4-1.dll
|
||||
Delete $LIB_INSTDIR\libpixman-1-0.dll ; libpixman, needed by cairo
|
||||
Delete $LIB_INSTDIR\libpng16-16.dll ; for gdk_pixbuf loader.
|
||||
Delete $LIB_INSTDIR\libxslt-1.dll ; fontconfig needs this
|
||||
Delete $LIB_INSTDIR\libxml2-2.dll ; fontconfig needs this
|
||||
Delete $LIB_INSTDIR\libxml++-2.6-2.dll ; fontconfig needs this
|
||||
Delete $LIB_INSTDIR\zlib1.dll ; png and many others need this
|
||||
Delete $LIB_INSTDIR\libstdc++_64-6.dll
|
||||
Delete $LIB_INSTDIR\libgcc_s_seh_64-1.dll
|
||||
|
||||
|
||||
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_TRANSLATIONS_INSTALLED HKLM "SOFTWARE\${PRODUCT_NAME}" "TranslationsInstalled"
|
||||
|
||||
DeleteRegKey HKLM "SOFTWARE\GTK\3.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\GTK3 Runtime 64-bit\Uninstall GTK3 Runtime.lnk"
|
||||
Delete "$SMPROGRAMS\GTK3 Runtime 64-bit\Go to the website.url"
|
||||
RMDir "$SMPROGRAMS\GTK3 Runtime 64-bit" ; 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_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-3.0\im-multipress.conf"
|
||||
Delete "$INSTDIR\etc\gtk-3.0\settings.ini"
|
||||
RMDir "$INSTDIR\etc\gtk-3.0" ; only if empty
|
||||
RMDir "$INSTDIR\etc" ; only if empty
|
||||
|
||||
; some helper files here
|
||||
RMDir /r "$INSTDIR\gtk3-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\2.10.0\loaders.cache"
|
||||
; RMDir "$INSTDIR\lib\gdk-pixbuf-2.0\${GTK_BIN_VERSION}\loaders" ; not forced
|
||||
RMDir "$INSTDIR\lib\gdk-pixbuf-2.0\2.10.0" ; 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-3.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"
|
||||
Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gtk30.mo"
|
||||
Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gtk30-properties.mo"
|
||||
Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\json-glib-1.0.mo"
|
||||
Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gettext-runtime.mo"
|
||||
Delete "$INSTDIR\share\locale\$found_dir\LC_MESSAGES\gettext-tools.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
|
||||
|
||||
un_notranslations:
|
||||
RMDir "$INSTDIR\share\locale" ; only if empty, not to remove the other programs' translations
|
||||
|
||||
|
||||
RMDir /r "$INSTDIR\share\themes\Default"
|
||||
RMDir /r "$INSTDIR\share\themes\Emacs"
|
||||
RMDir /r "$INSTDIR\share\glib-2.0"
|
||||
RMDir /r "$INSTDIR\share\icons"
|
||||
|
||||
RMDir "$INSTDIR\share\themes" ; not forced
|
||||
RMDir "$INSTDIR\share" ; not forced
|
||||
|
||||
Delete "$INSTDIR\gtk3_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 GTK3R_PREFIX=$LIB_INSTDIR$\r$\n"
|
||||
FileWrite $R9 "$\r$\n"
|
||||
FileWrite $R9 "@echo Setting environment variables for GTK3-Runtime.$\r$\n"
|
||||
FileWrite $R9 "@echo.$\r$\n"
|
||||
FileWrite $R9 "$\r$\n"
|
||||
FileWrite $R9 "@echo set PATH=%GTK3R_PREFIX%;%%PATH%%$\r$\n"
|
||||
FileWrite $R9 "@set PATH=%GTK3R_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 "rem $\"$INSTDIR\bin\gdk-pixbuf-query-loaders.exe$\" > $\"$INSTDIR\etc\gtk-3.0\gdk-pixbuf.loaders$\"$\r$\n"
|
||||
FileWrite $R9 "$\"$INSTDIR\bin\gtk-query-immodules-3.0.exe$\" > $\"$INSTDIR\etc\gtk-3.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
|
BIN
gtk-nsis-pack/lib/gtk-2.0/2.10.0/engines/libpixmap.dll
Normal file
BIN
gtk-nsis-pack/lib/gtk-2.0/2.10.0/engines/libpixmap.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/lib/gtk-2.0/2.10.0/engines/libwimp.dll
Normal file
BIN
gtk-nsis-pack/lib/gtk-2.0/2.10.0/engines/libwimp.dll
Normal file
Binary file not shown.
BIN
gtk-nsis-pack/lib/gtk-2.0/modules/libgail.dll
Normal file
BIN
gtk-nsis-pack/lib/gtk-2.0/modules/libgail.dll
Normal file
Binary file not shown.
23
gtk-nsis-pack/license.txt
Normal file
23
gtk-nsis-pack/license.txt
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
You can find the latest version of this software at https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer
|
||||
You may reach the packager (Tom Schoonjans and Alexander Shaduri) by email at tom.schoonjans 'at' gmail.com and 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, atkmm, glibmm, gtkmm, pangomm, libsigc++: http://www.gtk.org/;
|
||||
Cairo, pixman, cairomm: http://cairographics.org/;
|
||||
Libxml2: http://xmlsoft.org/;
|
||||
Fontconfig: http://www.fontconfig.org/;
|
||||
Freetype2: http://www.freetype.org/;
|
||||
intl library (from gettext): http://www.gnu.org/software/gettext/;
|
||||
libiconv: https://code.google.com/p/win-iconv/;
|
||||
libpng: http://www.libpng.org/pub/png/libpng.html;
|
||||
harfbuzz: http://www.freedesktop.org/wiki/Software/HarfBuzz/;
|
||||
libffi: https://sourceware.org/libffi/;
|
||||
zlib: http://www.zlib.net/.
|
||||
|
||||
You may obtain the respective sources as well as their corresponding licenses at the URLs listed above.
|
||||
|
||||
All binaries contained within this installer were compiled by the author using GCC 4.9.2 64-bit provided by the TDM-GCC project (http://tdm-gcc.tdragon.net/).
|
||||
|
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
73
gtk-nsis-pack/share/glib-2.0/gschema.dtd
Normal file
73
gtk-nsis-pack/share/glib-2.0/gschema.dtd
Normal file
@ -0,0 +1,73 @@
|
||||
<!ELEMENT schemalist (schema|enum)* >
|
||||
<!ATTLIST schemalist gettext-domain CDATA #IMPLIED >
|
||||
|
||||
<!ELEMENT schema (key|child|override)* >
|
||||
<!ATTLIST schema id CDATA #REQUIRED
|
||||
path CDATA #IMPLIED
|
||||
gettext-domain CDATA #IMPLIED
|
||||
extends CDATA #IMPLIED
|
||||
list-of CDATA #IMPLIED >
|
||||
|
||||
<!-- enumerated and flags types -->
|
||||
<!-- each value element maps a nick to a numeric value -->
|
||||
<!ELEMENT enum (value*) >
|
||||
<!ATTLIST enum id CDATA #REQUIRED >
|
||||
|
||||
<!ELEMENT flags (value*) >
|
||||
<!ATTLIST flags id CDATA #REQUIRED >
|
||||
|
||||
<!ELEMENT value EMPTY >
|
||||
<!-- nick must be at least 2 characters long -->
|
||||
<!-- value must be parsable as a 32-bit integer -->
|
||||
<!ATTLIST value nick CDATA #REQUIRED
|
||||
value CDATA #REQUIRED >
|
||||
|
||||
<!ELEMENT key (default|summary?|description?|range?|choices?|aliases?)* >
|
||||
<!-- name can only contain lowercase letters, numbers and '-' -->
|
||||
<!-- type must be a GVariant type string -->
|
||||
<!-- enum must be the id of an enum type that has been defined earlier -->
|
||||
<!-- flags must be the id of a flags type that has been defined earlier -->
|
||||
<!-- exactly one of type, enum or flags must be given -->
|
||||
<!ATTLIST key name CDATA #REQUIRED
|
||||
type CDATA #IMPLIED
|
||||
enum CDATA #IMPLIED
|
||||
flags CDATA #IMPLIED >
|
||||
|
||||
<!-- the default value is specified a a serialized GVariant,
|
||||
i.e. you have to include the quotes when specifying a string -->
|
||||
<!ELEMENT default (#PCDATA) >
|
||||
<!-- the presence of the l10n attribute marks a default value for
|
||||
translation, its value is the gettext category to use -->
|
||||
<!-- if context is present, it specifies msgctxt to use -->
|
||||
<!ATTLIST default l10n (messages|time) #IMPLIED
|
||||
context CDATA #IMPLIED >
|
||||
|
||||
<!ELEMENT summary (#PCDATA) >
|
||||
<!ELEMENT description (#PCDATA) >
|
||||
|
||||
<!-- range is only allowed for keys with numeric type -->
|
||||
<!ELEMENT range EMPTY >
|
||||
<!-- min and max must be parseable as values of the key type and min < max -->
|
||||
<!ATTLIST range min CDATA #REQUIRED
|
||||
max CDATA #REQUIRED >
|
||||
|
||||
<!-- choices is only allowed for keys with string or string array type -->
|
||||
<!ELEMENT choices (choice+) >
|
||||
<!-- each choice element specifies one possible value -->
|
||||
<!ELEMENT choice EMPTY >
|
||||
<!ATTLIST choice value CDATA #REQUIRED >
|
||||
|
||||
<!-- aliases is only allowed for keys with enumerated type or with choices -->
|
||||
<!ELEMENT aliases (alias+) >
|
||||
<!-- each alias element specifies an alias for one of the possible values -->
|
||||
<!ELEMENT alias EMPTY >
|
||||
<!ATTLIST alias value CDATA #REQUIRED >
|
||||
|
||||
<!ELEMENT child EMPTY >
|
||||
<!ATTLIST child name CDATA #REQUIRED
|
||||
schema CDATA #REQUIRED >
|
||||
|
||||
<!ELEMENT override (#PCDATA) >
|
||||
<!ATTLIST override name CDATA #REQUIRED
|
||||
l10n CDATA #IMPLIED
|
||||
context CDATA #IMPLIED >
|
BIN
gtk-nsis-pack/share/glib-2.0/gschemas.compiled
Normal file
BIN
gtk-nsis-pack/share/glib-2.0/gschemas.compiled
Normal file
Binary file not shown.
17
gtk-nsis-pack/share/glib-2.0/org.gtk.Demo.gschema.xml
Normal file
17
gtk-nsis-pack/share/glib-2.0/org.gtk.Demo.gschema.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<schemalist>
|
||||
|
||||
<enum id='org.gtk.Demo.Color'>
|
||||
<value nick='red' value='0'/>
|
||||
<value nick='green' value='1'/>
|
||||
<value nick='blue' value='2'/>
|
||||
</enum>
|
||||
|
||||
<schema id='org.gtk.Demo' path='/org/gtk/Demo/'>
|
||||
<key name='color' enum='org.gtk.Demo.Color'>
|
||||
<default>'red'</default>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
</schemalist>
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schemalist>
|
||||
|
||||
<schema id='org.gtk.Settings.ColorChooser' path='/org/gtk/settings/color-chooser/'>
|
||||
<key name='custom-colors' type='a(dddd)'>
|
||||
<default>[]</default>
|
||||
<summary>Custom colors</summary>
|
||||
<description>
|
||||
An array of custom colors to show in the color chooser. Each color is
|
||||
specified as a tuple of four doubles, specifying RGBA values between
|
||||
0 and 1.
|
||||
</description>
|
||||
</key>
|
||||
<key name='selected-color' type='(bdddd)'>
|
||||
<default>(false,1.0,1.0,1.0,1.0)</default>
|
||||
<summary>The selected color</summary>
|
||||
<description>
|
||||
The selected color, described as a tuple whose first member is a
|
||||
boolean that is true if a color was selected, and the remaining
|
||||
four members are four doubles, specifying RGBA values between
|
||||
0 and 1.
|
||||
</description>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
</schemalist>
|
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schemalist>
|
||||
|
||||
<schema id='org.gtk.Settings.Debug' path='/org/gtk/settings/debug/'>
|
||||
<key name='enable-inspector-keybinding' type='b'>
|
||||
<default>true</default>
|
||||
<summary>Enable inspector keybinding</summary>
|
||||
<description>
|
||||
If this setting is true, GTK+ lets the user open an interactive
|
||||
debugging window with a keybinding. The default shortcuts for
|
||||
the keybinding are Control-Shift-I and Control-Shift-D.
|
||||
</description>
|
||||
</key>
|
||||
<key name='inspector-warning' type='b'>
|
||||
<default>true</default>
|
||||
<summary>Inspector warning</summary>
|
||||
<description>
|
||||
If this setting is true, GTK+ shows a warning before letting
|
||||
the user use the interactive debugger.
|
||||
</description>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
</schemalist>
|
||||
|
@ -0,0 +1,141 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright © 2010 Christian Persch
|
||||
|
||||
This library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2.1, or (at your option)
|
||||
any later version.
|
||||
|
||||
This library 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 Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<schemalist>
|
||||
|
||||
<enum id='org.gtk.Settings.FileChooser.LocationMode'>
|
||||
<value nick='path-bar' value='0'/>
|
||||
<value nick='filename-entry' value='1'/>
|
||||
</enum>
|
||||
|
||||
<enum id='org.gtk.Settings.FileChooser.SortColumn'>
|
||||
<value nick='name' value='0'/>
|
||||
<value nick='size' value='1'/>
|
||||
<value nick='modified' value='2'/>
|
||||
</enum>
|
||||
|
||||
<enum id='org.gtk.Settings.FileChooser.SortOrder'>
|
||||
<value nick='ascending' value='0'/>
|
||||
<value nick='descending' value='1'/>
|
||||
</enum>
|
||||
|
||||
<enum id='org.gtk.Settings.FileChooser.StartupMode'>
|
||||
<value nick='recent' value='0'/>
|
||||
<value nick='cwd' value='1'/>
|
||||
</enum>
|
||||
|
||||
<enum id='org.gtk.Settings.FileChooser.ClockFormat'>
|
||||
<value nick='24h' value='0'/>
|
||||
<value nick='12h' value='1'/>
|
||||
</enum>
|
||||
|
||||
<schema id='org.gtk.Settings.FileChooser' path='/org/gtk/settings/file-chooser/'>
|
||||
<key name='last-folder-uri' type='s'>
|
||||
<default>""</default>
|
||||
</key>
|
||||
<key name='location-mode' enum='org.gtk.Settings.FileChooser.LocationMode'>
|
||||
<default>'path-bar'</default>
|
||||
<summary>Location mode</summary>
|
||||
<description>
|
||||
Controls whether the file chooser shows just a path bar, or a visible entry
|
||||
for the filename as well, for the benefit of typing-oriented users. The
|
||||
possible values for these modes are "path-bar" and "filename-entry".
|
||||
</description>
|
||||
</key>
|
||||
<key name='show-hidden' type='b'>
|
||||
<default>false</default>
|
||||
<summary>Show hidden files</summary>
|
||||
<description>
|
||||
Controls whether the file chooser shows hidden files or not.
|
||||
</description>
|
||||
</key>
|
||||
<key type="b" name="sort-directories-first">
|
||||
<default>false</default>
|
||||
<summary>Show folders first</summary>
|
||||
<description>
|
||||
If set to true, then folders are shown before files in the list.
|
||||
</description>
|
||||
</key>
|
||||
<key name='expand-folders' type='b'>
|
||||
<default>false</default>
|
||||
<summary>Expand folders</summary>
|
||||
<description>This key is deprecated; do not use it.</description>
|
||||
</key>
|
||||
<key name='show-size-column' type='b'>
|
||||
<default>true</default>
|
||||
<summary>Show file sizes</summary>
|
||||
<description>
|
||||
Controls whether the file chooser shows a column with file sizes.
|
||||
</description>
|
||||
</key>
|
||||
<key name='sort-column' enum='org.gtk.Settings.FileChooser.SortColumn'>
|
||||
<default>'name'</default>
|
||||
<summary>Sort column</summary>
|
||||
<description>
|
||||
Can be one of "name", "modified", or "size". It controls
|
||||
which of the columns in the file chooser is used for sorting
|
||||
the list of files.
|
||||
</description>
|
||||
</key>
|
||||
<key name='sort-order' enum='org.gtk.Settings.FileChooser.SortOrder'>
|
||||
<default>'ascending'</default>
|
||||
<summary>Sort order</summary>
|
||||
<description>
|
||||
Can be one of the strings "ascending" or "descending".
|
||||
</description>
|
||||
</key>
|
||||
<key name='window-position' type='(ii)'>
|
||||
<default>(-1, -1)</default>
|
||||
<summary>Window position</summary>
|
||||
<description>
|
||||
The (x, y) coordinates of the upper-left corner of the GtkFileChooserDialog's
|
||||
window.
|
||||
</description>
|
||||
</key>
|
||||
<key name='window-size' type='(ii)'>
|
||||
<default>(-1, -1)</default>
|
||||
<summary>Window size</summary>
|
||||
<description>
|
||||
The size (width, height) of the GtkFileChooserDialog's window, in pixels.
|
||||
</description>
|
||||
</key>
|
||||
<key name='startup-mode' enum='org.gtk.Settings.FileChooser.StartupMode'>
|
||||
<default>'recent'</default>
|
||||
<summary>Startup mode</summary>
|
||||
<description>
|
||||
Either "recent" or "cwd"; controls whether the file chooser
|
||||
starts up showing the list of recently-used files, or the
|
||||
contents of the current working directory.
|
||||
</description>
|
||||
</key>
|
||||
<key name='sidebar-width' type='i'>
|
||||
<default>148</default>
|
||||
<summary>Sidebar width</summary>
|
||||
<description>
|
||||
Width in pixels of the file chooser's places sidebar.
|
||||
</description>
|
||||
</key>
|
||||
<key name="clock-format" enum="org.gtk.Settings.FileChooser.ClockFormat">
|
||||
<default>'24h'</default>
|
||||
<summary>Time format</summary>
|
||||
<description>
|
||||
Whether the time is shown in 24h or 12h format.
|
||||
</description>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
</schemalist>
|
25
gtk-nsis-pack/share/glib-2.0/org.gtk.exampleapp.gschema.xml
Normal file
25
gtk-nsis-pack/share/glib-2.0/org.gtk.exampleapp.gschema.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schemalist>
|
||||
<schema path="/org/gtk/exampleapp/" id="org.gtk.exampleapp">
|
||||
<key name="font" type="s">
|
||||
<default>'Monospace 12'</default>
|
||||
<summary>Font</summary>
|
||||
<description>The font to be used for content.</description>
|
||||
</key>
|
||||
<key name="transition" type="s">
|
||||
<choices>
|
||||
<choice value='none'/>
|
||||
<choice value='crossfade'/>
|
||||
<choice value='slide-left-right'/>
|
||||
</choices>
|
||||
<default>'none'</default>
|
||||
<summary>Transition</summary>
|
||||
<description>The transition to use when switching tabs.</description>
|
||||
</key>
|
||||
<key name="show-words" type="b">
|
||||
<default>false</default>
|
||||
<summary>Show words</summary>
|
||||
<description>Whether to show a word list in the sidebar</description>
|
||||
</key>
|
||||
</schema>
|
||||
</schemalist>
|
73
gtk-nsis-pack/share/glib-2.0/schemas/gschema.dtd
Normal file
73
gtk-nsis-pack/share/glib-2.0/schemas/gschema.dtd
Normal file
@ -0,0 +1,73 @@
|
||||
<!ELEMENT schemalist (schema|enum)* >
|
||||
<!ATTLIST schemalist gettext-domain CDATA #IMPLIED >
|
||||
|
||||
<!ELEMENT schema (key|child|override)* >
|
||||
<!ATTLIST schema id CDATA #REQUIRED
|
||||
path CDATA #IMPLIED
|
||||
gettext-domain CDATA #IMPLIED
|
||||
extends CDATA #IMPLIED
|
||||
list-of CDATA #IMPLIED >
|
||||
|
||||
<!-- enumerated and flags types -->
|
||||
<!-- each value element maps a nick to a numeric value -->
|
||||
<!ELEMENT enum (value*) >
|
||||
<!ATTLIST enum id CDATA #REQUIRED >
|
||||
|
||||
<!ELEMENT flags (value*) >
|
||||
<!ATTLIST flags id CDATA #REQUIRED >
|
||||
|
||||
<!ELEMENT value EMPTY >
|
||||
<!-- nick must be at least 2 characters long -->
|
||||
<!-- value must be parsable as a 32-bit integer -->
|
||||
<!ATTLIST value nick CDATA #REQUIRED
|
||||
value CDATA #REQUIRED >
|
||||
|
||||
<!ELEMENT key (default|summary?|description?|range?|choices?|aliases?)* >
|
||||
<!-- name can only contain lowercase letters, numbers and '-' -->
|
||||
<!-- type must be a GVariant type string -->
|
||||
<!-- enum must be the id of an enum type that has been defined earlier -->
|
||||
<!-- flags must be the id of a flags type that has been defined earlier -->
|
||||
<!-- exactly one of type, enum or flags must be given -->
|
||||
<!ATTLIST key name CDATA #REQUIRED
|
||||
type CDATA #IMPLIED
|
||||
enum CDATA #IMPLIED
|
||||
flags CDATA #IMPLIED >
|
||||
|
||||
<!-- the default value is specified a a serialized GVariant,
|
||||
i.e. you have to include the quotes when specifying a string -->
|
||||
<!ELEMENT default (#PCDATA) >
|
||||
<!-- the presence of the l10n attribute marks a default value for
|
||||
translation, its value is the gettext category to use -->
|
||||
<!-- if context is present, it specifies msgctxt to use -->
|
||||
<!ATTLIST default l10n (messages|time) #IMPLIED
|
||||
context CDATA #IMPLIED >
|
||||
|
||||
<!ELEMENT summary (#PCDATA) >
|
||||
<!ELEMENT description (#PCDATA) >
|
||||
|
||||
<!-- range is only allowed for keys with numeric type -->
|
||||
<!ELEMENT range EMPTY >
|
||||
<!-- min and max must be parseable as values of the key type and min < max -->
|
||||
<!ATTLIST range min CDATA #REQUIRED
|
||||
max CDATA #REQUIRED >
|
||||
|
||||
<!-- choices is only allowed for keys with string or string array type -->
|
||||
<!ELEMENT choices (choice+) >
|
||||
<!-- each choice element specifies one possible value -->
|
||||
<!ELEMENT choice EMPTY >
|
||||
<!ATTLIST choice value CDATA #REQUIRED >
|
||||
|
||||
<!-- aliases is only allowed for keys with enumerated type or with choices -->
|
||||
<!ELEMENT aliases (alias+) >
|
||||
<!-- each alias element specifies an alias for one of the possible values -->
|
||||
<!ELEMENT alias EMPTY >
|
||||
<!ATTLIST alias value CDATA #REQUIRED >
|
||||
|
||||
<!ELEMENT child EMPTY >
|
||||
<!ATTLIST child name CDATA #REQUIRED
|
||||
schema CDATA #REQUIRED >
|
||||
|
||||
<!ELEMENT override (#PCDATA) >
|
||||
<!ATTLIST override name CDATA #REQUIRED
|
||||
l10n CDATA #IMPLIED
|
||||
context CDATA #IMPLIED >
|
BIN
gtk-nsis-pack/share/glib-2.0/schemas/gschemas.compiled
Normal file
BIN
gtk-nsis-pack/share/glib-2.0/schemas/gschemas.compiled
Normal file
Binary file not shown.
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<schemalist>
|
||||
|
||||
<enum id='org.gtk.Demo.Color'>
|
||||
<value nick='red' value='0'/>
|
||||
<value nick='green' value='1'/>
|
||||
<value nick='blue' value='2'/>
|
||||
</enum>
|
||||
|
||||
<schema id='org.gtk.Demo' path='/org/gtk/Demo/'>
|
||||
<key name='color' enum='org.gtk.Demo.Color'>
|
||||
<default>'red'</default>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
</schemalist>
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user