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
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
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():
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
4 matches
Mail list logo