diff --git a/configure.ac b/configure.ac index 5f4f1fc..feb1db0 100644 --- a/configure.ac +++ b/configure.ac @@ -148,6 +148,26 @@ case "$host" in PLUGINS="hllapi" APP_GUI_SRC="resources.rc" DLLPREFIX="" + + AC_CONFIG_FILES(nsi/header-$host_cpu-no-gtk.nsi) + AC_CONFIG_FILES(nsi/header-$host_cpu.nsi) + AC_CONFIG_FILES(nsi/main-begin-$host_cpu.nsi) + AC_CONFIG_FILES(nsi/main-end.nsi) + AC_CONFIG_FILES(nsi/runtime.nsi) + AC_CONFIG_FILES(nsi/sdk.nsi) + AC_CONFIG_FILES(nsi/uninstall-$host_cpu.nsi) + AC_CONFIG_FILES(nsi/oninit-$host_cpu.nsi) + AC_CONFIG_FILES(nsi/Makefile) + + AC_CONFIG_FILES(nsi/hllapi.nsi) + AC_CONFIG_FILES(nsi/j3270.nsi) + AC_CONFIG_FILES(nsi/rx3270.nsi) + + AC_CONFIG_FILES(nsi/runtime-init-$host_cpu.nsi) + + AC_CONFIG_FILES(src/plugins/hllapi/Makefile) + AC_CONFIG_FILES(makegtkruntime.sh) + ;; *-apple-*) @@ -161,6 +181,9 @@ case "$host" in LDARCH="-arch $build_cpu" LDAPPFLAGS="" DLLPREFIX="lib" + + AC_CONFIG_FILES(mac/pw3270.bundle) + ;; *) @@ -174,6 +197,8 @@ case "$host" in DBGCMDPREFIX="LD_LIBRARY_PATH=\$(BINDIR)/Debug/lib" DLLPREFIX="lib" + AC_CONFIG_FILES(pw3270.spec) + esac #--[ Check gettext ]------------------------------------------------------------------------------------------------------------------------------------------ @@ -434,6 +459,8 @@ if test "$app_cv_java" = "yes" ; then PLUGINS="$PLUGINS j3270" AC_MSG_NOTICE([jdk is present and enabled.]) + AC_CONFIG_FILES(src/java/Makefile) + else AC_MSG_NOTICE([jdk is NOT present or disabled.]) @@ -491,8 +518,11 @@ AC_SUBST(GDBUS_LIBS) AC_SUBST(GDBUS_CFLAGS) if test "$app_cv_dbus" == "yes"; then + AC_DEFINE(HAVE_DBUS) + AC_CONFIG_FILES(src/plugins/dbus3270/Makefile) PLUGINS="$PLUGINS dbus3270" + fi #--[ SSL ]---------------------------------------------------------------------------------------------------------------------------------------------------- @@ -527,8 +557,11 @@ case "$host" in *) if test -z "${PHPCONFIG}"; then + AC_MSG_NOTICE([Program php-config not found. Use --with-php-config=path to specify absolute path to the php-config tool.]) + else + AC_DEFINE(HAVE_PHP) EXTENSIONS="$EXTENSIONS php" PHPMAJOR=`$PHPCONFIG --version | cut -d. -f1` @@ -540,6 +573,10 @@ case "$host" in PHPCONFDIR=/etc/php${PHPMAJOR}/cli fi AC_MSG_NOTICE([Using $PHPCONFDIR for PHP config files.]) + + AC_CONFIG_FILES(src/php/Makefile) + AC_CONFIG_FILES(src/php/php3270.h) + fi esac @@ -579,6 +616,8 @@ if test "$app_cv_rexx" == "yes"; then PLUGINS="$PLUGINS rx3270" EXTENSIONS="$EXTENSIONS rexx" + AC_CONFIG_FILES(src/plugins/rx3270/Makefile) + AC_MSG_NOTICE([ooRexx plugin & extension are enabled.]) else AC_MSG_NOTICE([ooRexx is NOT present or disabled.]) @@ -712,10 +751,19 @@ fi # Set targets if test "$app_cv_office" == "yes" ; then + AC_MSG_NOTICE([libreoffice sdk is present.]) EXTENSIONS="$EXTENSIONS oxt" + + AC_CONFIG_FILES(src/loffice/Makefile) + AC_CONFIG_FILES(src/loffice/description.xml) + AC_CONFIG_FILES(src/loffice/manifest.xml) + + else + AC_MSG_NOTICE([libreoffice sdk is NOT present or disabled.]) + fi AC_SUBST(OFFICE_HOME) @@ -759,38 +807,39 @@ AC_SUBST(CLASS_LIBS) #--[ Output files ]------------------------------------------------------------------------------------------------------------------------------------------- -AC_CONFIG_FILES([ - - Makefile - lib3270.pc - pw3270.pc - pw3270.spec - pw3270-i686.nsi - pw3270-x86_64.nsi - src/include/rules.mak - src/include/plugin.mak - src/lib3270/Makefile - src/lib3270/mkversion.sh - src/pw3270/Makefile - src/loffice/Makefile - src/loffice/description.xml - src/loffice/manifest.xml - src/pw3270/uiparser/Makefile - src/tools/Makefile - src/plugins/hllapi/Makefile - src/plugins/rx3270/Makefile - src/plugins/dbus3270/Makefile - src/classlib/Makefile - src/classlib/class.mak - man/Makefile - makegtkruntime.sh - src/sample/Makefile - mac/pw3270.bundle - src/php/Makefile - src/php/php3270.h - src/java/Makefile +AC_CONFIG_FILES(Makefile) +AC_CONFIG_FILES(lib3270.pc) +AC_CONFIG_FILES(pw3270.pc) + +AC_CONFIG_FILES(src/include/rules.mak) +AC_CONFIG_FILES(src/include/plugin.mak) + +AC_CONFIG_FILES(src/lib3270/mkversion.sh) + +AC_CONFIG_FILES(src/lib3270/Makefile) +AC_CONFIG_FILES(src/pw3270/Makefile) +AC_CONFIG_FILES(src/pw3270/uiparser/Makefile) +AC_CONFIG_FILES(src/tools/Makefile) + +AC_CONFIG_FILES(src/classlib/Makefile) +AC_CONFIG_FILES(src/classlib/class.mak) + +AC_CONFIG_FILES(man/Makefile) +AC_CONFIG_FILES(src/sample/Makefile) + + +case "$host" in + *-mingw32) + ;; + + *-apple-*) + ;; + + *) + ;; +esac + -]) dnl Output the generated config.status script. AC_OUTPUT diff --git a/nsi/Makefile.in b/nsi/Makefile.in new file mode 100644 index 0000000..fee3bb5 --- /dev/null +++ b/nsi/Makefile.in @@ -0,0 +1,92 @@ +# +# "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 +# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a +# aplicativos mainframe. Registro no INPI sob o nome G3270. +# +# Copyright (C) <2008> +# +# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob +# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela +# Free Software Foundation. +# +# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER +# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO +# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para +# obter mais detalhes. +# +# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este +# programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple +# Place, Suite 330, Boston, MA, 02111-1307, USA +# +# Contatos: +# +# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) +# erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) +# + +#---[ Configuration values ]--------------------------------------------------- + +PACKAGE_NAME=@PACKAGE_NAME@ +PACKAGE_VERSION=@PACKAGE_VERSION@ +PACKAGE_LEVEL=@PACKAGE_LEVEL@ +PACKAGE_REVISION=@PACKAGE_REVISION@ +PACKAGE_TARNAME=@PACKAGE_TARNAME@ + +HOST_CPU=@host_cpu@ + +PLUGINS=@PLUGINS@ +EXTENSIONS=@EXTENSIONS@ + +#---[ Tools ]------------------------------------------------------------------ + +MAKENSIS=@MAKENSIS@ + + +#---[ Rules ]------------------------------------------------------------------ + + + +#---[ Targets ]---------------------------------------------------------------- + +all: \ + $(PACKAGE_NAME)-$(HOST_CPU).nsi + +$(PACKAGE_NAME)-$(HOST_CPU).nsi: \ + header-$(HOST_CPU).nsi \ + main-begin-$(HOST_CPU).nsi \ + main-end.nsi \ + runtime.nsi \ + sdk.nsi \ + uninstall-$(HOST_CPU).nsi \ + oninit-$(HOST_CPU).nsi + + @rm -f $@ + @cat header-$(HOST_CPU).nsi > $@ + @cat main-begin-$(HOST_CPU).nsi >> $@ + + # Install plugins + + @cat $(foreach PLUGIN, $(PLUGINS), $(PLUGIN).nsi ) >> $@ + + # Finalize + + @cat main-end.nsi >> $@ + @cat runtime.nsi >> $@ + @cat sdk.nsi >> $@ + @cat uninstall-$(HOST_CPU).nsi >> $@ + @cat oninit-$(HOST_CPU).nsi >> $@ + + # Install plugin scripts + + @cat runtime-init-$(HOST_CPU).nsi >> $@ + @cat $(foreach PLUGIN, $(PLUGINS), $(PLUGIN)-init-$(HOST_CPU).nsi ) >> $@ + + # Finalize onInit script + + @echo FunctionEnd >> $@ + + @chmod 644 $@ + + @echo $@ + + diff --git a/nsi/header-i686-no-gtk.nsi.in b/nsi/header-i686-no-gtk.nsi.in new file mode 100644 index 0000000..8258c51 --- /dev/null +++ b/nsi/header-i686-no-gtk.nsi.in @@ -0,0 +1,48 @@ +!include "MUI2.nsh" + +Name "@PACKAGE@" +Caption "@PACKAGE@ - 3270 Emulator for windows/gtk" +outfile "@PACKAGE@-@PACKAGE_VERSION@.@PACKAGE_LEVEL@-requires-gtk-@GTK_MODVERSION@-@host_cpu@.exe" +XPStyle on + +# define the directory to install to +installDir $PROGRAMFILES\@PACKAGE@ + +#define the installer icon +!define MUI_ICON "src\pw3270\@PACKAGE@.ico" +!define MUI_UNICON "src\pw3270\@PACKAGE@.ico" +icon "src\pw3270\@PACKAGE@.ico" + +# Get installation folder from registry if available +InstallDirRegKey HKLM "Software\@PACKAGE@" "InstallLocation" + +RequestExecutionLevel admin + +# Properties +VIProductVersion "@PACKAGE_VERSION@.@PACKAGE_LEVEL@.@PACKAGE_REVISION@" +VIAddVersionKey "ProductName" "@PACKAGE@" +VIAddVersionKey "FileDescription" "3270 Emulator for windows/gtk" +VIAddVersionKey "FileVersion" "@PACKAGE_REVISION@" +VIAddVersionKey "LegalCopyright" "GPL-2.0" + +# Interface + +!define MUI_ABORTWARNING +# !insertmacro MUI_PAGE_WELCOME +!insertmacro MUI_PAGE_LICENSE "LICENSE" +!insertmacro MUI_PAGE_COMPONENTS +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES + +# !insertmacro MUI_UNPAGE_WELCOME +!insertmacro MUI_UNPAGE_CONFIRM +!insertmacro MUI_UNPAGE_INSTFILES +# !insertmacro MUI_UNPAGE_FINISH + +# Languages +!insertmacro MUI_LANGUAGE "English" + +# Section scripts +!include Sections.nsh + + diff --git a/nsi/header-i686.nsi.in b/nsi/header-i686.nsi.in new file mode 100644 index 0000000..7bc5500 --- /dev/null +++ b/nsi/header-i686.nsi.in @@ -0,0 +1,48 @@ +!include "MUI2.nsh" + +Name "@PACKAGE@" +Caption "@PACKAGE@ - 3270 Emulator for windows/gtk" +outfile "@PACKAGE@-@PACKAGE_VERSION@.@PACKAGE_LEVEL@-gtk-@GTK_MODVERSION@-@host_cpu@.exe" +XPStyle on + +# define the directory to install to +installDir $PROGRAMFILES\@PACKAGE@ + +#define the installer icon +!define MUI_ICON "src\pw3270\@PACKAGE@.ico" +!define MUI_UNICON "src\pw3270\@PACKAGE@.ico" +icon "src\pw3270\@PACKAGE@.ico" + +# Get installation folder from registry if available +InstallDirRegKey HKLM "Software\@PACKAGE@" "InstallLocation" + +RequestExecutionLevel admin + +# Properties +VIProductVersion "@PACKAGE_VERSION@.@PACKAGE_LEVEL@.@PACKAGE_REVISION@" +VIAddVersionKey "ProductName" "@PACKAGE@" +VIAddVersionKey "FileDescription" "3270 Emulator for windows/gtk" +VIAddVersionKey "FileVersion" "@PACKAGE_REVISION@" +VIAddVersionKey "LegalCopyright" "GPL-2.0" + +# Interface + +!define MUI_ABORTWARNING +# !insertmacro MUI_PAGE_WELCOME +!insertmacro MUI_PAGE_LICENSE "LICENSE" +!insertmacro MUI_PAGE_COMPONENTS +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES + +# !insertmacro MUI_UNPAGE_WELCOME +!insertmacro MUI_UNPAGE_CONFIRM +!insertmacro MUI_UNPAGE_INSTFILES +# !insertmacro MUI_UNPAGE_FINISH + +# Languages +!insertmacro MUI_LANGUAGE "English" + +# Section scripts +!include Sections.nsh + + diff --git a/nsi/hllapi-init-i686.nsi b/nsi/hllapi-init-i686.nsi new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/nsi/hllapi-init-i686.nsi diff --git a/nsi/hllapi.nsi.in b/nsi/hllapi.nsi.in new file mode 100644 index 0000000..edbd9a8 --- /dev/null +++ b/nsi/hllapi.nsi.in @@ -0,0 +1,9 @@ + Section /o "HLLAPI" HLLAPIPlugin + setOutPath $INSTDIR + + CreateDirectory "$INSTDIR\plugins" + file "/oname=$INSTDIR\plugins\hllapi.dll" ".bin\Release\plugins\hllapi.dll" + file "/oname=$SYSDIR\libhllapi.dll" ".bin\Release\hllapi.dll.@PACKAGE_VERSION@" + + sectionEnd + diff --git a/nsi/j3270-init-i686.nsi b/nsi/j3270-init-i686.nsi new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/nsi/j3270-init-i686.nsi diff --git a/nsi/j3270.nsi.in b/nsi/j3270.nsi.in new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/nsi/j3270.nsi.in diff --git a/nsi/main-begin-i686.nsi.in b/nsi/main-begin-i686.nsi.in new file mode 100644 index 0000000..c53bba2 --- /dev/null +++ b/nsi/main-begin-i686.nsi.in @@ -0,0 +1,72 @@ +# default section +SubSection "@PACKAGE@" SecMain + + Section "Core" SecCore + + # define the output path for this file + setOutPath $INSTDIR + SetShellVarContext all + + createShortCut "$SMPROGRAMS\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" + createShortCut "$DESKTOP\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" + + # Binary files + file "/oname=$INSTDIR\@PACKAGE@.exe" ".bin\Release\@PACKAGE@.exe" + file "/oname=$INSTDIR\@PACKAGE@.ico" "src\pw3270\@PACKAGE@.ico" + file "/oname=$INSTDIR\lib3270.dll.@PACKAGE_VERSION@" ".bin\Release\lib3270.dll.@PACKAGE_VERSION@" + file "/oname=$INSTDIR\pw3270.dll.@PACKAGE_VERSION@" ".bin\Release\pw3270.dll.@PACKAGE_VERSION@" + + # Configuration files + file "/oname=$INSTDIR\@PACKAGE@-logo.png" "src\pw3270\@PACKAGE@-logo.png" + file "/oname=$INSTDIR\@PACKAGE@.png" "src\pw3270\@PACKAGE@.png" + file "/oname=$INSTDIR\colors.conf" "colors.conf" + + # Documentation files + file "/oname=$INSTDIR\ChangeLog" "ChangeLog" + file "/oname=$INSTDIR\AUTHORS" "AUTHORS" + file "/oname=$INSTDIR\LICENSE" "LICENSE" + + # Misc folders + CreateDirectory "$INSTDIR\certs" + CreateDirectory "$INSTDIR\plugins" + + # UI definition files + CreateDirectory "$INSTDIR\ui" + + file "/oname=$INSTDIR\ui\00default.xml" "ui\00default.xml" + file "/oname=$INSTDIR\ui\10keypad.xml" "ui\10keypad.xml" + + # Locale files + CreateDirectory "$INSTDIR\@localedir@\pt_BR\LC_MESSAGES" + file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" + + # Save DataDir + WriteRegStr HKLM "Software\@PACKAGE@" "datadir" "$INSTDIR" + WriteRegStr HKLM "Software\@PACKAGE@" "appName" "$INSTDIR\@PACKAGE@.exe" + + # define uninstaller name + writeUninstaller $INSTDIR\uninstall.exe + + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayName" "@PACKAGE@ - 3270 emulator for windows/gtk" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayIcon" "$INSTDIR\@PACKAGE@.ico" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayVersion" "@PACKAGE_VERSION@ (Rev: @PACKAGE_REVISION@)" + + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "UninstallString" "$INSTDIR\uninstall.exe" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "InstallLocation" "$INSTDIR" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "NoModify" "1" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "NoRepair" "1" + + # Save instalation dir + WriteRegStr HKCU "Software\@PACKAGE@" "" $INSTDIR + + sectionEnd + + SubSection "Plugins" SecPLugin + diff --git a/nsi/main-begin-x86_64.nsi.in b/nsi/main-begin-x86_64.nsi.in new file mode 100644 index 0000000..e56c15c --- /dev/null +++ b/nsi/main-begin-x86_64.nsi.in @@ -0,0 +1,78 @@ +# default section +SubSection "@PACKAGE@" SecMain + + Section "Core" SecCore + + SetRegView 64 + ${DisableX64FSRedirection} + + # define the output path for this file + setOutPath $INSTDIR + SetShellVarContext all + + createShortCut "$SMPROGRAMS\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" + createShortCut "$DESKTOP\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" + + # Binary files + file "/oname=$INSTDIR\@PACKAGE@.exe" ".bin\Release\@PACKAGE@.exe" + file "/oname=$INSTDIR\@PACKAGE@.ico" "src\pw3270\@PACKAGE@.ico" + file "/oname=$INSTDIR\lib3270.dll.@PACKAGE_VERSION@" ".bin\Release\lib3270.dll.@PACKAGE_VERSION@" + file "/oname=$INSTDIR\pw3270.dll.@PACKAGE_VERSION@" ".bin\Release\pw3270.dll.@PACKAGE_VERSION@" + + # Configuration files + file "/oname=$INSTDIR\@PACKAGE@-logo.png" "src\pw3270\@PACKAGE@-logo.png" + file "/oname=$INSTDIR\@PACKAGE@.png" "src\pw3270\@PACKAGE@.png" + file "/oname=$INSTDIR\colors.conf" "colors.conf" + + # Documentation files + file "/oname=$INSTDIR\ChangeLog" "ChangeLog" + file "/oname=$INSTDIR\AUTHORS" "AUTHORS" + file "/oname=$INSTDIR\LICENSE" "LICENSE" + + # Misc folders + CreateDirectory "$INSTDIR\certs" + CreateDirectory "$INSTDIR\plugins" + + # UI definition files + CreateDirectory "$INSTDIR\ui" + + file "/oname=$INSTDIR\ui\00default.xml" "ui\00default.xml" + file "/oname=$INSTDIR\ui\10keypad.xml" "ui\10keypad.xml" + + # Locale files + CreateDirectory "$INSTDIR\@localedir@\pt_BR\LC_MESSAGES" + file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" + + # Save DataDir + SetRegView 64 + WriteRegStr HKLM "Software\@PACKAGE@" "datadir" "$INSTDIR" + WriteRegStr HKLM "Software\@PACKAGE@" "appName" "$INSTDIR\@PACKAGE@.exe" + + # define uninstaller name + SetRegView 32 + + writeUninstaller $INSTDIR\uninstall.exe + + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayName" "@PACKAGE@ - 3270 emulator for windows/gtk" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayIcon" "$INSTDIR\@PACKAGE@.ico" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayVersion" "@PACKAGE_VERSION@ (Rev: @PACKAGE_REVISION@)" + + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "UninstallString" "$INSTDIR\uninstall.exe" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "InstallLocation" "$INSTDIR" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "NoModify" "1" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "NoRepair" "1" + + # Save instalation dir + WriteRegStr HKCU "Software\@PACKAGE@" "" $INSTDIR + + sectionEnd + + SubSection "Plugins" SecPLugin + diff --git a/nsi/main-end.nsi.in b/nsi/main-end.nsi.in new file mode 100644 index 0000000..c1b5b15 --- /dev/null +++ b/nsi/main-end.nsi.in @@ -0,0 +1,17 @@ + + SubSectionEnd + + SubSection "Menus, Keypads & Toolbars" SecMenu + + Section /o "View trace Menu" TraceMenu + file "/oname=$INSTDIR\ui\98trace.xml" "ui\98trace.xml" + sectionEnd + + Section /o "Application debug" DBGMenu + file "/oname=$INSTDIR\ui\99debug.xml" "ui\99debug.xml" + sectionEnd + + SubSectionEnd + +SubSectionEnd + diff --git a/nsi/oninit-i686.nsi.in b/nsi/oninit-i686.nsi.in new file mode 100644 index 0000000..e545a74 --- /dev/null +++ b/nsi/oninit-i686.nsi.in @@ -0,0 +1,4 @@ + +Function .onInit + + diff --git a/nsi/oninit-x86_64.nsi.in b/nsi/oninit-x86_64.nsi.in new file mode 100644 index 0000000..e8c87cc --- /dev/null +++ b/nsi/oninit-x86_64.nsi.in @@ -0,0 +1,6 @@ + +Function .onInit + +SetRegView 64 + + diff --git a/nsi/runtime-init-i686.nsi.in b/nsi/runtime-init-i686.nsi.in new file mode 100644 index 0000000..d45d98b --- /dev/null +++ b/nsi/runtime-init-i686.nsi.in @@ -0,0 +1,27 @@ + +ReadRegStr $4 HKLM "Software\gtkwin\@GTK_MODVERSION@" "path" + +${if} $4 == "" + + SectionGetFlags "${SecGTK}" $0 + IntOp $0 $0 | ${SF_SELECTED} + SectionSetFlags "${SecGTK}" $0 + +${Else} + + ${if} ${FileExists} `$4\*.*` + + SectionGetFlags "${SecGTK}" $0 + IntOp $0 $0 & ${SECTION_OFF} + SectionSetFlags "${SecGTK}" $0 + + ${Else} + + SectionGetFlags "${SecGTK}" $0 + IntOp $0 $0 | ${SF_SELECTED} + SectionSetFlags "${SecGTK}" $0 + + ${EndIf} + +${EndIf} + diff --git a/nsi/runtime.nsi.in b/nsi/runtime.nsi.in new file mode 100644 index 0000000..2b56d15 --- /dev/null +++ b/nsi/runtime.nsi.in @@ -0,0 +1,9 @@ + +Section "GTK @GTK_MODVERSION@ Runtime" SecGTK + + setOutPath $INSTDIR + file /r ".bin\gtkruntime\*.*" + +SectionEnd + + diff --git a/nsi/rx3270-init-i686.nsi b/nsi/rx3270-init-i686.nsi new file mode 100644 index 0000000..c0871de --- /dev/null +++ b/nsi/rx3270-init-i686.nsi @@ -0,0 +1,8 @@ +${if} ${FileExists} `$PROGRAMFILES\ooRexx\rexx.exe` + + SectionGetFlags "${RexxPlugin}" $0 + IntOp $0 $0 | ${SF_SELECTED} + SectionSetFlags "${RexxPlugin}" $0 + +${EndIf} + diff --git a/nsi/rx3270.nsi.in b/nsi/rx3270.nsi.in new file mode 100644 index 0000000..d53004d --- /dev/null +++ b/nsi/rx3270.nsi.in @@ -0,0 +1,13 @@ + Section /o "Rexx" RexxPlugin + + setOutPath $INSTDIR + + file "/oname=$INSTDIR\plugins\rxplug.dll" ".bin\Release\plugins\rx3270.dll" + file "/oname=$INSTDIR\ui\80rexx.xml" "ui\80rexx.xml" + + file "/oname=$PROGRAMFILES\ooRexx\rx3270.cls" "src\plugins\rx3270\rx3270.cls" + file "/oname=$INSTDIR\rx3270.dll.@PACKAGE_VERSION@" ".bin\Release\rx3270.dll.@PACKAGE_VERSION@" + file "/oname=$PROGRAMFILES\ooRexx\rx3270.dll" ".bin\Release\rx3270.dll.@PACKAGE_VERSION@" + + sectionEnd + diff --git a/nsi/sdk.nsi.in b/nsi/sdk.nsi.in new file mode 100644 index 0000000..f926e9f --- /dev/null +++ b/nsi/sdk.nsi.in @@ -0,0 +1,37 @@ + +Section /o "Software Development Kit" SecSDK + + CreateDirectory "$INSTDIR\sdk" + CreateDirectory "$INSTDIR\sdk\include" + CreateDirectory "$INSTDIR\sdk\include\lib3270" + CreateDirectory "$INSTDIR\sdk\include\pw3270" + CreateDirectory "$INSTDIR\sdk\sample" + CreateDirectory "$INSTDIR\sdk\sample\classlib" + + setOutPath $INSTDIR\sdk\include + file "src\include\lib3270.h" + file "src\include\pw3270.h" + + setOutPath $INSTDIR\sdk\include\pw3270 + file "src\include\pw3270\class.h" + file "src\include\pw3270\hllapi.h" + file "src\include\pw3270\ipcpackets.h" + file "src\include\pw3270\plugin.h" + file "src\include\pw3270\trace.h" + file "src\include\pw3270\v3270.h" + + setOutPath $INSTDIR\sdk\include\lib3270 + file "src\include\lib3270\config.h" + file "src\include\rules.mak" + + setOutPath $INSTDIR\sdk\sample\connect + file "src\sample\Makefile" + file "src\sample\connect.c" + + setOutPath $INSTDIR\sdk\sample\classlib + file "src\classlib\*.cc" + file "src\include\pw3270\class.h" + +SectionEnd + + diff --git a/nsi/uninstall-i686.nsi.in b/nsi/uninstall-i686.nsi.in new file mode 100644 index 0000000..4ff5332 --- /dev/null +++ b/nsi/uninstall-i686.nsi.in @@ -0,0 +1,43 @@ + +# create a section to define what the uninstaller does. +# the section will always be named "Uninstall" +section "Uninstall" + + # Always delete uninstaller first + delete $INSTDIR\uninstaller.exe + + # Set SMPROGRAMS and DESKTOP path + SetShellVarContext all + + # now delete installed files + delete $INSTDIR\@PACKAGE@.exe + + delete $SMPROGRAMS\@PACKAGE@.lnk + delete $DESKTOP\@PACKAGE@.lnk + + RMDir /r "$INSTDIR\locale" + RMDir /r "$INSTDIR\share" + RMDir /r "$INSTDIR\etc" + RMDir /r "$INSTDIR\plugins" + RMDir /r "$INSTDIR\sdk" + RMDir /r "$INSTDIR\gtk2-runtime" + + # Delete all files + delete "$INSTDIR\*.dll" + + # Remove registry + DeleteRegKey HKLM "Software\@PACKAGE@" + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" + DeleteRegKey HKLM "Software\@PACKAGE@" + + # Delete System libraries + delete $SYSDIR\libhllapi.dll + + # Delete extension libraries + delete "$PROGRAMFILES\ooRexx\rx3270.cls" + delete "$PROGRAMFILES\ooRexx\rx3270.dll" + + RMDir /r "$INSTDIR" + +sectionEnd + diff --git a/nsi/uninstall-x86_64.nsi.in b/nsi/uninstall-x86_64.nsi.in new file mode 100644 index 0000000..bb36b44 --- /dev/null +++ b/nsi/uninstall-x86_64.nsi.in @@ -0,0 +1,46 @@ + +# create a section to define what the uninstaller does. +# the section will always be named "Uninstall" +section "Uninstall" + + # Always delete uninstaller first + delete $INSTDIR\uninstaller.exe + + # Set SMPROGRAMS and DESKTOP path + SetShellVarContext all + + # now delete installed files + delete $INSTDIR\@PACKAGE@.exe + + delete $SMPROGRAMS\@PACKAGE@.lnk + delete $DESKTOP\@PACKAGE@.lnk + + RMDir /r "$INSTDIR\locale" + RMDir /r "$INSTDIR\share" + RMDir /r "$INSTDIR\etc" + RMDir /r "$INSTDIR\plugins" + RMDir /r "$INSTDIR\sdk" + + # Delete all files + delete "$INSTDIR\*.dll" + + # Remove registry + SetRegView 64 + DeleteRegKey HKLM "Software\@PACKAGE@" + + SetRegView 32 + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" + DeleteRegKey HKLM "Software\@PACKAGE@" + + # Delete System libraries + delete $SYSDIR\libhllapi.dll + + # Delete extension libraries + delete "$PROGRAMFILES64\ooRexx\rx3270.cls" + delete "$PROGRAMFILES64\ooRexx\rx3270.dll" + + RMDir /r "$INSTDIR" + +sectionEnd + + diff --git a/po/pt_BR.po b/po/pt_BR.po index 01730b5..15a8adb 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: pw3270 5.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-08-28 07:44-0300\n" +"POT-Creation-Date: 2015-08-28 08:33-0300\n" "PO-Revision-Date: 2014-02-17 08:05-0300\n" "Last-Translator: Perry Werneck \n" "Language-Team: Portugues <>\n" diff --git a/pw3270-i686-no-gtk.nsi.in b/pw3270-i686-no-gtk.nsi.in new file mode 100644 index 0000000..0130daa --- /dev/null +++ b/pw3270-i686-no-gtk.nsi.in @@ -0,0 +1,247 @@ +!include "MUI2.nsh" + +Name "@PACKAGE@" +Caption "@PACKAGE@ - 3270 Emulator for windows/gtk" +outfile "@PACKAGE@-@PACKAGE_VERSION@.@PACKAGE_LEVEL@-requires-gtk-@GTK_MODVERSION@-@host_cpu@.exe" +XPStyle on + +# define the directory to install to +installDir $PROGRAMFILES\@PACKAGE@ + +#define the installer icon +!define MUI_ICON "src\pw3270\@PACKAGE@.ico" +!define MUI_UNICON "src\pw3270\@PACKAGE@.ico" +icon "src\pw3270\@PACKAGE@.ico" + +# Get installation folder from registry if available +InstallDirRegKey HKLM "Software\@PACKAGE@" "InstallLocation" + +RequestExecutionLevel admin + +# Properties +VIProductVersion "@PACKAGE_VERSION@.@PACKAGE_LEVEL@.@PACKAGE_REVISION@" +VIAddVersionKey "ProductName" "@PACKAGE@" +VIAddVersionKey "FileDescription" "3270 Emulator for windows/gtk" +VIAddVersionKey "FileVersion" "@PACKAGE_REVISION@" +VIAddVersionKey "LegalCopyright" "GPL-2.0" + +# Interface + +!define MUI_ABORTWARNING +# !insertmacro MUI_PAGE_WELCOME +!insertmacro MUI_PAGE_LICENSE "LICENSE" +!insertmacro MUI_PAGE_COMPONENTS +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES + +# !insertmacro MUI_UNPAGE_WELCOME +!insertmacro MUI_UNPAGE_CONFIRM +!insertmacro MUI_UNPAGE_INSTFILES +# !insertmacro MUI_UNPAGE_FINISH + +# Languages +!insertmacro MUI_LANGUAGE "English" + +# Section scripts +!include Sections.nsh + +# default section +SubSection "@PACKAGE@" SecMain + + Section "Core" SecCore + + # define the output path for this file + setOutPath $INSTDIR + SetShellVarContext all + + createShortCut "$SMPROGRAMS\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" + createShortCut "$DESKTOP\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" + + # Binary files + file "/oname=$INSTDIR\@PACKAGE@.exe" ".bin\Release\@PACKAGE@.exe" + file "/oname=$INSTDIR\@PACKAGE@.ico" "src\pw3270\@PACKAGE@.ico" + file "/oname=$INSTDIR\lib3270.dll.@PACKAGE_VERSION@" ".bin\Release\lib3270.dll.@PACKAGE_VERSION@" + file "/oname=$INSTDIR\pw3270.dll.@PACKAGE_VERSION@" ".bin\Release\pw3270.dll.@PACKAGE_VERSION@" + + # Configuration files + file "/oname=$INSTDIR\@PACKAGE@-logo.png" "src\pw3270\@PACKAGE@-logo.png" + file "/oname=$INSTDIR\@PACKAGE@.png" "src\pw3270\@PACKAGE@.png" + file "/oname=$INSTDIR\colors.conf" "colors.conf" + + # Documentation files + file "/oname=$INSTDIR\ChangeLog" "ChangeLog" + file "/oname=$INSTDIR\AUTHORS" "AUTHORS" + file "/oname=$INSTDIR\LICENSE" "LICENSE" + + # Misc folders + CreateDirectory "$INSTDIR\certs" + CreateDirectory "$INSTDIR\plugins" + + # UI definition files + CreateDirectory "$INSTDIR\ui" + + file "/oname=$INSTDIR\ui\00default.xml" "ui\00default.xml" + file "/oname=$INSTDIR\ui\10keypad.xml" "ui\10keypad.xml" + + # Locale files + CreateDirectory "$INSTDIR\@localedir@\pt_BR\LC_MESSAGES" + file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" + + # Save DataDir + WriteRegStr HKLM "Software\@PACKAGE@" "datadir" "$INSTDIR" + WriteRegStr HKLM "Software\@PACKAGE@" "appName" "$INSTDIR\@PACKAGE@.exe" + + # define uninstaller name + writeUninstaller $INSTDIR\uninstall.exe + + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayName" "@PACKAGE@ - 3270 emulator for windows/gtk" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayIcon" "$INSTDIR\@PACKAGE@.ico" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayVersion" "@PACKAGE_VERSION@ (Rev: @PACKAGE_REVISION@)" + + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "UninstallString" "$INSTDIR\uninstall.exe" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "InstallLocation" "$INSTDIR" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "NoModify" "1" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "NoRepair" "1" + + # Save instalation dir + WriteRegStr HKCU "Software\@PACKAGE@" "" $INSTDIR + + sectionEnd + + SubSection "Plugins" SecPLugin + + Section /o "HLLAPI" HLLAPIPlugin + setOutPath $INSTDIR + + CreateDirectory "$INSTDIR\plugins" + file "/oname=$INSTDIR\plugins\hllapi.dll" ".bin\Release\plugins\hllapi.dll" + file "/oname=$SYSDIR\libhllapi.dll" ".bin\Release\hllapi.dll.@PACKAGE_VERSION@" + + sectionEnd + + Section /o "Rexx" RexxPlugin + + setOutPath $INSTDIR + + file "/oname=$INSTDIR\plugins\rxplug.dll" ".bin\Release\plugins\rx3270.dll" + file "/oname=$INSTDIR\ui\80rexx.xml" "ui\80rexx.xml" + + file "/oname=$PROGRAMFILES\ooRexx\rx3270.cls" "src\plugins\rx3270\rx3270.cls" + file "/oname=$INSTDIR\rx3270.dll.@PACKAGE_VERSION@" ".bin\Release\rx3270.dll.@PACKAGE_VERSION@" + file "/oname=$PROGRAMFILES\ooRexx\rx3270.dll" ".bin\Release\rx3270.dll.@PACKAGE_VERSION@" + + sectionEnd + + SubSectionEnd + + SubSection "Menus, Keypads & Toolbars" SecMenu + + Section /o "View trace Menu" TraceMenu + file "/oname=$INSTDIR\ui\98trace.xml" "ui\98trace.xml" + sectionEnd + + Section /o "Application debug" DBGMenu + file "/oname=$INSTDIR\ui\99debug.xml" "ui\99debug.xml" + sectionEnd + + SubSectionEnd + +SubSectionEnd + +Section /o "Software Development Kit" SecSDK + + CreateDirectory "$INSTDIR\sdk" + CreateDirectory "$INSTDIR\sdk\include" + CreateDirectory "$INSTDIR\sdk\include\lib3270" + CreateDirectory "$INSTDIR\sdk\include\pw3270" + CreateDirectory "$INSTDIR\sdk\sample" + CreateDirectory "$INSTDIR\sdk\sample\classlib" + + setOutPath $INSTDIR\sdk\include + file "src\include\lib3270.h" + file "src\include\pw3270.h" + + setOutPath $INSTDIR\sdk\include\pw3270 + file "src\include\pw3270\class.h" + file "src\include\pw3270\hllapi.h" + file "src\include\pw3270\ipcpackets.h" + file "src\include\pw3270\plugin.h" + file "src\include\pw3270\trace.h" + file "src\include\pw3270\v3270.h" + + setOutPath $INSTDIR\sdk\include\lib3270 + file "src\include\lib3270\config.h" + file "src\include\rules.mak" + + setOutPath $INSTDIR\sdk\sample\connect + file "src\sample\Makefile" + file "src\sample\connect.c" + + setOutPath $INSTDIR\sdk\sample\classlib + file "src\classlib\*.cc" + file "src\include\pw3270\class.h" + +SectionEnd + +# create a section to define what the uninstaller does. +# the section will always be named "Uninstall" +section "Uninstall" + + # Always delete uninstaller first + delete $INSTDIR\uninstaller.exe + + # Set SMPROGRAMS and DESKTOP path + SetShellVarContext all + + # now delete installed files + delete $INSTDIR\@PACKAGE@.exe + + delete $SMPROGRAMS\@PACKAGE@.lnk + delete $DESKTOP\@PACKAGE@.lnk + + RMDir /r "$INSTDIR\locale" + RMDir /r "$INSTDIR\share" + RMDir /r "$INSTDIR\etc" + RMDir /r "$INSTDIR\plugins" + RMDir /r "$INSTDIR\sdk" + RMDir /r "$INSTDIR\gtk2-runtime" + + # Delete all files + delete "$INSTDIR\*.dll" + + # Remove registry + DeleteRegKey HKLM "Software\@PACKAGE@" + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" + DeleteRegKey HKLM "Software\@PACKAGE@" + + # Delete System libraries + delete $SYSDIR\libhllapi.dll + + # Delete extension libraries + delete "$PROGRAMFILES\ooRexx\rx3270.cls" + delete "$PROGRAMFILES\ooRexx\rx3270.dll" + + RMDir /r "$INSTDIR" + +sectionEnd + +Function .onInit + +${if} ${FileExists} `$PROGRAMFILES\ooRexx\rexx.exe` + + SectionGetFlags "${RexxPlugin}" $0 + IntOp $0 $0 | ${SF_SELECTED} + SectionSetFlags "${RexxPlugin}" $0 + +${EndIf} + +FunctionEnd + + diff --git a/pw3270-x86_64-no-gtk.nsi.in b/pw3270-x86_64-no-gtk.nsi.in new file mode 100644 index 0000000..be81067 --- /dev/null +++ b/pw3270-x86_64-no-gtk.nsi.in @@ -0,0 +1,257 @@ +!include "MUI2.nsh" +!include x64.nsh + +Name "@PACKAGE@" +Caption "@PACKAGE@ - 3270 Emulator for windows/gtk" +outfile "@PACKAGE@-@PACKAGE_VERSION@.@PACKAGE_LEVEL@-requires-gtk-@GTK_MODVERSION@-@host_cpu@.exe" +XPStyle on + +installDir "$PROGRAMFILES64\pw3270" + +#define the installer icon +!define MUI_ICON "src\pw3270\@PACKAGE@.ico" +!define MUI_UNICON "src\pw3270\@PACKAGE@.ico" +icon "src\pw3270\@PACKAGE@.ico" + +# Get installation folder from registry if available +InstallDirRegKey HKLM "Software\@PACKAGE@" "InstallLocation" + +RequestExecutionLevel admin + +# Properties +VIProductVersion "@PACKAGE_VERSION@.@PACKAGE_LEVEL@.@PACKAGE_REVISION@" +VIAddVersionKey "ProductName" "@PACKAGE@" +VIAddVersionKey "FileDescription" "3270 Emulator for windows/gtk" +VIAddVersionKey "FileVersion" "@PACKAGE_REVISION@" +VIAddVersionKey "LegalCopyright" "GPL-2.0" + +# Interface + +!define MUI_ABORTWARNING +# !insertmacro MUI_PAGE_WELCOME +!insertmacro MUI_PAGE_LICENSE "LICENSE" +!insertmacro MUI_PAGE_COMPONENTS +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES + +# !insertmacro MUI_UNPAGE_WELCOME +!insertmacro MUI_UNPAGE_CONFIRM +!insertmacro MUI_UNPAGE_INSTFILES +# !insertmacro MUI_UNPAGE_FINISH + +# Languages +!insertmacro MUI_LANGUAGE "English" + +# Section scripts +!include Sections.nsh + +# default section +SubSection "@PACKAGE@" SecMain + + Section "Core" SecCore + + SetRegView 64 + ${DisableX64FSRedirection} + + # define the output path for this file + setOutPath $INSTDIR + SetShellVarContext all + + createShortCut "$SMPROGRAMS\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" + createShortCut "$DESKTOP\@PACKAGE@.lnk" "$INSTDIR\@PACKAGE@.exe" + + # Binary files + file "/oname=$INSTDIR\@PACKAGE@.exe" ".bin\Release\@PACKAGE@.exe" + file "/oname=$INSTDIR\@PACKAGE@.ico" "src\pw3270\@PACKAGE@.ico" + file "/oname=$INSTDIR\lib3270.dll.@PACKAGE_VERSION@" ".bin\Release\lib3270.dll.@PACKAGE_VERSION@" + file "/oname=$INSTDIR\pw3270.dll.@PACKAGE_VERSION@" ".bin\Release\pw3270.dll.@PACKAGE_VERSION@" + + # Configuration files + file "/oname=$INSTDIR\@PACKAGE@-logo.png" "src\pw3270\@PACKAGE@-logo.png" + file "/oname=$INSTDIR\@PACKAGE@.png" "src\pw3270\@PACKAGE@.png" + file "/oname=$INSTDIR\colors.conf" "colors.conf" + + # Documentation files + file "/oname=$INSTDIR\ChangeLog" "ChangeLog" + file "/oname=$INSTDIR\AUTHORS" "AUTHORS" + file "/oname=$INSTDIR\LICENSE" "LICENSE" + + # Misc folders + CreateDirectory "$INSTDIR\certs" + CreateDirectory "$INSTDIR\plugins" + + # UI definition files + CreateDirectory "$INSTDIR\ui" + + file "/oname=$INSTDIR\ui\00default.xml" "ui\00default.xml" + file "/oname=$INSTDIR\ui\10keypad.xml" "ui\10keypad.xml" + + # Locale files + CreateDirectory "$INSTDIR\@localedir@\pt_BR\LC_MESSAGES" + file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" + + # Save DataDir + SetRegView 64 + WriteRegStr HKLM "Software\@PACKAGE@" "datadir" "$INSTDIR" + WriteRegStr HKLM "Software\@PACKAGE@" "appName" "$INSTDIR\@PACKAGE@.exe" + + # define uninstaller name + SetRegView 32 + + writeUninstaller $INSTDIR\uninstall.exe + + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayName" "@PACKAGE@ - 3270 emulator for windows/gtk" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayIcon" "$INSTDIR\@PACKAGE@.ico" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "DisplayVersion" "@PACKAGE_VERSION@ (Rev: @PACKAGE_REVISION@)" + + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "UninstallString" "$INSTDIR\uninstall.exe" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "InstallLocation" "$INSTDIR" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "NoModify" "1" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ + "NoRepair" "1" + + # Save instalation dir + WriteRegStr HKCU "Software\@PACKAGE@" "" $INSTDIR + + sectionEnd + + SubSection "Plugins" SecPLugin + + Section /o "HLLAPI" HLLAPIPlugin + setOutPath $INSTDIR + + CreateDirectory "$INSTDIR\plugins" + file "/oname=$INSTDIR\plugins\hllapi.dll" ".bin\Release\plugins\hllapi.dll" + file "/oname=$SYSDIR\libhllapi.dll" ".bin\Release\hllapi.dll" + + sectionEnd + + Section /o "Rexx" RexxPlugin + + setOutPath $INSTDIR + + file "/oname=$INSTDIR\plugins\rxplug.dll" ".bin\Release\plugins\rx3270.dll" + file "/oname=$INSTDIR\ui\80rexx.xml" "ui\80rexx.xml" + + file "/oname=$PROGRAMFILES64\ooRexx\rx3270.cls" "src\plugins\rx3270\rx3270.cls" + file "/oname=$INSTDIR\rx3270.dll.@PACKAGE_VERSION@" ".bin\Release\rx3270.dll.@PACKAGE_VERSION@" + file "/oname=$PROGRAMFILES64\ooRexx\rx3270.dll" ".bin\Release\rx3270.dll" + + sectionEnd + + SubSectionEnd + + SubSection "Menus, Keypads & Toolbars" SecMenu + + Section /o "View trace Menu" TraceMenu + file "/oname=$INSTDIR\ui\98trace.xml" "ui\98trace.xml" + sectionEnd + + Section /o "Application debug" DBGMenu + file "/oname=$INSTDIR\ui\99debug.xml" "ui\99debug.xml" + sectionEnd + + SubSectionEnd + +SubSectionEnd + +Section /o "Software Development Kit" SecSDK + + CreateDirectory "$INSTDIR\sdk" + CreateDirectory "$INSTDIR\sdk\include" + CreateDirectory "$INSTDIR\sdk\include\lib3270" + CreateDirectory "$INSTDIR\sdk\include\pw3270" + CreateDirectory "$INSTDIR\sdk\sample" + CreateDirectory "$INSTDIR\sdk\sample\classlib" + + setOutPath $INSTDIR\sdk\include + file "src\include\lib3270.h" + file "src\include\pw3270.h" + + setOutPath $INSTDIR\sdk\include\pw3270 + file "src\include\pw3270\class.h" + file "src\include\pw3270\hllapi.h" + file "src\include\pw3270\ipcpackets.h" + file "src\include\pw3270\plugin.h" + file "src\include\pw3270\trace.h" + file "src\include\pw3270\v3270.h" + + setOutPath $INSTDIR\sdk\include\lib3270 + file "src\include\lib3270\config.h" + file "src\include\rules.mak" + + setOutPath $INSTDIR\sdk\sample\connect + file "src\sample\Makefile" + file "src\sample\connect.c" + + setOutPath $INSTDIR\sdk\sample\classlib + file "src\classlib\*.cc" + file "src\include\pw3270\class.h" + +SectionEnd + +# create a section to define what the uninstaller does. +# the section will always be named "Uninstall" +section "Uninstall" + + # Always delete uninstaller first + delete $INSTDIR\uninstaller.exe + + # Set SMPROGRAMS and DESKTOP path + SetShellVarContext all + + # now delete installed files + delete $INSTDIR\@PACKAGE@.exe + + delete $SMPROGRAMS\@PACKAGE@.lnk + delete $DESKTOP\@PACKAGE@.lnk + + RMDir /r "$INSTDIR\locale" + RMDir /r "$INSTDIR\share" + RMDir /r "$INSTDIR\etc" + RMDir /r "$INSTDIR\plugins" + RMDir /r "$INSTDIR\sdk" + + # Delete all files + delete "$INSTDIR\*.dll" + + # Remove registry + SetRegView 64 + DeleteRegKey HKLM "Software\@PACKAGE@" + + SetRegView 32 + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" + DeleteRegKey HKLM "Software\@PACKAGE@" + + # Delete System libraries + delete $SYSDIR\libhllapi.dll + + # Delete extension libraries + delete "$PROGRAMFILES64\ooRexx\rx3270.cls" + delete "$PROGRAMFILES64\ooRexx\rx3270.dll" + + RMDir /r "$INSTDIR" + +sectionEnd + +Function .onInit + +SetRegView 64 + +${if} ${FileExists} `$PROGRAMFILES64\ooRexx\rexx.exe` + + SectionGetFlags "${RexxPlugin}" $0 + IntOp $0 $0 | ${SF_SELECTED} + SectionSetFlags "${RexxPlugin}" $0 + +${EndIf} + +FunctionEnd + + -- libgit2 0.21.2