- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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\!"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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\!"