title: vbscript to check if Matlab Runtime Compiler is Installed
body: <p>I need to write a vbscript to see if "Matlab Compier Runtime" is installed on the system. After searching the internet, I was able to put together the following code:</p>
  
  <pre><code>Dim oShell
  Dim value
  
  On Error Resume Next
  
  Set oShell = CreateObject("WScript.Shell")
  value = oShell.RegRead(Key)
  
  If Err.Number = 0 Then
  ''#Error code 0 indicates success
  MsgBox("MCR is installed.")
  Else
      MsgBox("MCR is NOT installed.")
  End If
  </code></pre>
  
  <p>My problem is, that I am not able to determine what value to assign for 'Key'. I have looked for a key in the Registry Editor and found </p>
  
  <p>'HKEY_CLASSES_ROOT\TypeLib{3E25C089-6E25-45E4-8C5D-37AD9A33764A}\7.10\0\win32' </p>
  
  <p>but sadly, this does not give me the result. I have also tried </p>
  
  <p>HKEY_LOCAL_MACHINE\SOFTWARE\MATLAB Compiler Runtime\v716\runtime\win32</p>
  
  <p>but this is also not giving me he desired result. Note that my inslattation path is</p>
  
  <p>C:\Program Files (x86)\MatLab\MATLAB Compiler Runtime\</p>
  
  <p>My question is, is my key wrong? or is there something I am overlooking in the script?</p>