MsiQueryProductState and INSTALLSTATE_ABSENT - dtieuf

25-Jan-07 04:11:33
Hi,

When a call to MsiQueryProductState returns INSTALLSTATE_ABSENT, MSDN
states that

Is there a way to (programmatically) find out for which user it is
installed ?

Thank you

dtieuf
button
 
 

MsiQueryProductState and INSTALLSTATE_ABSENT - Phil Wilson

25-Jan-07 04:46:31
MsiGetProductInfoEx is probably what you're looking for.
--
Phil Wilson
[Microsoft MVP Windows Installer]
button
 

MsiQueryProductState and INSTALLSTATE_ABSENT - dtieuf

26-Jan-07 11:38:46
On Jan 25, 4:46 pm, "Phil Wilson"

Yes, it does exactly what I need. Unfortunately, I should have added
that I must target MSI v2 and this function requires v3+.

Thanks anyway

dtieuf
button
 

MsiQueryProductState and INSTALLSTATE_ABSENT - Jeff Henkels

26-Jan-07 03:05:38
Try enumerating the subkeys of
HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData --
per-machine installs are in the S-1-5-18 key, and per-user installs will be
in the subkey corresponding to the user's SID.  The Products subkey of each
SID subkey contains product codes in a slightly scrambled format.
button
 
Problem with MSI upgrades....