Re: [WiX-users] Clearing a MSI table (Clearing ListBox/ComboBox)
Thanks! I suppose I can filter the delete query with the property name? I have never interacted with the MSI-database before but I have looked at the database functions in the MSI Api and I have a general idea of how to do this BUT if anyone have a c++ code sample to share I would be very, very grateful. /Hans Bob Arnson-6 wrote: md5hans wrote: Is there a way to clear an msi-table from the c++ code? Execute a DELETE query on the table. -- sig://boB http://joyofsetup.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 -- View this message in context: http://www.nabble.com/Clearing-a-MSI-table-%28Clearing-ListBox-ComboBox%29-tf4333896.html#a12403659 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
Re: [WiX-users] Clearing a MSI table (Clearing ListBox/ComboBox)
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
Re: [WiX-users] Clearing a MSI table (Clearing ListBox/ComboBox)
md5hans wrote: Is there a way to clear an msi-table from the c++ code? Execute a DELETE query on the table. -- sig://boB http://joyofsetup.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
[WiX-users] Clearing a MSI table (Clearing ListBox/ComboBox)
Hi! I have a dialog (D1) that has a ComboBox where the items of the ComboBox is filled by a custom action (C++ dll). When the user has selected an item the next button is enabled and another dialog (D2) is shown (if the user clicks the next button) with another combobox. The D2 combobox is also filled by a custom action in the same way as the first one but the selection of items is based on the item that was selected in the first dialog (D1). My problem is if the user clicks the back button in dialog D2 and in the D1 dialog changes the selection of the Combobox and then clicks the next button (To move back to D2) I want to reload the items in the D2-Combox using the new value that was selected in D1. Is there a way to clear an msi-table from the c++ code? or must I disable the back button so that the user can not change the setting i D1 after having moved to D2? /Hans -- View this message in context: http://www.nabble.com/Clearing-a-MSI-table-%28Clearing-ListBox-ComboBox%29-tf4333896.html#a12343111 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