What is the correct way to find whether a certain product (msi based setup) is installed on the machine?
Searching for Existing Applications, Files, Registry Entries or .ini File Entries [Windows Installer] lists the built-in detect methods. In this case, the CompLocator Table [Windows Installer] is intended to have the needed functionality.
To find the ComponentId for the CompLocator row,