Add Language to the values we can query with MsiGetProductInfo.

This commit is contained in:
Aric Stewart 2005-06-08 18:35:43 +00:00 committed by Alexandre Julliard
parent 2767543be9
commit 36bc29769b
1 changed files with 13 additions and 0 deletions

View File

@ -517,6 +517,10 @@ UINT WINAPI MsiGetProductInfoW(LPCWSTR szProduct, LPCWSTR szAttribute,
{'P','r','o','d','u','c','t','V','e','r','s','i','o','n',0}; {'P','r','o','d','u','c','t','V','e','r','s','i','o','n',0};
static const WCHAR szAssignmentType[] = static const WCHAR szAssignmentType[] =
{'A','s','s','i','g','n','m','e','n','t','T','y','p','e',0}; {'A','s','s','i','g','n','m','e','n','t','T','y','p','e',0};
static const WCHAR szLanguage[] =
{'L','a','n','g','u','a','g','e',0};
static const WCHAR szProductLanguage[] =
{'P','r','o','d','u','c','t','L','a','n','g','u','a','g','e',0};
FIXME("%s %s %p %p\n",debugstr_w(szProduct), debugstr_w(szAttribute), FIXME("%s %s %p %p\n",debugstr_w(szProduct), debugstr_w(szAttribute),
szBuffer, pcchValueBuf); szBuffer, pcchValueBuf);
@ -577,6 +581,15 @@ UINT WINAPI MsiGetProductInfoW(LPCWSTR szProduct, LPCWSTR szAttribute,
*pcchValueBuf = 1; *pcchValueBuf = 1;
r = ERROR_SUCCESS; r = ERROR_SUCCESS;
} }
else if (strcmpW(szAttribute, szLanguage)==0)
{
r = MsiOpenProductW(szProduct, &hProduct);
if (ERROR_SUCCESS != r)
return r;
r = MsiGetPropertyW(hProduct, szProductLanguage, szBuffer, pcchValueBuf);
MsiCloseHandle(hProduct);
}
else else
{ {
r = MsiOpenProductW(szProduct, &hProduct); r = MsiOpenProductW(szProduct, &hProduct);