Re: [WiX-users] Populating Listbox from a custom action
The problem was that I wanted the LISTBOXVALUES property set to the Value column of the listbox, as opposed to the Text. I realise now that it was because I wasn't actually populating the listbox with any text - merely the value. What I wanted to do was: WcaAddTempRecord(hTable, hColumns, L"ListBox", 2, 4, L"LISTBOXVALUES", entrycount++, wcData, wcDesc); -- View this message in context: http://www.nabble.com/Populating-Listbox-from-a-custom-action-tf4104235.html#a11706106 Sent from the wix-users mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Populating Listbox from a custom action
Alexei wrote: > Thanks for all the replies however it's not the inclusion of the listbox > table - that is most definitely there. And I can populate it as well. > The problem is trying to achieve the behavior corresponding to > But what exactly is the problem? Is the data not getting written to the ListBox table? Is it not what you specified? Is WcaAddTempRecord returning a bad HRESULT? I'd expect a failure HRESULT because the ListBox table has four columns, not three. The fourth is the Text column. -- sig://boB http://joyofsetup.com/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Populating Listbox from a custom action
Thanks for all the replies however it's not the inclusion of the listbox table - that is most definitely there. And I can populate it as well. The problem is trying to achieve the behavior corresponding to but by using the wcautil.lib Currently I'm using WcaAddTempRecord(hTable, hColumns, L"ListBox", 0, 3, L"LISTBOXVALUES", 1, L"Item 1"); Essentially copied from the tutorial on http://www.tramontana.co.hu/wix/lesson10.php http://www.tramontana.co.hu/wix/lesson10.php This means that when a user selects "Item 1" the LISTBOXVALUES property is set to "Item 1". What I would actually want it set to would be "1". Is there any way to do this by using wcautil? But I can't seem to find any documentation on wcautil.lib anywhere, so I'm rather stuck it seems. -- View this message in context: http://www.nabble.com/Populating-Listbox-from-a-custom-action-tf4104235.html#a11684859 Sent from the wix-users mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Populating Listbox from a custom action
K-ballo wrote: > Make sure that the Table that you are adding values to, exists at the > msi database. If I'm not wrong that table is ListBox, so you could try > adding to your project and see if that works. > WiX automatically includes an empty ListBox table if there's any UI. -- sig://boB http://joyofsetup.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Populating Listbox from a custom action
I'm suprised that you would have to force the existence of the ListBox table in the first place. ISHNMET drops most tables from the resultant MSI when they contain no table data, but it leaves some tables like ListBox because they could be needed at install time. After all, everyone has a UI sequence complete with FilesInUse and MsiRMFilesInUse dialogs to support core Windows Installer stories, right? Just how bloated and horrible does an empty ListBox table and corrosponding _Validation data make an MSI database that it needs to be automatically supressed unless needed? Alexei <[EMAIL PROTECTED]> wrote: K-ballo wrote: > > Make sure that the Table that you are adding values to, exists at the > msi database. If I'm not wrong that table is ListBox, so you could try > adding to your project and see if that works. > > K-ballo.- > Thanks for the reply. I'm fairly sure the table is there and is empty prior to install. It shows up in Orca and that line worked fine however it bombed out of candle when I changed it to: Presumably that is what is supposed to happen. While on the subject of CAs - is anyone aware of somewhere that has documentation for wcautil.lib or dutil.lib? -- View this message in context: http://www.nabble.com/Populating-Listbox-from-a-custom-action-tf4104235.html#a11672204 Sent from the wix-users mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV.- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Populating Listbox from a custom action
K-ballo wrote: > > Make sure that the Table that you are adding values to, exists at the > msi database. If I'm not wrong that table is ListBox, so you could try > adding to your project and see if that works. > > K-ballo.- > Thanks for the reply. I'm fairly sure the table is there and is empty prior to install. It shows up in Orca and that line worked fine however it bombed out of candle when I changed it to: Presumably that is what is supposed to happen. While on the subject of CAs - is anyone aware of somewhere that has documentation for wcautil.lib or dutil.lib? -- View this message in context: http://www.nabble.com/Populating-Listbox-from-a-custom-action-tf4104235.html#a11672204 Sent from the wix-users mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Populating Listbox from a custom action
Make sure that the Table that you are adding values to, exists at the msi database. If I'm not wrong that table is ListBox, so you could try adding to your project and see if that works. K-ballo.- Alexei Zhyzhyn escribió: > Hi everyone, > what I'm trying to do is to populate a listbox in my install with a set of > name-value pairs - so that when a user selects a name in the listbox, the > listbox property is set to the value corresponding to that name. > > I know this can be done with something like: > Property="LISTBOXVALUES" X="10" Y="79" Width="200" Height="52"> > > > > > > > If this exists when the user selects "This is listitem1" the value of > LISTBOXVALUES becomes LI1, similarly for the second item. > > The problem is these pairs won't be known until install-time since they will > be machine dependent. For this reason I'm using a custom action to search > through the registry and populate the listbox. > > However I can't seem to get the desired behavior when I use a custom action. > The listbox is populated but the value of LISTBOXVALUES becomes whatever is > displayed in the listbox. My thoughts are that I'm not adding with the > correct function/parameters. > > Having modeled my CA from the tutorial on > http://www.tramontana.co.hu/wix/lesson10.php I'm using lines in the vein of: > WcaAddTempRecord(hTable, hColumns, L"ListBox", 0, 3, L"LISTBOXVALUES", 1, > L"Item 1"); > and I'm using the wcautil.lib. I haven't been able to find any > documentation for it so that's why I reckon I'm either calling the wrong > function or passing the wrong parameters. > > Anyone have any ideas? Thanks in advance, Lex > > _ > Watch all 9 Live Earth concerts live on MSN. http://liveearth.uk.msn.com > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Populating Listbox from a custom action
Hi everyone, what I'm trying to do is to populate a listbox in my install with a set of name-value pairs - so that when a user selects a name in the listbox, the listbox property is set to the value corresponding to that name. I know this can be done with something like: If this exists when the user selects "This is listitem1" the value of LISTBOXVALUES becomes LI1, similarly for the second item. The problem is these pairs won't be known until install-time since they will be machine dependent. For this reason I'm using a custom action to search through the registry and populate the listbox. However I can't seem to get the desired behavior when I use a custom action. The listbox is populated but the value of LISTBOXVALUES becomes whatever is displayed in the listbox. My thoughts are that I'm not adding with the correct function/parameters. Having modeled my CA from the tutorial on http://www.tramontana.co.hu/wix/lesson10.php I'm using lines in the vein of: WcaAddTempRecord(hTable, hColumns, L"ListBox", 0, 3, L"LISTBOXVALUES", 1, L"Item 1"); and I'm using the wcautil.lib. I haven't been able to find any documentation for it so that's why I reckon I'm either calling the wrong function or passing the wrong parameters. Anyone have any ideas? Thanks in advance, Lex _ Watch all 9 Live Earth concerts live on MSN. http://liveearth.uk.msn.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users