Stub implementation of the MoveFiles action.

This commit is contained in:
Mike McCormack 2005-09-23 10:48:17 +00:00 committed by Alexandre Julliard
parent 357a484a7e
commit 8e22e7d7a9
1 changed files with 23 additions and 1 deletions

View File

@ -85,6 +85,7 @@ static UINT ACTION_ExecuteAction(MSIPACKAGE *package);
static UINT ACTION_RegisterFonts(MSIPACKAGE *package);
static UINT ACTION_PublishComponents(MSIPACKAGE *package);
static UINT ACTION_RemoveIniValues(MSIPACKAGE *package);
static UINT ACTION_MoveFiles(MSIPACKAGE *package);
/*
* consts and values used
@ -295,7 +296,7 @@ static struct _actions StandardActions[] = {
{ szIsolateComponents, NULL},
{ szLaunchConditions, ACTION_LaunchConditions },
{ szMigrateFeatureStates, NULL},
{ szMoveFiles, NULL},
{ szMoveFiles, ACTION_MoveFiles },
{ szMsiPublishAssemblies, NULL},
{ szMsiUnpublishAssemblies, NULL},
{ szInstallODBC, NULL},
@ -4025,3 +4026,24 @@ static UINT ACTION_RemoveIniValues(MSIPACKAGE *package)
return ERROR_SUCCESS;
}
static UINT ACTION_MoveFiles(MSIPACKAGE *package)
{
static const WCHAR query[] =
{'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ',
'M','o','v','e','F','i','l','e',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 MoveFile table values\n", count);
msiobj_release(&view->hdr);
}
return ERROR_SUCCESS;
}