Getting the COMSOL Installation Path from the Windows Registry
If you want to have your application find your COMSOL Multiphysics installation automatically, you can have your application examine the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\COMSOL\COMSOL64\
The value name
COMSOLROOT
contains the installation path.