cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Get the free JMP Student Edition for qualified students and instructors at degree granting institutions.
Choose Language Hide Translation Bar
View Original Published Thread

Finding default JMP installation path on windows

vince_faller
Super User (Alumni)

I'm trying to run a simple powershell script to run a JMP script.  But some people don't have JMP installed in the default path and some have multiple versions of JMP.  How can I find the path to JMP that would open if I double clicked a jmp file?

 

I looked at the registry and found

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{12B91C6F-6FEC-44E8-BA7A-D36BFFF3EE5F}\LocalServer32

That changes when I reset associations

 

Just wanting to confirm that it will be the same for everyone, seems like it.  Is this the best way to find the install path?

Vince Faller - Predictum
1 ACCEPTED SOLUTION

Accepted Solutions
Craige_Hales
Super User


Re: Finding default JMP installation path on windows

This might work:

runprogram(executable("cmd.exe"),options("/c ftype JMP.Document"),readfunction("text"))

returns something like

JMP.Document=C:\Program Files\SAS\JMPEA\17\jmp.exe /shellopen \!"%1\!"

 

Craige

View solution in original post

3 REPLIES 3


Re: Finding default JMP installation path on windows

Hi Vince,

 

InstallDir key could be usefull for your use case:

HKEY_CURRENT_USER\SOFTWARE\SAS Institute Inc.\JMP\15.0\Options\InstallDir

 

The JMP release is include into the path, so you also can check if jsl can be run with the release.

 

Guillaume

Guillaume
vince_faller
Super User (Alumni)


Re: Finding default JMP installation path on windows

But if I have 10 versions installed, I need to know which one is the default and where it is.  

Vince Faller - Predictum
Craige_Hales
Super User


Re: Finding default JMP installation path on windows

This might work:

runprogram(executable("cmd.exe"),options("/c ftype JMP.Document"),readfunction("text"))

returns something like

JMP.Document=C:\Program Files\SAS\JMPEA\17\jmp.exe /shellopen \!"%1\!"

 

Craige