Commit 310f84c51beab2240eefdb215a5e8a7ad4b5e49f
1 parent
ff26b873
Exists in
master
and in
5 other branches
Tentando implementar uma forma melhor de empacotar para windows
Showing
23 changed files
with
1142 additions
and
32 deletions
Show diff stats
configure.ac
| @@ -148,6 +148,26 @@ case "$host" in | @@ -148,6 +148,26 @@ case "$host" in | ||
| 148 | PLUGINS="hllapi" | 148 | PLUGINS="hllapi" |
| 149 | APP_GUI_SRC="resources.rc" | 149 | APP_GUI_SRC="resources.rc" |
| 150 | DLLPREFIX="" | 150 | DLLPREFIX="" |
| 151 | + | ||
| 152 | + AC_CONFIG_FILES(nsi/header-$host_cpu-no-gtk.nsi) | ||
| 153 | + AC_CONFIG_FILES(nsi/header-$host_cpu.nsi) | ||
| 154 | + AC_CONFIG_FILES(nsi/main-begin-$host_cpu.nsi) | ||
| 155 | + AC_CONFIG_FILES(nsi/main-end.nsi) | ||
| 156 | + AC_CONFIG_FILES(nsi/runtime.nsi) | ||
| 157 | + AC_CONFIG_FILES(nsi/sdk.nsi) | ||
| 158 | + AC_CONFIG_FILES(nsi/uninstall-$host_cpu.nsi) | ||
| 159 | + AC_CONFIG_FILES(nsi/oninit-$host_cpu.nsi) | ||
| 160 | + AC_CONFIG_FILES(nsi/Makefile) | ||
| 161 | + | ||
| 162 | + AC_CONFIG_FILES(nsi/hllapi.nsi) | ||
| 163 | + AC_CONFIG_FILES(nsi/j3270.nsi) | ||
| 164 | + AC_CONFIG_FILES(nsi/rx3270.nsi) | ||
| 165 | + | ||
| 166 | + AC_CONFIG_FILES(nsi/runtime-init-$host_cpu.nsi) | ||
| 167 | + | ||
| 168 | + AC_CONFIG_FILES(src/plugins/hllapi/Makefile) | ||
| 169 | + AC_CONFIG_FILES(makegtkruntime.sh) | ||
| 170 | + | ||
| 151 | ;; | 171 | ;; |
| 152 | 172 | ||
| 153 | *-apple-*) | 173 | *-apple-*) |
| @@ -161,6 +181,9 @@ case "$host" in | @@ -161,6 +181,9 @@ case "$host" in | ||
| 161 | LDARCH="-arch $build_cpu" | 181 | LDARCH="-arch $build_cpu" |
| 162 | LDAPPFLAGS="" | 182 | LDAPPFLAGS="" |
| 163 | DLLPREFIX="lib" | 183 | DLLPREFIX="lib" |
| 184 | + | ||
| 185 | + AC_CONFIG_FILES(mac/pw3270.bundle) | ||
| 186 | + | ||
| 164 | ;; | 187 | ;; |
| 165 | 188 | ||
| 166 | *) | 189 | *) |
| @@ -174,6 +197,8 @@ case "$host" in | @@ -174,6 +197,8 @@ case "$host" in | ||
| 174 | DBGCMDPREFIX="LD_LIBRARY_PATH=\$(BINDIR)/Debug/lib" | 197 | DBGCMDPREFIX="LD_LIBRARY_PATH=\$(BINDIR)/Debug/lib" |
| 175 | DLLPREFIX="lib" | 198 | DLLPREFIX="lib" |
| 176 | 199 | ||
| 200 | + AC_CONFIG_FILES(pw3270.spec) | ||
| 201 | + | ||
| 177 | esac | 202 | esac |
| 178 | 203 | ||
| 179 | #--[ Check gettext ]------------------------------------------------------------------------------------------------------------------------------------------ | 204 | #--[ Check gettext ]------------------------------------------------------------------------------------------------------------------------------------------ |
| @@ -434,6 +459,8 @@ if test "$app_cv_java" = "yes" ; then | @@ -434,6 +459,8 @@ if test "$app_cv_java" = "yes" ; then | ||
| 434 | PLUGINS="$PLUGINS j3270" | 459 | PLUGINS="$PLUGINS j3270" |
| 435 | AC_MSG_NOTICE([jdk is present and enabled.]) | 460 | AC_MSG_NOTICE([jdk is present and enabled.]) |
| 436 | 461 | ||
| 462 | + AC_CONFIG_FILES(src/java/Makefile) | ||
| 463 | + | ||
| 437 | else | 464 | else |
| 438 | 465 | ||
| 439 | AC_MSG_NOTICE([jdk is NOT present or disabled.]) | 466 | AC_MSG_NOTICE([jdk is NOT present or disabled.]) |
| @@ -491,8 +518,11 @@ AC_SUBST(GDBUS_LIBS) | @@ -491,8 +518,11 @@ AC_SUBST(GDBUS_LIBS) | ||
| 491 | AC_SUBST(GDBUS_CFLAGS) | 518 | AC_SUBST(GDBUS_CFLAGS) |
| 492 | 519 | ||
| 493 | if test "$app_cv_dbus" == "yes"; then | 520 | if test "$app_cv_dbus" == "yes"; then |
| 521 | + | ||
| 494 | AC_DEFINE(HAVE_DBUS) | 522 | AC_DEFINE(HAVE_DBUS) |
| 523 | + AC_CONFIG_FILES(src/plugins/dbus3270/Makefile) | ||
| 495 | PLUGINS="$PLUGINS dbus3270" | 524 | PLUGINS="$PLUGINS dbus3270" |
| 525 | + | ||
| 496 | fi | 526 | fi |
| 497 | 527 | ||
| 498 | #--[ SSL ]---------------------------------------------------------------------------------------------------------------------------------------------------- | 528 | #--[ SSL ]---------------------------------------------------------------------------------------------------------------------------------------------------- |
| @@ -527,8 +557,11 @@ case "$host" in | @@ -527,8 +557,11 @@ case "$host" in | ||
| 527 | 557 | ||
| 528 | *) | 558 | *) |
| 529 | if test -z "${PHPCONFIG}"; then | 559 | if test -z "${PHPCONFIG}"; then |
| 560 | + | ||
| 530 | AC_MSG_NOTICE([Program php-config not found. Use --with-php-config=path to specify absolute path to the php-config tool.]) | 561 | AC_MSG_NOTICE([Program php-config not found. Use --with-php-config=path to specify absolute path to the php-config tool.]) |
| 562 | + | ||
| 531 | else | 563 | else |
| 564 | + | ||
| 532 | AC_DEFINE(HAVE_PHP) | 565 | AC_DEFINE(HAVE_PHP) |
| 533 | EXTENSIONS="$EXTENSIONS php" | 566 | EXTENSIONS="$EXTENSIONS php" |
| 534 | PHPMAJOR=`$PHPCONFIG --version | cut -d. -f1` | 567 | PHPMAJOR=`$PHPCONFIG --version | cut -d. -f1` |
| @@ -540,6 +573,10 @@ case "$host" in | @@ -540,6 +573,10 @@ case "$host" in | ||
| 540 | PHPCONFDIR=/etc/php${PHPMAJOR}/cli | 573 | PHPCONFDIR=/etc/php${PHPMAJOR}/cli |
| 541 | fi | 574 | fi |
| 542 | AC_MSG_NOTICE([Using $PHPCONFDIR for PHP config files.]) | 575 | AC_MSG_NOTICE([Using $PHPCONFDIR for PHP config files.]) |
| 576 | + | ||
| 577 | + AC_CONFIG_FILES(src/php/Makefile) | ||
| 578 | + AC_CONFIG_FILES(src/php/php3270.h) | ||
| 579 | + | ||
| 543 | fi | 580 | fi |
| 544 | 581 | ||
| 545 | esac | 582 | esac |
| @@ -579,6 +616,8 @@ if test "$app_cv_rexx" == "yes"; then | @@ -579,6 +616,8 @@ if test "$app_cv_rexx" == "yes"; then | ||
| 579 | PLUGINS="$PLUGINS rx3270" | 616 | PLUGINS="$PLUGINS rx3270" |
| 580 | EXTENSIONS="$EXTENSIONS rexx" | 617 | EXTENSIONS="$EXTENSIONS rexx" |
| 581 | 618 | ||
| 619 | + AC_CONFIG_FILES(src/plugins/rx3270/Makefile) | ||
| 620 | + | ||
| 582 | AC_MSG_NOTICE([ooRexx plugin & extension are enabled.]) | 621 | AC_MSG_NOTICE([ooRexx plugin & extension are enabled.]) |
| 583 | else | 622 | else |
| 584 | AC_MSG_NOTICE([ooRexx is NOT present or disabled.]) | 623 | AC_MSG_NOTICE([ooRexx is NOT present or disabled.]) |
| @@ -712,10 +751,19 @@ fi | @@ -712,10 +751,19 @@ fi | ||
| 712 | 751 | ||
| 713 | # Set targets | 752 | # Set targets |
| 714 | if test "$app_cv_office" == "yes" ; then | 753 | if test "$app_cv_office" == "yes" ; then |
| 754 | + | ||
| 715 | AC_MSG_NOTICE([libreoffice sdk is present.]) | 755 | AC_MSG_NOTICE([libreoffice sdk is present.]) |
| 716 | EXTENSIONS="$EXTENSIONS oxt" | 756 | EXTENSIONS="$EXTENSIONS oxt" |
| 757 | + | ||
| 758 | + AC_CONFIG_FILES(src/loffice/Makefile) | ||
| 759 | + AC_CONFIG_FILES(src/loffice/description.xml) | ||
| 760 | + AC_CONFIG_FILES(src/loffice/manifest.xml) | ||
| 761 | + | ||
| 762 | + | ||
| 717 | else | 763 | else |
| 764 | + | ||
| 718 | AC_MSG_NOTICE([libreoffice sdk is NOT present or disabled.]) | 765 | AC_MSG_NOTICE([libreoffice sdk is NOT present or disabled.]) |
| 766 | + | ||
| 719 | fi | 767 | fi |
| 720 | 768 | ||
| 721 | AC_SUBST(OFFICE_HOME) | 769 | AC_SUBST(OFFICE_HOME) |
| @@ -759,38 +807,39 @@ AC_SUBST(CLASS_LIBS) | @@ -759,38 +807,39 @@ AC_SUBST(CLASS_LIBS) | ||
| 759 | 807 | ||
| 760 | #--[ Output files ]------------------------------------------------------------------------------------------------------------------------------------------- | 808 | #--[ Output files ]------------------------------------------------------------------------------------------------------------------------------------------- |
| 761 | 809 | ||
| 762 | -AC_CONFIG_FILES([ | ||
| 763 | - | ||
| 764 | - Makefile | ||
| 765 | - lib3270.pc | ||
| 766 | - pw3270.pc | ||
| 767 | - pw3270.spec | ||
| 768 | - pw3270-i686.nsi | ||
| 769 | - pw3270-x86_64.nsi | ||
| 770 | - src/include/rules.mak | ||
| 771 | - src/include/plugin.mak | ||
| 772 | - src/lib3270/Makefile | ||
| 773 | - src/lib3270/mkversion.sh | ||
| 774 | - src/pw3270/Makefile | ||
| 775 | - src/loffice/Makefile | ||
| 776 | - src/loffice/description.xml | ||
| 777 | - src/loffice/manifest.xml | ||
| 778 | - src/pw3270/uiparser/Makefile | ||
| 779 | - src/tools/Makefile | ||
| 780 | - src/plugins/hllapi/Makefile | ||
| 781 | - src/plugins/rx3270/Makefile | ||
| 782 | - src/plugins/dbus3270/Makefile | ||
| 783 | - src/classlib/Makefile | ||
| 784 | - src/classlib/class.mak | ||
| 785 | - man/Makefile | ||
| 786 | - makegtkruntime.sh | ||
| 787 | - src/sample/Makefile | ||
| 788 | - mac/pw3270.bundle | ||
| 789 | - src/php/Makefile | ||
| 790 | - src/php/php3270.h | ||
| 791 | - src/java/Makefile | 810 | +AC_CONFIG_FILES(Makefile) |
| 811 | +AC_CONFIG_FILES(lib3270.pc) | ||
| 812 | +AC_CONFIG_FILES(pw3270.pc) | ||
| 813 | + | ||
| 814 | +AC_CONFIG_FILES(src/include/rules.mak) | ||
| 815 | +AC_CONFIG_FILES(src/include/plugin.mak) | ||
| 816 | + | ||
| 817 | +AC_CONFIG_FILES(src/lib3270/mkversion.sh) | ||
| 818 | + | ||
| 819 | +AC_CONFIG_FILES(src/lib3270/Makefile) | ||
| 820 | +AC_CONFIG_FILES(src/pw3270/Makefile) | ||
| 821 | +AC_CONFIG_FILES(src/pw3270/uiparser/Makefile) | ||
| 822 | +AC_CONFIG_FILES(src/tools/Makefile) | ||
| 823 | + | ||
| 824 | +AC_CONFIG_FILES(src/classlib/Makefile) | ||
| 825 | +AC_CONFIG_FILES(src/classlib/class.mak) | ||
| 826 | + | ||
| 827 | +AC_CONFIG_FILES(man/Makefile) | ||
| 828 | +AC_CONFIG_FILES(src/sample/Makefile) | ||
| 829 | + | ||
| 830 | + | ||
| 831 | +case "$host" in | ||
| 832 | + *-mingw32) | ||
| 833 | + ;; | ||
| 834 | + | ||
| 835 | + *-apple-*) | ||
| 836 | + ;; | ||
| 837 | + | ||
| 838 | + *) | ||
| 839 | + ;; | ||
| 840 | +esac | ||
| 841 | + | ||
| 792 | 842 | ||
| 793 | -]) | ||
| 794 | 843 | ||
| 795 | dnl Output the generated config.status script. | 844 | dnl Output the generated config.status script. |
| 796 | AC_OUTPUT | 845 | AC_OUTPUT |
| @@ -0,0 +1,92 @@ | @@ -0,0 +1,92 @@ | ||
| 1 | +# | ||
| 2 | +# "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
| 3 | +# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
| 4 | +# aplicativos mainframe. Registro no INPI sob o nome G3270. | ||
| 5 | +# | ||
| 6 | +# Copyright (C) <2008> <Banco do Brasil S.A.> | ||
| 7 | +# | ||
| 8 | +# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
| 9 | +# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
| 10 | +# Free Software Foundation. | ||
| 11 | +# | ||
| 12 | +# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
| 13 | +# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
| 14 | +# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
| 15 | +# obter mais detalhes. | ||
| 16 | +# | ||
| 17 | +# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
| 18 | +# programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple | ||
| 19 | +# Place, Suite 330, Boston, MA, 02111-1307, USA | ||
| 20 | +# | ||
| 21 | +# Contatos: | ||
| 22 | +# | ||
| 23 | +# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
| 24 | +# erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) | ||
| 25 | +# | ||
| 26 | + | ||
| 27 | +#---[ Configuration values ]--------------------------------------------------- | ||
| 28 | + | ||
| 29 | +PACKAGE_NAME=@PACKAGE_NAME@ | ||
| 30 | +PACKAGE_VERSION=@PACKAGE_VERSION@ | ||
| 31 | +PACKAGE_LEVEL=@PACKAGE_LEVEL@ | ||
| 32 | +PACKAGE_REVISION=@PACKAGE_REVISION@ | ||
| 33 | +PACKAGE_TARNAME=@PACKAGE_TARNAME@ | ||
| 34 | + | ||
| 35 | +HOST_CPU=@host_cpu@ | ||
| 36 | + | ||
| 37 | +PLUGINS=@PLUGINS@ | ||
| 38 | +EXTENSIONS=@EXTENSIONS@ | ||
| 39 | + | ||
| 40 | +#---[ Tools ]------------------------------------------------------------------ | ||
| 41 | + | ||
| 42 | +MAKENSIS=@MAKENSIS@ | ||
| 43 | + | ||
| 44 | + | ||
| 45 | +#---[ Rules ]------------------------------------------------------------------ | ||
| 46 | + | ||
| 47 | + | ||
| 48 | + | ||
| 49 | +#---[ Targets ]---------------------------------------------------------------- | ||
| 50 | + | ||
| 51 | +all: \ | ||
| 52 | + $(PACKAGE_NAME)-$(HOST_CPU).nsi | ||
| 53 | + | ||
| 54 | +$(PACKAGE_NAME)-$(HOST_CPU).nsi: \ | ||
| 55 | + header-$(HOST_CPU).nsi \ | ||
| 56 | + main-begin-$(HOST_CPU).nsi \ | ||
| 57 | + main-end.nsi \ | ||
| 58 | + runtime.nsi \ | ||
| 59 | + sdk.nsi \ | ||
| 60 | + uninstall-$(HOST_CPU).nsi \ | ||
| 61 | + oninit-$(HOST_CPU).nsi | ||
| 62 | + | ||
| 63 | + @rm -f $@ | ||
| 64 | + @cat header-$(HOST_CPU).nsi > $@ | ||
| 65 | + @cat main-begin-$(HOST_CPU).nsi >> $@ | ||
| 66 | + | ||
| 67 | + # Install plugins | ||
| 68 | + | ||
| 69 | + @cat $(foreach PLUGIN, $(PLUGINS), $(PLUGIN).nsi ) >> $@ | ||
| 70 | + | ||
| 71 | + # Finalize | ||
| 72 | + | ||
| 73 | + @cat main-end.nsi >> $@ | ||
| 74 | + @cat runtime.nsi >> $@ | ||
| 75 | + @cat sdk.nsi >> $@ | ||
| 76 | + @cat uninstall-$(HOST_CPU).nsi >> $@ | ||
| 77 | + @cat oninit-$(HOST_CPU).nsi >> $@ | ||
| 78 | + | ||
| 79 | + # Install plugin scripts | ||
| 80 | + | ||
| 81 | + @cat runtime-init-$(HOST_CPU).nsi >> $@ | ||
| 82 | + @cat $(foreach PLUGIN, $(PLUGINS), $(PLUGIN)-init-$(HOST_CPU).nsi ) >> $@ | ||
| 83 | + | ||
| 84 | + # Finalize onInit script | ||
| 85 | + | ||
| 86 | + @echo FunctionEnd >> $@ | ||
| 87 | + | ||
| 88 | + @chmod 644 $@ | ||
| 89 | + | ||
| 90 | + @echo $@ | ||
| 91 | + | ||
| 92 | + |
| @@ -0,0 +1,48 @@ | @@ -0,0 +1,48 @@ | ||
| 1 | +!include "MUI2.nsh" | ||
| 2 | + | ||
| 3 | +Name "@PACKAGE@" | ||
| 4 | +Caption "@PACKAGE@ - 3270 Emulator for windows/gtk" | ||
| 5 | +outfile "@PACKAGE@-@PACKAGE_VERSION@.@PACKAGE_LEVEL@-requires-gtk-@GTK_MODVERSION@-@host_cpu@.exe" | ||
| 6 | +XPStyle on | ||
| 7 | + | ||
| 8 | +# define the directory to install to | ||
| 9 | +installDir $PROGRAMFILES\@PACKAGE@ | ||
| 10 | + | ||
| 11 | +#define the installer icon | ||
| 12 | +!define MUI_ICON "src\pw3270\@PACKAGE@.ico" | ||
| 13 | +!define MUI_UNICON "src\pw3270\@PACKAGE@.ico" | ||
| 14 | +icon "src\pw3270\@PACKAGE@.ico" | ||
| 15 | + | ||
| 16 | +# Get installation folder from registry if available | ||
| 17 | +InstallDirRegKey HKLM "Software\@PACKAGE@" "InstallLocation" | ||
| 18 | + | ||
| 19 | +RequestExecutionLevel admin | ||
| 20 | + | ||
| 21 | +# Properties | ||
| 22 | +VIProductVersion "@PACKAGE_VERSION@.@PACKAGE_LEVEL@.@PACKAGE_REVISION@" | ||
| 23 | +VIAddVersionKey "ProductName" "@PACKAGE@" | ||
| 24 | +VIAddVersionKey "FileDescription" "3270 Emulator for windows/gtk" | ||
| 25 | +VIAddVersionKey "FileVersion" "@PACKAGE_REVISION@" | ||
| 26 | +VIAddVersionKey "LegalCopyright" "GPL-2.0" | ||
| 27 | + | ||
| 28 | +# Interface | ||
| 29 | + | ||
| 30 | +!define MUI_ABORTWARNING | ||
| 31 | +# !insertmacro MUI_PAGE_WELCOME | ||
| 32 | +!insertmacro MUI_PAGE_LICENSE "LICENSE" | ||
| 33 | +!insertmacro MUI_PAGE_COMPONENTS | ||
| 34 | +!insertmacro MUI_PAGE_DIRECTORY | ||
| 35 | +!insertmacro MUI_PAGE_INSTFILES | ||
| 36 | + | ||
| 37 | +# !insertmacro MUI_UNPAGE_WELCOME | ||
| 38 | +!insertmacro MUI_UNPAGE_CONFIRM | ||
| 39 | +!insertmacro MUI_UNPAGE_INSTFILES | ||
| 40 | +# !insertmacro MUI_UNPAGE_FINISH | ||
| 41 | + | ||
| 42 | +# Languages | ||
| 43 | +!insertmacro MUI_LANGUAGE "English" | ||
| 44 | + | ||
| 45 | +# Section scripts | ||
| 46 | +!include Sections.nsh | ||
| 47 | + | ||
| 48 | + |
| @@ -0,0 +1,48 @@ | @@ -0,0 +1,48 @@ | ||
| 1 | +!include "MUI2.nsh" | ||
| 2 | + | ||
| 3 | +Name "@PACKAGE@" | ||
| 4 | +Caption "@PACKAGE@ - 3270 Emulator for windows/gtk" | ||
| 5 | +outfile "@PACKAGE@-@PACKAGE_VERSION@.@PACKAGE_LEVEL@-gtk-@GTK_MODVERSION@-@host_cpu@.exe" | ||
| 6 | +XPStyle on | ||
| 7 | + | ||
| 8 | +# define the directory to install to | ||
| 9 | +installDir $PROGRAMFILES\@PACKAGE@ | ||
| 10 | + | ||
| 11 | +#define the installer icon | ||
| 12 | +!define MUI_ICON "src\pw3270\@PACKAGE@.ico" | ||
| 13 | +!define MUI_UNICON "src\pw3270\@PACKAGE@.ico" | ||
| 14 | +icon "src\pw3270\@PACKAGE@.ico" | ||
| 15 | + | ||
| 16 | +# Get installation folder from registry if available | ||
| 17 | +InstallDirRegKey HKLM "Software\@PACKAGE@" "InstallLocation" | ||
| 18 | + | ||
| 19 | +RequestExecutionLevel admin | ||
| 20 | + | ||
| 21 | +# Properties | ||
| 22 | +VIProductVersion "@PACKAGE_VERSION@.@PACKAGE_LEVEL@.@PACKAGE_REVISION@" | ||
| 23 | +VIAddVersionKey "ProductName" "@PACKAGE@" | ||
| 24 | +VIAddVersionKey "FileDescription" "3270 Emulator for windows/gtk" | ||
| 25 | +VIAddVersionKey "FileVersion" "@PACKAGE_REVISION@" | ||
| 26 | +VIAddVersionKey "LegalCopyright" "GPL-2.0" | ||
| 27 | + | ||
| 28 | +# Interface | ||
| 29 | + | ||
| 30 | +!define MUI_ABORTWARNING | ||
| 31 | +# !insertmacro MUI_PAGE_WELCOME | ||
| 32 | +!insertmacro MUI_PAGE_LICENSE "LICENSE" | ||
| 33 | +!insertmacro MUI_PAGE_COMPONENTS | ||
| 34 | +!insertmacro MUI_PAGE_DIRECTORY | ||
| 35 | +!insertmacro MUI_PAGE_INSTFILES | ||
| 36 | + | ||
| 37 | +# !insertmacro MUI_UNPAGE_WELCOME | ||
| 38 | +!insertmacro MUI_UNPAGE_CONFIRM | ||
| 39 | +!insertmacro MUI_UNPAGE_INSTFILES | ||
| 40 | +# !insertmacro MUI_UNPAGE_FINISH | ||
| 41 | + | ||
| 42 | +# Languages | ||
| 43 | +!insertmacro MUI_LANGUAGE "English" | ||
| 44 | + | ||
| 45 | +# Section scripts | ||
| 46 | +!include Sections.nsh | ||
| 47 | + | ||
| 48 | + |
| @@ -0,0 +1,9 @@ | @@ -0,0 +1,9 @@ | ||
| 1 | + Section /o "HLLAPI" HLLAPIPlugin | ||
| 2 | + setOutPath $INSTDIR | ||
| 3 | + | ||
| 4 | + CreateDirectory "$INSTDIR\plugins" | ||
| 5 | + file "/oname=$INSTDIR\plugins\hllapi.dll" ".bin\Release\plugins\hllapi.dll" | ||
| 6 | + file "/oname=$SYSDIR\libhllapi.dll" ".bin\Release\hllapi.dll.@PACKAGE_VERSION@" | ||
| 7 | + | ||
| 8 | + sectionEnd | ||
| 9 | + |
| @@ -0,0 +1,72 @@ | @@ -0,0 +1,72 @@ | ||
| 1 | +# default section | ||
| 2 | +SubSection "@PACKAGE@" SecMain | ||
| 3 | + | ||
| 4 | + Section "Core" SecCore | ||
| 5 | + | ||
| 6 | + # define the output path for this file | ||
| 7 | + setOutPath $INSTDIR | ||
| 8 | + SetShellVarContext all | ||
| 9 | + | ||
| 10 | + createShortCut "$SMPROGRAMS\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" | ||
| 11 | + createShortCut "$DESKTOP\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" | ||
| 12 | + | ||
| 13 | + # Binary files | ||
| 14 | + file "/oname=$INSTDIR\@PACKAGE@.exe" ".bin\Release\@PACKAGE@.exe" | ||
| 15 | + file "/oname=$INSTDIR\@PACKAGE@.ico" "src\pw3270\@PACKAGE@.ico" | ||
| 16 | + file "/oname=$INSTDIR\lib3270.dll.@PACKAGE_VERSION@" ".bin\Release\lib3270.dll.@PACKAGE_VERSION@" | ||
| 17 | + file "/oname=$INSTDIR\pw3270.dll.@PACKAGE_VERSION@" ".bin\Release\pw3270.dll.@PACKAGE_VERSION@" | ||
| 18 | + | ||
| 19 | + # Configuration files | ||
| 20 | + file "/oname=$INSTDIR\@PACKAGE@-logo.png" "src\pw3270\@PACKAGE@-logo.png" | ||
| 21 | + file "/oname=$INSTDIR\@PACKAGE@.png" "src\pw3270\@PACKAGE@.png" | ||
| 22 | + file "/oname=$INSTDIR\colors.conf" "colors.conf" | ||
| 23 | + | ||
| 24 | + # Documentation files | ||
| 25 | + file "/oname=$INSTDIR\ChangeLog" "ChangeLog" | ||
| 26 | + file "/oname=$INSTDIR\AUTHORS" "AUTHORS" | ||
| 27 | + file "/oname=$INSTDIR\LICENSE" "LICENSE" | ||
| 28 | + | ||
| 29 | + # Misc folders | ||
| 30 | + CreateDirectory "$INSTDIR\certs" | ||
| 31 | + CreateDirectory "$INSTDIR\plugins" | ||
| 32 | + | ||
| 33 | + # UI definition files | ||
| 34 | + CreateDirectory "$INSTDIR\ui" | ||
| 35 | + | ||
| 36 | + file "/oname=$INSTDIR\ui\00default.xml" "ui\00default.xml" | ||
| 37 | + file "/oname=$INSTDIR\ui\10keypad.xml" "ui\10keypad.xml" | ||
| 38 | + | ||
| 39 | + # Locale files | ||
| 40 | + CreateDirectory "$INSTDIR\@localedir@\pt_BR\LC_MESSAGES" | ||
| 41 | + file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" | ||
| 42 | + | ||
| 43 | + # Save DataDir | ||
| 44 | + WriteRegStr HKLM "Software\@PACKAGE@" "datadir" "$INSTDIR" | ||
| 45 | + WriteRegStr HKLM "Software\@PACKAGE@" "appName" "$INSTDIR\@PACKAGE@.exe" | ||
| 46 | + | ||
| 47 | + # define uninstaller name | ||
| 48 | + writeUninstaller $INSTDIR\uninstall.exe | ||
| 49 | + | ||
| 50 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 51 | + "DisplayName" "@PACKAGE@ - 3270 emulator for windows/gtk" | ||
| 52 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 53 | + "DisplayIcon" "$INSTDIR\@PACKAGE@.ico" | ||
| 54 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 55 | + "DisplayVersion" "@PACKAGE_VERSION@ (Rev: @PACKAGE_REVISION@)" | ||
| 56 | + | ||
| 57 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 58 | + "UninstallString" "$INSTDIR\uninstall.exe" | ||
| 59 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 60 | + "InstallLocation" "$INSTDIR" | ||
| 61 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 62 | + "NoModify" "1" | ||
| 63 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 64 | + "NoRepair" "1" | ||
| 65 | + | ||
| 66 | + # Save instalation dir | ||
| 67 | + WriteRegStr HKCU "Software\@PACKAGE@" "" $INSTDIR | ||
| 68 | + | ||
| 69 | + sectionEnd | ||
| 70 | + | ||
| 71 | + SubSection "Plugins" SecPLugin | ||
| 72 | + |
| @@ -0,0 +1,78 @@ | @@ -0,0 +1,78 @@ | ||
| 1 | +# default section | ||
| 2 | +SubSection "@PACKAGE@" SecMain | ||
| 3 | + | ||
| 4 | + Section "Core" SecCore | ||
| 5 | + | ||
| 6 | + SetRegView 64 | ||
| 7 | + ${DisableX64FSRedirection} | ||
| 8 | + | ||
| 9 | + # define the output path for this file | ||
| 10 | + setOutPath $INSTDIR | ||
| 11 | + SetShellVarContext all | ||
| 12 | + | ||
| 13 | + createShortCut "$SMPROGRAMS\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" | ||
| 14 | + createShortCut "$DESKTOP\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" | ||
| 15 | + | ||
| 16 | + # Binary files | ||
| 17 | + file "/oname=$INSTDIR\@PACKAGE@.exe" ".bin\Release\@PACKAGE@.exe" | ||
| 18 | + file "/oname=$INSTDIR\@PACKAGE@.ico" "src\pw3270\@PACKAGE@.ico" | ||
| 19 | + file "/oname=$INSTDIR\lib3270.dll.@PACKAGE_VERSION@" ".bin\Release\lib3270.dll.@PACKAGE_VERSION@" | ||
| 20 | + file "/oname=$INSTDIR\pw3270.dll.@PACKAGE_VERSION@" ".bin\Release\pw3270.dll.@PACKAGE_VERSION@" | ||
| 21 | + | ||
| 22 | + # Configuration files | ||
| 23 | + file "/oname=$INSTDIR\@PACKAGE@-logo.png" "src\pw3270\@PACKAGE@-logo.png" | ||
| 24 | + file "/oname=$INSTDIR\@PACKAGE@.png" "src\pw3270\@PACKAGE@.png" | ||
| 25 | + file "/oname=$INSTDIR\colors.conf" "colors.conf" | ||
| 26 | + | ||
| 27 | + # Documentation files | ||
| 28 | + file "/oname=$INSTDIR\ChangeLog" "ChangeLog" | ||
| 29 | + file "/oname=$INSTDIR\AUTHORS" "AUTHORS" | ||
| 30 | + file "/oname=$INSTDIR\LICENSE" "LICENSE" | ||
| 31 | + | ||
| 32 | + # Misc folders | ||
| 33 | + CreateDirectory "$INSTDIR\certs" | ||
| 34 | + CreateDirectory "$INSTDIR\plugins" | ||
| 35 | + | ||
| 36 | + # UI definition files | ||
| 37 | + CreateDirectory "$INSTDIR\ui" | ||
| 38 | + | ||
| 39 | + file "/oname=$INSTDIR\ui\00default.xml" "ui\00default.xml" | ||
| 40 | + file "/oname=$INSTDIR\ui\10keypad.xml" "ui\10keypad.xml" | ||
| 41 | + | ||
| 42 | + # Locale files | ||
| 43 | + CreateDirectory "$INSTDIR\@localedir@\pt_BR\LC_MESSAGES" | ||
| 44 | + file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" | ||
| 45 | + | ||
| 46 | + # Save DataDir | ||
| 47 | + SetRegView 64 | ||
| 48 | + WriteRegStr HKLM "Software\@PACKAGE@" "datadir" "$INSTDIR" | ||
| 49 | + WriteRegStr HKLM "Software\@PACKAGE@" "appName" "$INSTDIR\@PACKAGE@.exe" | ||
| 50 | + | ||
| 51 | + # define uninstaller name | ||
| 52 | + SetRegView 32 | ||
| 53 | + | ||
| 54 | + writeUninstaller $INSTDIR\uninstall.exe | ||
| 55 | + | ||
| 56 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 57 | + "DisplayName" "@PACKAGE@ - 3270 emulator for windows/gtk" | ||
| 58 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 59 | + "DisplayIcon" "$INSTDIR\@PACKAGE@.ico" | ||
| 60 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 61 | + "DisplayVersion" "@PACKAGE_VERSION@ (Rev: @PACKAGE_REVISION@)" | ||
| 62 | + | ||
| 63 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 64 | + "UninstallString" "$INSTDIR\uninstall.exe" | ||
| 65 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 66 | + "InstallLocation" "$INSTDIR" | ||
| 67 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 68 | + "NoModify" "1" | ||
| 69 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 70 | + "NoRepair" "1" | ||
| 71 | + | ||
| 72 | + # Save instalation dir | ||
| 73 | + WriteRegStr HKCU "Software\@PACKAGE@" "" $INSTDIR | ||
| 74 | + | ||
| 75 | + sectionEnd | ||
| 76 | + | ||
| 77 | + SubSection "Plugins" SecPLugin | ||
| 78 | + |
| @@ -0,0 +1,17 @@ | @@ -0,0 +1,17 @@ | ||
| 1 | + | ||
| 2 | + SubSectionEnd | ||
| 3 | + | ||
| 4 | + SubSection "Menus, Keypads & Toolbars" SecMenu | ||
| 5 | + | ||
| 6 | + Section /o "View trace Menu" TraceMenu | ||
| 7 | + file "/oname=$INSTDIR\ui\98trace.xml" "ui\98trace.xml" | ||
| 8 | + sectionEnd | ||
| 9 | + | ||
| 10 | + Section /o "Application debug" DBGMenu | ||
| 11 | + file "/oname=$INSTDIR\ui\99debug.xml" "ui\99debug.xml" | ||
| 12 | + sectionEnd | ||
| 13 | + | ||
| 14 | + SubSectionEnd | ||
| 15 | + | ||
| 16 | +SubSectionEnd | ||
| 17 | + |
| @@ -0,0 +1,27 @@ | @@ -0,0 +1,27 @@ | ||
| 1 | + | ||
| 2 | +ReadRegStr $4 HKLM "Software\gtkwin\@GTK_MODVERSION@" "path" | ||
| 3 | + | ||
| 4 | +${if} $4 == "" | ||
| 5 | + | ||
| 6 | + SectionGetFlags "${SecGTK}" $0 | ||
| 7 | + IntOp $0 $0 | ${SF_SELECTED} | ||
| 8 | + SectionSetFlags "${SecGTK}" $0 | ||
| 9 | + | ||
| 10 | +${Else} | ||
| 11 | + | ||
| 12 | + ${if} ${FileExists} `$4\*.*` | ||
| 13 | + | ||
| 14 | + SectionGetFlags "${SecGTK}" $0 | ||
| 15 | + IntOp $0 $0 & ${SECTION_OFF} | ||
| 16 | + SectionSetFlags "${SecGTK}" $0 | ||
| 17 | + | ||
| 18 | + ${Else} | ||
| 19 | + | ||
| 20 | + SectionGetFlags "${SecGTK}" $0 | ||
| 21 | + IntOp $0 $0 | ${SF_SELECTED} | ||
| 22 | + SectionSetFlags "${SecGTK}" $0 | ||
| 23 | + | ||
| 24 | + ${EndIf} | ||
| 25 | + | ||
| 26 | +${EndIf} | ||
| 27 | + |
| @@ -0,0 +1,13 @@ | @@ -0,0 +1,13 @@ | ||
| 1 | + Section /o "Rexx" RexxPlugin | ||
| 2 | + | ||
| 3 | + setOutPath $INSTDIR | ||
| 4 | + | ||
| 5 | + file "/oname=$INSTDIR\plugins\rxplug.dll" ".bin\Release\plugins\rx3270.dll" | ||
| 6 | + file "/oname=$INSTDIR\ui\80rexx.xml" "ui\80rexx.xml" | ||
| 7 | + | ||
| 8 | + file "/oname=$PROGRAMFILES\ooRexx\rx3270.cls" "src\plugins\rx3270\rx3270.cls" | ||
| 9 | + file "/oname=$INSTDIR\rx3270.dll.@PACKAGE_VERSION@" ".bin\Release\rx3270.dll.@PACKAGE_VERSION@" | ||
| 10 | + file "/oname=$PROGRAMFILES\ooRexx\rx3270.dll" ".bin\Release\rx3270.dll.@PACKAGE_VERSION@" | ||
| 11 | + | ||
| 12 | + sectionEnd | ||
| 13 | + |
| @@ -0,0 +1,37 @@ | @@ -0,0 +1,37 @@ | ||
| 1 | + | ||
| 2 | +Section /o "Software Development Kit" SecSDK | ||
| 3 | + | ||
| 4 | + CreateDirectory "$INSTDIR\sdk" | ||
| 5 | + CreateDirectory "$INSTDIR\sdk\include" | ||
| 6 | + CreateDirectory "$INSTDIR\sdk\include\lib3270" | ||
| 7 | + CreateDirectory "$INSTDIR\sdk\include\pw3270" | ||
| 8 | + CreateDirectory "$INSTDIR\sdk\sample" | ||
| 9 | + CreateDirectory "$INSTDIR\sdk\sample\classlib" | ||
| 10 | + | ||
| 11 | + setOutPath $INSTDIR\sdk\include | ||
| 12 | + file "src\include\lib3270.h" | ||
| 13 | + file "src\include\pw3270.h" | ||
| 14 | + | ||
| 15 | + setOutPath $INSTDIR\sdk\include\pw3270 | ||
| 16 | + file "src\include\pw3270\class.h" | ||
| 17 | + file "src\include\pw3270\hllapi.h" | ||
| 18 | + file "src\include\pw3270\ipcpackets.h" | ||
| 19 | + file "src\include\pw3270\plugin.h" | ||
| 20 | + file "src\include\pw3270\trace.h" | ||
| 21 | + file "src\include\pw3270\v3270.h" | ||
| 22 | + | ||
| 23 | + setOutPath $INSTDIR\sdk\include\lib3270 | ||
| 24 | + file "src\include\lib3270\config.h" | ||
| 25 | + file "src\include\rules.mak" | ||
| 26 | + | ||
| 27 | + setOutPath $INSTDIR\sdk\sample\connect | ||
| 28 | + file "src\sample\Makefile" | ||
| 29 | + file "src\sample\connect.c" | ||
| 30 | + | ||
| 31 | + setOutPath $INSTDIR\sdk\sample\classlib | ||
| 32 | + file "src\classlib\*.cc" | ||
| 33 | + file "src\include\pw3270\class.h" | ||
| 34 | + | ||
| 35 | +SectionEnd | ||
| 36 | + | ||
| 37 | + |
| @@ -0,0 +1,43 @@ | @@ -0,0 +1,43 @@ | ||
| 1 | + | ||
| 2 | +# create a section to define what the uninstaller does. | ||
| 3 | +# the section will always be named "Uninstall" | ||
| 4 | +section "Uninstall" | ||
| 5 | + | ||
| 6 | + # Always delete uninstaller first | ||
| 7 | + delete $INSTDIR\uninstaller.exe | ||
| 8 | + | ||
| 9 | + # Set SMPROGRAMS and DESKTOP path | ||
| 10 | + SetShellVarContext all | ||
| 11 | + | ||
| 12 | + # now delete installed files | ||
| 13 | + delete $INSTDIR\@PACKAGE@.exe | ||
| 14 | + | ||
| 15 | + delete $SMPROGRAMS\@PACKAGE@.lnk | ||
| 16 | + delete $DESKTOP\@PACKAGE@.lnk | ||
| 17 | + | ||
| 18 | + RMDir /r "$INSTDIR\locale" | ||
| 19 | + RMDir /r "$INSTDIR\share" | ||
| 20 | + RMDir /r "$INSTDIR\etc" | ||
| 21 | + RMDir /r "$INSTDIR\plugins" | ||
| 22 | + RMDir /r "$INSTDIR\sdk" | ||
| 23 | + RMDir /r "$INSTDIR\gtk2-runtime" | ||
| 24 | + | ||
| 25 | + # Delete all files | ||
| 26 | + delete "$INSTDIR\*.dll" | ||
| 27 | + | ||
| 28 | + # Remove registry | ||
| 29 | + DeleteRegKey HKLM "Software\@PACKAGE@" | ||
| 30 | + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" | ||
| 31 | + DeleteRegKey HKLM "Software\@PACKAGE@" | ||
| 32 | + | ||
| 33 | + # Delete System libraries | ||
| 34 | + delete $SYSDIR\libhllapi.dll | ||
| 35 | + | ||
| 36 | + # Delete extension libraries | ||
| 37 | + delete "$PROGRAMFILES\ooRexx\rx3270.cls" | ||
| 38 | + delete "$PROGRAMFILES\ooRexx\rx3270.dll" | ||
| 39 | + | ||
| 40 | + RMDir /r "$INSTDIR" | ||
| 41 | + | ||
| 42 | +sectionEnd | ||
| 43 | + |
| @@ -0,0 +1,46 @@ | @@ -0,0 +1,46 @@ | ||
| 1 | + | ||
| 2 | +# create a section to define what the uninstaller does. | ||
| 3 | +# the section will always be named "Uninstall" | ||
| 4 | +section "Uninstall" | ||
| 5 | + | ||
| 6 | + # Always delete uninstaller first | ||
| 7 | + delete $INSTDIR\uninstaller.exe | ||
| 8 | + | ||
| 9 | + # Set SMPROGRAMS and DESKTOP path | ||
| 10 | + SetShellVarContext all | ||
| 11 | + | ||
| 12 | + # now delete installed files | ||
| 13 | + delete $INSTDIR\@PACKAGE@.exe | ||
| 14 | + | ||
| 15 | + delete $SMPROGRAMS\@PACKAGE@.lnk | ||
| 16 | + delete $DESKTOP\@PACKAGE@.lnk | ||
| 17 | + | ||
| 18 | + RMDir /r "$INSTDIR\locale" | ||
| 19 | + RMDir /r "$INSTDIR\share" | ||
| 20 | + RMDir /r "$INSTDIR\etc" | ||
| 21 | + RMDir /r "$INSTDIR\plugins" | ||
| 22 | + RMDir /r "$INSTDIR\sdk" | ||
| 23 | + | ||
| 24 | + # Delete all files | ||
| 25 | + delete "$INSTDIR\*.dll" | ||
| 26 | + | ||
| 27 | + # Remove registry | ||
| 28 | + SetRegView 64 | ||
| 29 | + DeleteRegKey HKLM "Software\@PACKAGE@" | ||
| 30 | + | ||
| 31 | + SetRegView 32 | ||
| 32 | + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" | ||
| 33 | + DeleteRegKey HKLM "Software\@PACKAGE@" | ||
| 34 | + | ||
| 35 | + # Delete System libraries | ||
| 36 | + delete $SYSDIR\libhllapi.dll | ||
| 37 | + | ||
| 38 | + # Delete extension libraries | ||
| 39 | + delete "$PROGRAMFILES64\ooRexx\rx3270.cls" | ||
| 40 | + delete "$PROGRAMFILES64\ooRexx\rx3270.dll" | ||
| 41 | + | ||
| 42 | + RMDir /r "$INSTDIR" | ||
| 43 | + | ||
| 44 | +sectionEnd | ||
| 45 | + | ||
| 46 | + |
po/pt_BR.po
| @@ -5,7 +5,7 @@ msgid "" | @@ -5,7 +5,7 @@ msgid "" | ||
| 5 | msgstr "" | 5 | msgstr "" |
| 6 | "Project-Id-Version: pw3270 5.0\n" | 6 | "Project-Id-Version: pw3270 5.0\n" |
| 7 | "Report-Msgid-Bugs-To: \n" | 7 | "Report-Msgid-Bugs-To: \n" |
| 8 | -"POT-Creation-Date: 2015-08-28 07:44-0300\n" | 8 | +"POT-Creation-Date: 2015-08-28 08:33-0300\n" |
| 9 | "PO-Revision-Date: 2014-02-17 08:05-0300\n" | 9 | "PO-Revision-Date: 2014-02-17 08:05-0300\n" |
| 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
| 11 | "Language-Team: Portugues <>\n" | 11 | "Language-Team: Portugues <>\n" |
| @@ -0,0 +1,247 @@ | @@ -0,0 +1,247 @@ | ||
| 1 | +!include "MUI2.nsh" | ||
| 2 | + | ||
| 3 | +Name "@PACKAGE@" | ||
| 4 | +Caption "@PACKAGE@ - 3270 Emulator for windows/gtk" | ||
| 5 | +outfile "@PACKAGE@-@PACKAGE_VERSION@.@PACKAGE_LEVEL@-requires-gtk-@GTK_MODVERSION@-@host_cpu@.exe" | ||
| 6 | +XPStyle on | ||
| 7 | + | ||
| 8 | +# define the directory to install to | ||
| 9 | +installDir $PROGRAMFILES\@PACKAGE@ | ||
| 10 | + | ||
| 11 | +#define the installer icon | ||
| 12 | +!define MUI_ICON "src\pw3270\@PACKAGE@.ico" | ||
| 13 | +!define MUI_UNICON "src\pw3270\@PACKAGE@.ico" | ||
| 14 | +icon "src\pw3270\@PACKAGE@.ico" | ||
| 15 | + | ||
| 16 | +# Get installation folder from registry if available | ||
| 17 | +InstallDirRegKey HKLM "Software\@PACKAGE@" "InstallLocation" | ||
| 18 | + | ||
| 19 | +RequestExecutionLevel admin | ||
| 20 | + | ||
| 21 | +# Properties | ||
| 22 | +VIProductVersion "@PACKAGE_VERSION@.@PACKAGE_LEVEL@.@PACKAGE_REVISION@" | ||
| 23 | +VIAddVersionKey "ProductName" "@PACKAGE@" | ||
| 24 | +VIAddVersionKey "FileDescription" "3270 Emulator for windows/gtk" | ||
| 25 | +VIAddVersionKey "FileVersion" "@PACKAGE_REVISION@" | ||
| 26 | +VIAddVersionKey "LegalCopyright" "GPL-2.0" | ||
| 27 | + | ||
| 28 | +# Interface | ||
| 29 | + | ||
| 30 | +!define MUI_ABORTWARNING | ||
| 31 | +# !insertmacro MUI_PAGE_WELCOME | ||
| 32 | +!insertmacro MUI_PAGE_LICENSE "LICENSE" | ||
| 33 | +!insertmacro MUI_PAGE_COMPONENTS | ||
| 34 | +!insertmacro MUI_PAGE_DIRECTORY | ||
| 35 | +!insertmacro MUI_PAGE_INSTFILES | ||
| 36 | + | ||
| 37 | +# !insertmacro MUI_UNPAGE_WELCOME | ||
| 38 | +!insertmacro MUI_UNPAGE_CONFIRM | ||
| 39 | +!insertmacro MUI_UNPAGE_INSTFILES | ||
| 40 | +# !insertmacro MUI_UNPAGE_FINISH | ||
| 41 | + | ||
| 42 | +# Languages | ||
| 43 | +!insertmacro MUI_LANGUAGE "English" | ||
| 44 | + | ||
| 45 | +# Section scripts | ||
| 46 | +!include Sections.nsh | ||
| 47 | + | ||
| 48 | +# default section | ||
| 49 | +SubSection "@PACKAGE@" SecMain | ||
| 50 | + | ||
| 51 | + Section "Core" SecCore | ||
| 52 | + | ||
| 53 | + # define the output path for this file | ||
| 54 | + setOutPath $INSTDIR | ||
| 55 | + SetShellVarContext all | ||
| 56 | + | ||
| 57 | + createShortCut "$SMPROGRAMS\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" | ||
| 58 | + createShortCut "$DESKTOP\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" | ||
| 59 | + | ||
| 60 | + # Binary files | ||
| 61 | + file "/oname=$INSTDIR\@PACKAGE@.exe" ".bin\Release\@PACKAGE@.exe" | ||
| 62 | + file "/oname=$INSTDIR\@PACKAGE@.ico" "src\pw3270\@PACKAGE@.ico" | ||
| 63 | + file "/oname=$INSTDIR\lib3270.dll.@PACKAGE_VERSION@" ".bin\Release\lib3270.dll.@PACKAGE_VERSION@" | ||
| 64 | + file "/oname=$INSTDIR\pw3270.dll.@PACKAGE_VERSION@" ".bin\Release\pw3270.dll.@PACKAGE_VERSION@" | ||
| 65 | + | ||
| 66 | + # Configuration files | ||
| 67 | + file "/oname=$INSTDIR\@PACKAGE@-logo.png" "src\pw3270\@PACKAGE@-logo.png" | ||
| 68 | + file "/oname=$INSTDIR\@PACKAGE@.png" "src\pw3270\@PACKAGE@.png" | ||
| 69 | + file "/oname=$INSTDIR\colors.conf" "colors.conf" | ||
| 70 | + | ||
| 71 | + # Documentation files | ||
| 72 | + file "/oname=$INSTDIR\ChangeLog" "ChangeLog" | ||
| 73 | + file "/oname=$INSTDIR\AUTHORS" "AUTHORS" | ||
| 74 | + file "/oname=$INSTDIR\LICENSE" "LICENSE" | ||
| 75 | + | ||
| 76 | + # Misc folders | ||
| 77 | + CreateDirectory "$INSTDIR\certs" | ||
| 78 | + CreateDirectory "$INSTDIR\plugins" | ||
| 79 | + | ||
| 80 | + # UI definition files | ||
| 81 | + CreateDirectory "$INSTDIR\ui" | ||
| 82 | + | ||
| 83 | + file "/oname=$INSTDIR\ui\00default.xml" "ui\00default.xml" | ||
| 84 | + file "/oname=$INSTDIR\ui\10keypad.xml" "ui\10keypad.xml" | ||
| 85 | + | ||
| 86 | + # Locale files | ||
| 87 | + CreateDirectory "$INSTDIR\@localedir@\pt_BR\LC_MESSAGES" | ||
| 88 | + file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" | ||
| 89 | + | ||
| 90 | + # Save DataDir | ||
| 91 | + WriteRegStr HKLM "Software\@PACKAGE@" "datadir" "$INSTDIR" | ||
| 92 | + WriteRegStr HKLM "Software\@PACKAGE@" "appName" "$INSTDIR\@PACKAGE@.exe" | ||
| 93 | + | ||
| 94 | + # define uninstaller name | ||
| 95 | + writeUninstaller $INSTDIR\uninstall.exe | ||
| 96 | + | ||
| 97 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 98 | + "DisplayName" "@PACKAGE@ - 3270 emulator for windows/gtk" | ||
| 99 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 100 | + "DisplayIcon" "$INSTDIR\@PACKAGE@.ico" | ||
| 101 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 102 | + "DisplayVersion" "@PACKAGE_VERSION@ (Rev: @PACKAGE_REVISION@)" | ||
| 103 | + | ||
| 104 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 105 | + "UninstallString" "$INSTDIR\uninstall.exe" | ||
| 106 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 107 | + "InstallLocation" "$INSTDIR" | ||
| 108 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 109 | + "NoModify" "1" | ||
| 110 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 111 | + "NoRepair" "1" | ||
| 112 | + | ||
| 113 | + # Save instalation dir | ||
| 114 | + WriteRegStr HKCU "Software\@PACKAGE@" "" $INSTDIR | ||
| 115 | + | ||
| 116 | + sectionEnd | ||
| 117 | + | ||
| 118 | + SubSection "Plugins" SecPLugin | ||
| 119 | + | ||
| 120 | + Section /o "HLLAPI" HLLAPIPlugin | ||
| 121 | + setOutPath $INSTDIR | ||
| 122 | + | ||
| 123 | + CreateDirectory "$INSTDIR\plugins" | ||
| 124 | + file "/oname=$INSTDIR\plugins\hllapi.dll" ".bin\Release\plugins\hllapi.dll" | ||
| 125 | + file "/oname=$SYSDIR\libhllapi.dll" ".bin\Release\hllapi.dll.@PACKAGE_VERSION@" | ||
| 126 | + | ||
| 127 | + sectionEnd | ||
| 128 | + | ||
| 129 | + Section /o "Rexx" RexxPlugin | ||
| 130 | + | ||
| 131 | + setOutPath $INSTDIR | ||
| 132 | + | ||
| 133 | + file "/oname=$INSTDIR\plugins\rxplug.dll" ".bin\Release\plugins\rx3270.dll" | ||
| 134 | + file "/oname=$INSTDIR\ui\80rexx.xml" "ui\80rexx.xml" | ||
| 135 | + | ||
| 136 | + file "/oname=$PROGRAMFILES\ooRexx\rx3270.cls" "src\plugins\rx3270\rx3270.cls" | ||
| 137 | + file "/oname=$INSTDIR\rx3270.dll.@PACKAGE_VERSION@" ".bin\Release\rx3270.dll.@PACKAGE_VERSION@" | ||
| 138 | + file "/oname=$PROGRAMFILES\ooRexx\rx3270.dll" ".bin\Release\rx3270.dll.@PACKAGE_VERSION@" | ||
| 139 | + | ||
| 140 | + sectionEnd | ||
| 141 | + | ||
| 142 | + SubSectionEnd | ||
| 143 | + | ||
| 144 | + SubSection "Menus, Keypads & Toolbars" SecMenu | ||
| 145 | + | ||
| 146 | + Section /o "View trace Menu" TraceMenu | ||
| 147 | + file "/oname=$INSTDIR\ui\98trace.xml" "ui\98trace.xml" | ||
| 148 | + sectionEnd | ||
| 149 | + | ||
| 150 | + Section /o "Application debug" DBGMenu | ||
| 151 | + file "/oname=$INSTDIR\ui\99debug.xml" "ui\99debug.xml" | ||
| 152 | + sectionEnd | ||
| 153 | + | ||
| 154 | + SubSectionEnd | ||
| 155 | + | ||
| 156 | +SubSectionEnd | ||
| 157 | + | ||
| 158 | +Section /o "Software Development Kit" SecSDK | ||
| 159 | + | ||
| 160 | + CreateDirectory "$INSTDIR\sdk" | ||
| 161 | + CreateDirectory "$INSTDIR\sdk\include" | ||
| 162 | + CreateDirectory "$INSTDIR\sdk\include\lib3270" | ||
| 163 | + CreateDirectory "$INSTDIR\sdk\include\pw3270" | ||
| 164 | + CreateDirectory "$INSTDIR\sdk\sample" | ||
| 165 | + CreateDirectory "$INSTDIR\sdk\sample\classlib" | ||
| 166 | + | ||
| 167 | + setOutPath $INSTDIR\sdk\include | ||
| 168 | + file "src\include\lib3270.h" | ||
| 169 | + file "src\include\pw3270.h" | ||
| 170 | + | ||
| 171 | + setOutPath $INSTDIR\sdk\include\pw3270 | ||
| 172 | + file "src\include\pw3270\class.h" | ||
| 173 | + file "src\include\pw3270\hllapi.h" | ||
| 174 | + file "src\include\pw3270\ipcpackets.h" | ||
| 175 | + file "src\include\pw3270\plugin.h" | ||
| 176 | + file "src\include\pw3270\trace.h" | ||
| 177 | + file "src\include\pw3270\v3270.h" | ||
| 178 | + | ||
| 179 | + setOutPath $INSTDIR\sdk\include\lib3270 | ||
| 180 | + file "src\include\lib3270\config.h" | ||
| 181 | + file "src\include\rules.mak" | ||
| 182 | + | ||
| 183 | + setOutPath $INSTDIR\sdk\sample\connect | ||
| 184 | + file "src\sample\Makefile" | ||
| 185 | + file "src\sample\connect.c" | ||
| 186 | + | ||
| 187 | + setOutPath $INSTDIR\sdk\sample\classlib | ||
| 188 | + file "src\classlib\*.cc" | ||
| 189 | + file "src\include\pw3270\class.h" | ||
| 190 | + | ||
| 191 | +SectionEnd | ||
| 192 | + | ||
| 193 | +# create a section to define what the uninstaller does. | ||
| 194 | +# the section will always be named "Uninstall" | ||
| 195 | +section "Uninstall" | ||
| 196 | + | ||
| 197 | + # Always delete uninstaller first | ||
| 198 | + delete $INSTDIR\uninstaller.exe | ||
| 199 | + | ||
| 200 | + # Set SMPROGRAMS and DESKTOP path | ||
| 201 | + SetShellVarContext all | ||
| 202 | + | ||
| 203 | + # now delete installed files | ||
| 204 | + delete $INSTDIR\@PACKAGE@.exe | ||
| 205 | + | ||
| 206 | + delete $SMPROGRAMS\@PACKAGE@.lnk | ||
| 207 | + delete $DESKTOP\@PACKAGE@.lnk | ||
| 208 | + | ||
| 209 | + RMDir /r "$INSTDIR\locale" | ||
| 210 | + RMDir /r "$INSTDIR\share" | ||
| 211 | + RMDir /r "$INSTDIR\etc" | ||
| 212 | + RMDir /r "$INSTDIR\plugins" | ||
| 213 | + RMDir /r "$INSTDIR\sdk" | ||
| 214 | + RMDir /r "$INSTDIR\gtk2-runtime" | ||
| 215 | + | ||
| 216 | + # Delete all files | ||
| 217 | + delete "$INSTDIR\*.dll" | ||
| 218 | + | ||
| 219 | + # Remove registry | ||
| 220 | + DeleteRegKey HKLM "Software\@PACKAGE@" | ||
| 221 | + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" | ||
| 222 | + DeleteRegKey HKLM "Software\@PACKAGE@" | ||
| 223 | + | ||
| 224 | + # Delete System libraries | ||
| 225 | + delete $SYSDIR\libhllapi.dll | ||
| 226 | + | ||
| 227 | + # Delete extension libraries | ||
| 228 | + delete "$PROGRAMFILES\ooRexx\rx3270.cls" | ||
| 229 | + delete "$PROGRAMFILES\ooRexx\rx3270.dll" | ||
| 230 | + | ||
| 231 | + RMDir /r "$INSTDIR" | ||
| 232 | + | ||
| 233 | +sectionEnd | ||
| 234 | + | ||
| 235 | +Function .onInit | ||
| 236 | + | ||
| 237 | +${if} ${FileExists} `$PROGRAMFILES\ooRexx\rexx.exe` | ||
| 238 | + | ||
| 239 | + SectionGetFlags "${RexxPlugin}" $0 | ||
| 240 | + IntOp $0 $0 | ${SF_SELECTED} | ||
| 241 | + SectionSetFlags "${RexxPlugin}" $0 | ||
| 242 | + | ||
| 243 | +${EndIf} | ||
| 244 | + | ||
| 245 | +FunctionEnd | ||
| 246 | + | ||
| 247 | + |
| @@ -0,0 +1,257 @@ | @@ -0,0 +1,257 @@ | ||
| 1 | +!include "MUI2.nsh" | ||
| 2 | +!include x64.nsh | ||
| 3 | + | ||
| 4 | +Name "@PACKAGE@" | ||
| 5 | +Caption "@PACKAGE@ - 3270 Emulator for windows/gtk" | ||
| 6 | +outfile "@PACKAGE@-@PACKAGE_VERSION@.@PACKAGE_LEVEL@-requires-gtk-@GTK_MODVERSION@-@host_cpu@.exe" | ||
| 7 | +XPStyle on | ||
| 8 | + | ||
| 9 | +installDir "$PROGRAMFILES64\pw3270" | ||
| 10 | + | ||
| 11 | +#define the installer icon | ||
| 12 | +!define MUI_ICON "src\pw3270\@PACKAGE@.ico" | ||
| 13 | +!define MUI_UNICON "src\pw3270\@PACKAGE@.ico" | ||
| 14 | +icon "src\pw3270\@PACKAGE@.ico" | ||
| 15 | + | ||
| 16 | +# Get installation folder from registry if available | ||
| 17 | +InstallDirRegKey HKLM "Software\@PACKAGE@" "InstallLocation" | ||
| 18 | + | ||
| 19 | +RequestExecutionLevel admin | ||
| 20 | + | ||
| 21 | +# Properties | ||
| 22 | +VIProductVersion "@PACKAGE_VERSION@.@PACKAGE_LEVEL@.@PACKAGE_REVISION@" | ||
| 23 | +VIAddVersionKey "ProductName" "@PACKAGE@" | ||
| 24 | +VIAddVersionKey "FileDescription" "3270 Emulator for windows/gtk" | ||
| 25 | +VIAddVersionKey "FileVersion" "@PACKAGE_REVISION@" | ||
| 26 | +VIAddVersionKey "LegalCopyright" "GPL-2.0" | ||
| 27 | + | ||
| 28 | +# Interface | ||
| 29 | + | ||
| 30 | +!define MUI_ABORTWARNING | ||
| 31 | +# !insertmacro MUI_PAGE_WELCOME | ||
| 32 | +!insertmacro MUI_PAGE_LICENSE "LICENSE" | ||
| 33 | +!insertmacro MUI_PAGE_COMPONENTS | ||
| 34 | +!insertmacro MUI_PAGE_DIRECTORY | ||
| 35 | +!insertmacro MUI_PAGE_INSTFILES | ||
| 36 | + | ||
| 37 | +# !insertmacro MUI_UNPAGE_WELCOME | ||
| 38 | +!insertmacro MUI_UNPAGE_CONFIRM | ||
| 39 | +!insertmacro MUI_UNPAGE_INSTFILES | ||
| 40 | +# !insertmacro MUI_UNPAGE_FINISH | ||
| 41 | + | ||
| 42 | +# Languages | ||
| 43 | +!insertmacro MUI_LANGUAGE "English" | ||
| 44 | + | ||
| 45 | +# Section scripts | ||
| 46 | +!include Sections.nsh | ||
| 47 | + | ||
| 48 | +# default section | ||
| 49 | +SubSection "@PACKAGE@" SecMain | ||
| 50 | + | ||
| 51 | + Section "Core" SecCore | ||
| 52 | + | ||
| 53 | + SetRegView 64 | ||
| 54 | + ${DisableX64FSRedirection} | ||
| 55 | + | ||
| 56 | + # define the output path for this file | ||
| 57 | + setOutPath $INSTDIR | ||
| 58 | + SetShellVarContext all | ||
| 59 | + | ||
| 60 | + createShortCut "$SMPROGRAMS\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" | ||
| 61 | + createShortCut "$DESKTOP\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" | ||
| 62 | + | ||
| 63 | + # Binary files | ||
| 64 | + file "/oname=$INSTDIR\@PACKAGE@.exe" ".bin\Release\@PACKAGE@.exe" | ||
| 65 | + file "/oname=$INSTDIR\@PACKAGE@.ico" "src\pw3270\@PACKAGE@.ico" | ||
| 66 | + file "/oname=$INSTDIR\lib3270.dll.@PACKAGE_VERSION@" ".bin\Release\lib3270.dll.@PACKAGE_VERSION@" | ||
| 67 | + file "/oname=$INSTDIR\pw3270.dll.@PACKAGE_VERSION@" ".bin\Release\pw3270.dll.@PACKAGE_VERSION@" | ||
| 68 | + | ||
| 69 | + # Configuration files | ||
| 70 | + file "/oname=$INSTDIR\@PACKAGE@-logo.png" "src\pw3270\@PACKAGE@-logo.png" | ||
| 71 | + file "/oname=$INSTDIR\@PACKAGE@.png" "src\pw3270\@PACKAGE@.png" | ||
| 72 | + file "/oname=$INSTDIR\colors.conf" "colors.conf" | ||
| 73 | + | ||
| 74 | + # Documentation files | ||
| 75 | + file "/oname=$INSTDIR\ChangeLog" "ChangeLog" | ||
| 76 | + file "/oname=$INSTDIR\AUTHORS" "AUTHORS" | ||
| 77 | + file "/oname=$INSTDIR\LICENSE" "LICENSE" | ||
| 78 | + | ||
| 79 | + # Misc folders | ||
| 80 | + CreateDirectory "$INSTDIR\certs" | ||
| 81 | + CreateDirectory "$INSTDIR\plugins" | ||
| 82 | + | ||
| 83 | + # UI definition files | ||
| 84 | + CreateDirectory "$INSTDIR\ui" | ||
| 85 | + | ||
| 86 | + file "/oname=$INSTDIR\ui\00default.xml" "ui\00default.xml" | ||
| 87 | + file "/oname=$INSTDIR\ui\10keypad.xml" "ui\10keypad.xml" | ||
| 88 | + | ||
| 89 | + # Locale files | ||
| 90 | + CreateDirectory "$INSTDIR\@localedir@\pt_BR\LC_MESSAGES" | ||
| 91 | + file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" | ||
| 92 | + | ||
| 93 | + # Save DataDir | ||
| 94 | + SetRegView 64 | ||
| 95 | + WriteRegStr HKLM "Software\@PACKAGE@" "datadir" "$INSTDIR" | ||
| 96 | + WriteRegStr HKLM "Software\@PACKAGE@" "appName" "$INSTDIR\@PACKAGE@.exe" | ||
| 97 | + | ||
| 98 | + # define uninstaller name | ||
| 99 | + SetRegView 32 | ||
| 100 | + | ||
| 101 | + writeUninstaller $INSTDIR\uninstall.exe | ||
| 102 | + | ||
| 103 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 104 | + "DisplayName" "@PACKAGE@ - 3270 emulator for windows/gtk" | ||
| 105 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 106 | + "DisplayIcon" "$INSTDIR\@PACKAGE@.ico" | ||
| 107 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 108 | + "DisplayVersion" "@PACKAGE_VERSION@ (Rev: @PACKAGE_REVISION@)" | ||
| 109 | + | ||
| 110 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 111 | + "UninstallString" "$INSTDIR\uninstall.exe" | ||
| 112 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 113 | + "InstallLocation" "$INSTDIR" | ||
| 114 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 115 | + "NoModify" "1" | ||
| 116 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | ||
| 117 | + "NoRepair" "1" | ||
| 118 | + | ||
| 119 | + # Save instalation dir | ||
| 120 | + WriteRegStr HKCU "Software\@PACKAGE@" "" $INSTDIR | ||
| 121 | + | ||
| 122 | + sectionEnd | ||
| 123 | + | ||
| 124 | + SubSection "Plugins" SecPLugin | ||
| 125 | + | ||
| 126 | + Section /o "HLLAPI" HLLAPIPlugin | ||
| 127 | + setOutPath $INSTDIR | ||
| 128 | + | ||
| 129 | + CreateDirectory "$INSTDIR\plugins" | ||
| 130 | + file "/oname=$INSTDIR\plugins\hllapi.dll" ".bin\Release\plugins\hllapi.dll" | ||
| 131 | + file "/oname=$SYSDIR\libhllapi.dll" ".bin\Release\hllapi.dll" | ||
| 132 | + | ||
| 133 | + sectionEnd | ||
| 134 | + | ||
| 135 | + Section /o "Rexx" RexxPlugin | ||
| 136 | + | ||
| 137 | + setOutPath $INSTDIR | ||
| 138 | + | ||
| 139 | + file "/oname=$INSTDIR\plugins\rxplug.dll" ".bin\Release\plugins\rx3270.dll" | ||
| 140 | + file "/oname=$INSTDIR\ui\80rexx.xml" "ui\80rexx.xml" | ||
| 141 | + | ||
| 142 | + file "/oname=$PROGRAMFILES64\ooRexx\rx3270.cls" "src\plugins\rx3270\rx3270.cls" | ||
| 143 | + file "/oname=$INSTDIR\rx3270.dll.@PACKAGE_VERSION@" ".bin\Release\rx3270.dll.@PACKAGE_VERSION@" | ||
| 144 | + file "/oname=$PROGRAMFILES64\ooRexx\rx3270.dll" ".bin\Release\rx3270.dll" | ||
| 145 | + | ||
| 146 | + sectionEnd | ||
| 147 | + | ||
| 148 | + SubSectionEnd | ||
| 149 | + | ||
| 150 | + SubSection "Menus, Keypads & Toolbars" SecMenu | ||
| 151 | + | ||
| 152 | + Section /o "View trace Menu" TraceMenu | ||
| 153 | + file "/oname=$INSTDIR\ui\98trace.xml" "ui\98trace.xml" | ||
| 154 | + sectionEnd | ||
| 155 | + | ||
| 156 | + Section /o "Application debug" DBGMenu | ||
| 157 | + file "/oname=$INSTDIR\ui\99debug.xml" "ui\99debug.xml" | ||
| 158 | + sectionEnd | ||
| 159 | + | ||
| 160 | + SubSectionEnd | ||
| 161 | + | ||
| 162 | +SubSectionEnd | ||
| 163 | + | ||
| 164 | +Section /o "Software Development Kit" SecSDK | ||
| 165 | + | ||
| 166 | + CreateDirectory "$INSTDIR\sdk" | ||
| 167 | + CreateDirectory "$INSTDIR\sdk\include" | ||
| 168 | + CreateDirectory "$INSTDIR\sdk\include\lib3270" | ||
| 169 | + CreateDirectory "$INSTDIR\sdk\include\pw3270" | ||
| 170 | + CreateDirectory "$INSTDIR\sdk\sample" | ||
| 171 | + CreateDirectory "$INSTDIR\sdk\sample\classlib" | ||
| 172 | + | ||
| 173 | + setOutPath $INSTDIR\sdk\include | ||
| 174 | + file "src\include\lib3270.h" | ||
| 175 | + file "src\include\pw3270.h" | ||
| 176 | + | ||
| 177 | + setOutPath $INSTDIR\sdk\include\pw3270 | ||
| 178 | + file "src\include\pw3270\class.h" | ||
| 179 | + file "src\include\pw3270\hllapi.h" | ||
| 180 | + file "src\include\pw3270\ipcpackets.h" | ||
| 181 | + file "src\include\pw3270\plugin.h" | ||
| 182 | + file "src\include\pw3270\trace.h" | ||
| 183 | + file "src\include\pw3270\v3270.h" | ||
| 184 | + | ||
| 185 | + setOutPath $INSTDIR\sdk\include\lib3270 | ||
| 186 | + file "src\include\lib3270\config.h" | ||
| 187 | + file "src\include\rules.mak" | ||
| 188 | + | ||
| 189 | + setOutPath $INSTDIR\sdk\sample\connect | ||
| 190 | + file "src\sample\Makefile" | ||
| 191 | + file "src\sample\connect.c" | ||
| 192 | + | ||
| 193 | + setOutPath $INSTDIR\sdk\sample\classlib | ||
| 194 | + file "src\classlib\*.cc" | ||
| 195 | + file "src\include\pw3270\class.h" | ||
| 196 | + | ||
| 197 | +SectionEnd | ||
| 198 | + | ||
| 199 | +# create a section to define what the uninstaller does. | ||
| 200 | +# the section will always be named "Uninstall" | ||
| 201 | +section "Uninstall" | ||
| 202 | + | ||
| 203 | + # Always delete uninstaller first | ||
| 204 | + delete $INSTDIR\uninstaller.exe | ||
| 205 | + | ||
| 206 | + # Set SMPROGRAMS and DESKTOP path | ||
| 207 | + SetShellVarContext all | ||
| 208 | + | ||
| 209 | + # now delete installed files | ||
| 210 | + delete $INSTDIR\@PACKAGE@.exe | ||
| 211 | + | ||
| 212 | + delete $SMPROGRAMS\@PACKAGE@.lnk | ||
| 213 | + delete $DESKTOP\@PACKAGE@.lnk | ||
| 214 | + | ||
| 215 | + RMDir /r "$INSTDIR\locale" | ||
| 216 | + RMDir /r "$INSTDIR\share" | ||
| 217 | + RMDir /r "$INSTDIR\etc" | ||
| 218 | + RMDir /r "$INSTDIR\plugins" | ||
| 219 | + RMDir /r "$INSTDIR\sdk" | ||
| 220 | + | ||
| 221 | + # Delete all files | ||
| 222 | + delete "$INSTDIR\*.dll" | ||
| 223 | + | ||
| 224 | + # Remove registry | ||
| 225 | + SetRegView 64 | ||
| 226 | + DeleteRegKey HKLM "Software\@PACKAGE@" | ||
| 227 | + | ||
| 228 | + SetRegView 32 | ||
| 229 | + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" | ||
| 230 | + DeleteRegKey HKLM "Software\@PACKAGE@" | ||
| 231 | + | ||
| 232 | + # Delete System libraries | ||
| 233 | + delete $SYSDIR\libhllapi.dll | ||
| 234 | + | ||
| 235 | + # Delete extension libraries | ||
| 236 | + delete "$PROGRAMFILES64\ooRexx\rx3270.cls" | ||
| 237 | + delete "$PROGRAMFILES64\ooRexx\rx3270.dll" | ||
| 238 | + | ||
| 239 | + RMDir /r "$INSTDIR" | ||
| 240 | + | ||
| 241 | +sectionEnd | ||
| 242 | + | ||
| 243 | +Function .onInit | ||
| 244 | + | ||
| 245 | +SetRegView 64 | ||
| 246 | + | ||
| 247 | +${if} ${FileExists} `$PROGRAMFILES64\ooRexx\rexx.exe` | ||
| 248 | + | ||
| 249 | + SectionGetFlags "${RexxPlugin}" $0 | ||
| 250 | + IntOp $0 $0 | ${SF_SELECTED} | ||
| 251 | + SectionSetFlags "${RexxPlugin}" $0 | ||
| 252 | + | ||
| 253 | +${EndIf} | ||
| 254 | + | ||
| 255 | +FunctionEnd | ||
| 256 | + | ||
| 257 | + |