I assume that when you say "installation location", you really mean "which directory is the application's exe located in?" Otherwise, the question is controversial because MSI does not have to install an βapplicationβ. It can install a component that does not have an EXE. And he can install it through several directories ...
But this will most likely work:
Call MsiGetProductInfo to get ARPINSTALLLOCATION. You will need to know the "product name" as it is installed. as the first parameter. Call MsiEnumProducts to list all installed "products" if necessary.
source
share