Hello,
Since there are many difference between a Per-User installation and a Per-Machine installation. Please check the following documentation
Installation Context
http://msdn.microsoft.com/en-us/library/dd765197(VS.85).aspx The easiest way to determine if an application was installed for everyone or just for me might be check the where the shortcut is stored and the registry.
However, if you want get it programmatically, you can try to call the MsiEnumProducts or MsiEnumProductsEx functions(as Phil suggested) to enumerate all the products installed on the system, and then retrieve information about the installation context of these products by calling the MsiGetProductInfoEx or MsiGetProductInfo functions.
Thanks,
Rong-Chun Zhang
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact
msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.