nsis: Getting the Vim version number via makensis

closes: #18470

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
RestorerZ
2025-10-03 14:12:41 +00:00
committed by Christian Brabandt
parent 8feaa94e77
commit fabe9a4c88
6 changed files with 17 additions and 98 deletions

View File

@ -73,11 +73,18 @@ Unicode true ; !include defaults to UTF-8 after Unicode True since 3.0 Alpha 2
!define INCLUDE_LIBGCC 1
!endif
!include .\gvim_version.nsh ; for version numbers
# Get version numbers
!getdllversion "${VIMSRC}\gvim_ole.exe" VimVer_
!echo "Vim version MAJOR=${VimVer_1} MINOR=${VimVer_2} PATCHLEVEL=${VimVer_3}"
# Definition of Patch for Vim.
!ifndef VER_MAJOR
!define VER_MAJOR ${VimVer_1}
!endif
!ifndef VER_MINOR
!define VER_MINOR ${VimVer_2}
!endif
!ifndef PATCHLEVEL
!define PATCHLEVEL 0
!define PATCHLEVEL ${VimVer_3}
!endif
# ----------- No configurable settings below this line -----------