cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

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