Locate an installed software in Windows using MATLAB
9 views (last 30 days)
Is it possible to find the location of an installed software in Windows using MATLAB? I need my MATLAB code to find the location of an installed application (exe file) and then run it. I found this string in stackoverflow website:
notepadEdit = winqueryreg('HKEY_CLASSES_ROOT','Applications\notepad.exe\shell\edit\command')
but it doesn't work for an app that is installed in program files.
Thank you in advance for any hint.
Jan on 25 Apr 2015
If you know the name of the executable and that it is installed in e.g. the "Program Files (x86)" folder:
[Result, WordPath] = system('WHERE /F /R "c:\Program Files (x86)" winword.exe')