From 202166c343e9794a306dbe1e9a1674d880cedc71 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Fri, 23 Sep 2005 10:09:18 +0000 Subject: [PATCH] Stub implementation of the RemoveIniValues action. --- dlls/msi/action.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 7aede647012..c5e18518563 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -84,6 +84,7 @@ static UINT ACTION_ResolveSource(MSIPACKAGE *package); static UINT ACTION_ExecuteAction(MSIPACKAGE *package); static UINT ACTION_RegisterFonts(MSIPACKAGE *package); static UINT ACTION_PublishComponents(MSIPACKAGE *package); +static UINT ACTION_RemoveIniValues(MSIPACKAGE *package); /* * consts and values used @@ -318,7 +319,7 @@ static struct _actions StandardActions[] = { { szRemoveExistingProducts, NULL}, { szRemoveFiles, NULL}, { szRemoveFolders, NULL}, - { szRemoveIniValues, NULL}, + { szRemoveIniValues, ACTION_RemoveIniValues }, { szRemoveODBC, NULL}, { szRemoveRegistryValues, NULL}, { szRemoveShortcuts, NULL}, @@ -4003,3 +4004,24 @@ static UINT ACTION_PublishComponents(MSIPACKAGE *package) return rc; } + +static UINT ACTION_RemoveIniValues(MSIPACKAGE *package) +{ + static const WCHAR query[] = + {'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ', + 'R','e','m','o','v','e','I','n','i','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 RemoveIniFile table values\n", count); + msiobj_release(&view->hdr); + } + + return ERROR_SUCCESS; +}