Hi!

I found a sample...

...

MSIHANDLE hDatabase, hView;

hDatabase = MsiGetActiveDatabase(hInstall);
if (MsiOpenDatabase(szPathName,MSIDBOPEN_DIRECT,&hDatabase)!= ERROR_SUCCESS)
{
        return FALSE;
}

if (MsiDatabaseOpenView(hDatabase,"DELETE FROM 'ComboBox' WHERE 'Property' =
'PACKAGE_NAME'",&hView) != ERROR_SUCCESS)
{
        return FALSE;
}
// execute query - not a parameter query so second parameter is NULL.
if (MsiViewExecute(hView,NULL) != ERROR_SUCCESS)
{
        return FALSE;
}

if(MsiDatabaseCommit(hDatabase))
{
        return FALSE;
}
....

-- 
View this message in context: 
http://www.nabble.com/Clearing-a-MSI-table-%28Clearing-ListBox-ComboBox%29-tf4333896.html#a12407294
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to