Stub implementation of the MoveFiles action.
This commit is contained in:
parent
357a484a7e
commit
8e22e7d7a9
|
@ -85,6 +85,7 @@ static UINT ACTION_ExecuteAction(MSIPACKAGE *package);
|
||||||
static UINT ACTION_RegisterFonts(MSIPACKAGE *package);
|
static UINT ACTION_RegisterFonts(MSIPACKAGE *package);
|
||||||
static UINT ACTION_PublishComponents(MSIPACKAGE *package);
|
static UINT ACTION_PublishComponents(MSIPACKAGE *package);
|
||||||
static UINT ACTION_RemoveIniValues(MSIPACKAGE *package);
|
static UINT ACTION_RemoveIniValues(MSIPACKAGE *package);
|
||||||
|
static UINT ACTION_MoveFiles(MSIPACKAGE *package);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* consts and values used
|
* consts and values used
|
||||||
|
@ -295,7 +296,7 @@ static struct _actions StandardActions[] = {
|
||||||
{ szIsolateComponents, NULL},
|
{ szIsolateComponents, NULL},
|
||||||
{ szLaunchConditions, ACTION_LaunchConditions },
|
{ szLaunchConditions, ACTION_LaunchConditions },
|
||||||
{ szMigrateFeatureStates, NULL},
|
{ szMigrateFeatureStates, NULL},
|
||||||
{ szMoveFiles, NULL},
|
{ szMoveFiles, ACTION_MoveFiles },
|
||||||
{ szMsiPublishAssemblies, NULL},
|
{ szMsiPublishAssemblies, NULL},
|
||||||
{ szMsiUnpublishAssemblies, NULL},
|
{ szMsiUnpublishAssemblies, NULL},
|
||||||
{ szInstallODBC, NULL},
|
{ szInstallODBC, NULL},
|
||||||
|
@ -4025,3 +4026,24 @@ static UINT ACTION_RemoveIniValues(MSIPACKAGE *package)
|
||||||
|
|
||||||
return ERROR_SUCCESS;
|
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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue