Thanks. MsiDatabaseOpenView() worked with
swprintf_s(lPath, L"INSERT INTO `ListBox`
(`Property`,`Order`,`Value`,`Text`) VALUES ('SELECTEDGUICONFIG', %d, '%d',
'%s')", i++, i, sr.cFileName);
But now there is another problem with MsiViewExecute(). I call it after
MsiDatabaseOpenView():
if (MsiViewExecute(hView, rr) != ERROR_SUCCESS)
LogMsiMessage(hInstall,
L"MsiViewExecute() error!");
At Log I see:
MSI (c) (9C:0C) [16:46:05:000]: Invoking remote custom action. DLL:
C:\DOCUME~1\vunder\LOCALS~1\Temp\MSI2D32.tmp, Entrypoint: FillSavedConfigs
Found config file: 1.brf
INSERT INTO `ListBox` (`Property`,`Order`,`Value`,`Text`) VALUES
('SELECTEDGUICONFIG', 2, '2', '1.brf')
MSI (c) (9C!D8) [16:46:05:390]: Note: 1: 2259 2: 3: 4:
MsiViewExecute() error!
DEBUG: Error 2259: Database: Table(s) Update failed
--
View this message in context:
http://n2.nabble.com/Problems-with-adding-items-to-ListBox-tp4875793p4876851.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users