Skip to content

Commit

Permalink
MIES_Include.ipf: Fix Igor Pro version handling
Browse files Browse the repository at this point in the history
We also need to take all digits of the IP major version. The fix is in the
same spirit as 4cc6f2e (GetSymbolicPathForDiagnosticsDirectory: Fix
invalid IP version handling, 2024-07-11).
  • Loading branch information
t-b committed Nov 18, 2024
1 parent dff416f commit 4da4618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Packages/MIES_Include.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4da4618

Please sign in to comment.