From 4da4618ef00f027af048302c77529c1ba629088d Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Tue, 22 Oct 2024 21:59:13 +0200 Subject: [PATCH] MIES_Include.ipf: Fix Igor Pro version handling We also need to take all digits of the IP major version. The fix is in the same spirit as 4cc6f2e94 (GetSymbolicPathForDiagnosticsDirectory: Fix invalid IP version handling, 2024-07-11). --- Packages/MIES_Include.ipf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/MIES_Include.ipf b/Packages/MIES_Include.ipf index 16c4e2684b..5875da944e 100644 --- a/Packages/MIES_Include.ipf +++ b/Packages/MIES_Include.ipf @@ -59,7 +59,7 @@ static Function/S GetDownloadLink() string igorMajorVersion, text, lineWithLink, url, os - igorMajorVersion = StringByKey("IGORVERS", IgorInfo(0))[0] + igorMajorVersion = num2istr(IgorVersion()) #if defined(WINDOWS) os = "Windows" @@ -120,7 +120,7 @@ static Function AfterCompiledHook() string igorMajorVersion #if defined(IGOR64) - igorMajorVersion = StringByKey("IGORVERS", IgorInfo(0))[0] + igorMajorVersion = num2istr(IgorVersion()) printf "Your Igor Pro %s version is too old to be usable for MIES. Please follow the download instructions at: %s\r", igorMajorVersion, IP_DOCU_UPDATE_URL Execute "OpenPanelWithDocumentationLink()" #else