Do some basic work with registry component paths.

This commit is contained in:
Aric Stewart 2005-02-24 10:05:53 +00:00 committed by Alexandre Julliard
parent c2c0a98737
commit af812605fb
1 changed files with 12 additions and 4 deletions

View File

@ -1169,11 +1169,19 @@ INSTALLSTATE WINAPI MsiGetComponentPathW(LPCWSTR szProduct, LPCWSTR szComponent,
TRACE("found path of (%s:%s)(%s)\n", debugstr_w(szComponent), TRACE("found path of (%s:%s)(%s)\n", debugstr_w(szComponent),
debugstr_w(szProduct), debugstr_w(path)); debugstr_w(szProduct), debugstr_w(path));
FIXME("Only working for installed files, not registry keys\n"); if (path[0]=='0')
{
FIXME("Registry entry.. check entry\n");
rrc = INSTALLSTATE_LOCAL;
}
else
{
/* PROBIBLY a file */
if ( GetFileAttributesW(path) != INVALID_FILE_ATTRIBUTES ) if ( GetFileAttributesW(path) != INVALID_FILE_ATTRIBUTES )
rrc = INSTALLSTATE_LOCAL; rrc = INSTALLSTATE_LOCAL;
else else
rrc = INSTALLSTATE_ABSENT; rrc = INSTALLSTATE_ABSENT;
}
if( pcchBuf ) if( pcchBuf )
{ {