cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
vince_faller
Super User (Alumni)

Finding default JMP installation path on windows

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

Recommended Articles