Stub implementation of the PatchFiles action.

This commit is contained in:
Mike McCormack 2005-09-23 11:06:57 +00:00 committed by Alexandre Julliard
parent 75c27e17b6
commit 567f0314af
1 changed files with 23 additions and 1 deletions

View File

@ -86,6 +86,7 @@ static UINT ACTION_RegisterFonts(MSIPACKAGE *package);
static UINT ACTION_PublishComponents(MSIPACKAGE *package);
static UINT ACTION_RemoveIniValues(MSIPACKAGE *package);
static UINT ACTION_MoveFiles(MSIPACKAGE *package);
static UINT ACTION_PatchFiles(MSIPACKAGE *package);
/*
* consts and values used
@ -301,7 +302,7 @@ static struct _actions StandardActions[] = {
{ szMsiUnpublishAssemblies, NULL},
{ szInstallODBC, NULL},
{ szInstallServices, NULL},
{ szPatchFiles, NULL},
{ szPatchFiles, ACTION_PatchFiles },
{ szProcessComponents, ACTION_ProcessComponents },
{ szPublishComponents, ACTION_PublishComponents },
{ szPublishFeatures, ACTION_PublishFeatures },
@ -4047,3 +4048,24 @@ static UINT ACTION_MoveFiles(MSIPACKAGE *package)
return ERROR_SUCCESS;
}
static UINT ACTION_PatchFiles(MSIPACKAGE *package)
{
static const WCHAR query[] = {
'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ',
'P','a','t','c','h',0 };
MSIQUERY *view = NULL;
DWORD count = 0;
UINT rc;
rc = MSI_DatabaseOpenViewW(package->db, query, &view);
if (rc == ERROR_SUCCESS)
{
rc = MSI_IterateRecords(view, &count, NULL, package);
if (count)
FIXME("%lu ignored Patch table values\n", count);
msiobj_release(&view->hdr);
}
return ERROR_SUCCESS;
}