Re: [WiX-users] Problems with adding items to ListBox

2010-04-09 Thread Yan Sklyarenko
Right, that's because you can only add temporary records from inside the custom action. -- Yan -Original Message- From: vunder [mailto:vun...@bk.ru] Sent: Friday, April 09, 2010 15:52 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Problems with adding items to Li

Re: [WiX-users] Problems with adding items to ListBox

2010-04-09 Thread vunder
Problem solving with this query: swprintf_s(lPath, L"INSERT INTO `ListBox` (`Property`,`Order`,`Value`,`Text`) VALUES ('SELECTEDGUICONFIG', %d, '%d', '%s') TEMPORARY", i++, i, sr.cFileName); I added "TEMPORARY" at the end of the query and it work's -- View this message in context: http://n2

Re: [WiX-users] Problems with adding items to ListBox

2010-04-09 Thread vunder
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():

Re: [WiX-users] Problems with adding items to ListBox

2010-04-09 Thread Yan Sklyarenko
I think you should still list all the columns in brackets: INSERT INTO `ListBox` (`Property`,`Order`,`Value`,`Text`) VALUES ('SELECTEDGUICONFIG',2,'2','1.brf') And, BTW, get a habit to wrap table and column names in `...` For more information, see the MSI SQL syntax definition: http://msdn