Commit ed7e7521d582f0e8bf0b9d83a0121c0c5afe4a88

Authored by Perry Werneck
1 parent 9a0f6193
Exists in master and in 1 other branch develop

Small updates.

.gitignore
... ... @@ -16,3 +16,5 @@ dbus-glue.h
16 16 *.cache
17 17 *.zip
18 18 *.bak
  19 +*.exe
  20 +vgcore.*
... ...
valgrind.suppression 0 → 100644
win/hllapi.nsi 0 → 100644
... ... @@ -0,0 +1,112 @@
  1 +!include "MUI2.nsh"
  2 +!include "x64.nsh"
  3 +!include "FileFunc.nsh"
  4 +
  5 +Name "hllapi"
  6 +Caption "hllapi - PW3270 HLLAPI Module"
  7 +outfile "hllapi-5.2.19.8-x86_64.exe"
  8 +
  9 +XPStyle on
  10 +
  11 +installDir "$PROGRAMFILES64\hllapi"
  12 +
  13 +# Get installation folder from registry if available
  14 +InstallDirRegKey HKLM "Software\hllapi" "InstallLocation"
  15 +
  16 +RequestExecutionLevel admin
  17 +
  18 +# Properties
  19 +VIProductVersion "5.2.19.8"
  20 +VIFileVersion "19.8.13.14"
  21 +
  22 +VIAddVersionKey "ProductVersion" "5.2.19.8"
  23 +VIAddVersionKey "FileVersion" "19.8.13.14"
  24 +
  25 +VIAddVersionKey "ProductName" "hllapi"
  26 +VIAddVersionKey "FileDescription" "PW3270 HLLAPI Module"
  27 +VIAddVersionKey "LegalCopyright" "GPL-2.0"
  28 +
  29 +# Interface
  30 +
  31 +!define MUI_ABORTWARNING
  32 +# !insertmacro MUI_PAGE_WELCOME
  33 +!insertmacro MUI_PAGE_LICENSE "..\LICENSE"
  34 +!insertmacro MUI_PAGE_COMPONENTS
  35 +!insertmacro MUI_PAGE_DIRECTORY
  36 +!insertmacro MUI_PAGE_INSTFILES
  37 +
  38 +# !insertmacro MUI_UNPAGE_WELCOME
  39 +!insertmacro MUI_UNPAGE_CONFIRM
  40 +!insertmacro MUI_UNPAGE_INSTFILES
  41 +# !insertmacro MUI_UNPAGE_FINISH
  42 +
  43 +# Languages
  44 +!insertmacro MUI_LANGUAGE "English"
  45 +
  46 +# Section scripts
  47 +!include Sections.nsh
  48 +
  49 +# default section
  50 +SubSection "hllapi" SecMain
  51 +
  52 + Section "Core" SecCore
  53 +
  54 + SetRegView 64
  55 + ${DisableX64FSRedirection}
  56 +
  57 + # define the output path for this file
  58 + setOutPath $SYSDIR
  59 + SetShellVarContext all
  60 +
  61 + file "/oname=$SYSDIR\hllapi.dll" "..\.bin\Release\hllapi.dll"
  62 +
  63 + # define uninstaller name
  64 + SetRegView 32
  65 +
  66 + writeUninstaller $INSTDIR\uninstall.exe
  67 +
  68 + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\hllapi" \
  69 + "DisplayName" "hllapi - PW3270 HLLAPI Module"
  70 +
  71 + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\hllapi" \
  72 + "DisplayVersion" "5.2"
  73 +
  74 + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\hllapi" \
  75 + "UninstallString" "$INSTDIR\uninstall.exe"
  76 +
  77 + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\hllapi" \
  78 + "InstallLocation" "$INSTDIR"
  79 +
  80 + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\hllapi" \
  81 + "NoModify" "1"
  82 +
  83 + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\hllapi" \
  84 + "NoRepair" "1"
  85 +
  86 + # Save instalation dir
  87 + WriteRegStr HKCU "Software\hllapi" "" $INSTDIR
  88 +
  89 + sectionEnd
  90 +
  91 +SubSectionEnd
  92 +
  93 +Section "Uninstall"
  94 +
  95 + # Always delete uninstaller first
  96 + delete $INSTDIR\uninstaller.exe
  97 +
  98 + # delete installed files
  99 + delete $SYSDIR\hllapi.dll
  100 +
  101 + # Remove registry
  102 + SetRegView 32
  103 + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\hllapi"
  104 + DeleteRegKey HKLM "Software\hllapi"
  105 +
  106 + SetRegView 64
  107 + DeleteRegKey HKLM "Software\hllapi"
  108 +
  109 +SectionEnd
  110 +
  111 +
  112 +
... ...