Subscribe Bookmark RSS Feed

Scripting architecture type (32bit or 64bit)

wmwinn

Community Trekker

Joined:

Jun 23, 2011


Does anyone know of a way to detect which JMP version a user may have installed on their Windows 7 machine?  Similar to the JMP version() function, but one that could return whether the user is running the 32bit version of JMP or the 64bit version of JMP?

Any help would be appreciated!

- Mark -

1 ACCEPTED SOLUTION

Accepted Solutions
pmroz

Super User

Joined:

Jun 23, 2011

Solution

Use the HOST IS function.  Returns true or false depending on what you pass it, and what the PC's architecture is:

host is(bits64);

host is(bits32);

2 REPLIES
pmroz

Super User

Joined:

Jun 23, 2011

Solution

Use the HOST IS function.  Returns true or false depending on what you pass it, and what the PC's architecture is:

host is(bits64);

host is(bits32);

wmwinn

Community Trekker

Joined:

Jun 23, 2011

Yeah, I tried that.  It appears that function returns the PC's architecture, and NOT the JMP version installed.  For example, I have users with 64-bit Win7 OS, but install the 32-bit JMP version of software.  I need to know at run-time which JMP version they are using.  Maybe query their registry for where the JMP executable resides? (/program files/ or /program files (x86)/) ?

Edited: Oops, I was wrong.  The above solution worked perfectly.  Thank You!!

thanks,

- Mark -