MsiQueryProductState
(1)
INSTALLSTATE_ABSENT
(1)
DtieufMsiGetProductInfoEx
(1)
MsiGetProductInfoEx
(1)
CurrentVersion
(1)
UserData
(1)
DtieufRe
(1)
SID
(1)

MsiQueryProductState and INSTALLSTATE_ABSENT

Asked By dtieuf
25-Jan-07 04:11 PM
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

MsiGetProductInfoEx is probably what you're looking for.

Asked By Phil Wilson
25-Jan-07 04:46 PM
MsiGetProductInfoEx is probably what you are looking for.
--
Phil Wilson
[Microsoft MVP Windows Installer]

MsiQueryProductState and INSTALLSTATE_ABSENT

Asked By dtieuf
26-Jan-07 11:38 AM
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

MsiQueryProductState and INSTALLSTATE_ABSENT

Asked By Jeff Henkels
26-Jan-07 03:05 PM
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.
Post Question To EggHeadCafe