Using the MSI API "MsiGetProductInfo" with the parameter "INSTALLPROPERTY_PRODUCTICON", we can get the icon.
However, this approach will not always succeed.
Actually, ARP will firstly look for:
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall \ {Product Code} \"DisplayIcon",
My question is, how can I get the above register path with some (MSI)APIs?
I don't want to Hard code there to read them, as I suspect the register path might be different in different OS(XP, Vista, Win7..)
Edited by cuiqimeng, 31 October 2009 - 15:03.