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
eforge.net Subject: [WiX-users] Problems with adding items to ListBox I have listbox in dialog: Custom action: C++ code: void LogMsiMessage(MSIHANDLE hInstall, LPCWSTR szText) { PMSIHANDLE hErr = MsiCreateRecord(

[WiX-users] Problems with adding items to ListBox

2010-04-09 Thread vunder
I have listbox in dialog: Custom action: C++ code: void LogMsiMessage(MSIHANDLE hInstall, LPCWSTR szText) { PMSIHANDLE hErr = MsiCreateRecord(1); MsiRecordSetString(hErr, 0, szText); MsiProcessMessage