Re: [WiX-users] ListBox vs ComboBox
Hi, please ignore the second question about the Next button, I found an example using "Publish Dialog" if I set a condition on the property associated with the ComboBox I suppose I will get the behaivor I'm after. I suppose if this works I do not need to pre-select an item in the combo so you may also ignore the first question to ;-) sorry... /Hans md5hans wrote: > > Thanks a lot, now it works! > > How can I "pre-select" the first item in the combo? (I do not now what the > values in the Combo are when creating the WIX file, they are added from a > c++ dll) or is there a way to have my "Next" button disabled until the > user has selected a value from the combobox? > > Maybe these questions should be in a seperate message since there are not > so related to the original question but I try this first. > > /Hans > > > Bob Arnson-6 wrote: >> >> md5hans wrote: >>> FillListbox: Error 0x8007064f: failed to open view on database >>> FillListbox: Error 0x8007064f: failed to openexecute temp view with >>> query >>> SELECT * FROM `ComboBox` >>> >> >> You probably don't have a ComboBox table in your MSI. The MSI spec >> requires that there be a ListBox table if you UI but not ComboBox. Use >> EnsureTable to have WiX include an empty table. >> >> -- >> sig://boB >> http://joyofsetup.com/ >> >> >> >> - >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> ___ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> > > -- View this message in context: http://www.nabble.com/ListBox-vs-ComboBox-tf4304757.html#a12273302 Sent from the wix-users mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] ListBox vs ComboBox
Thanks a lot, now it works! How can I "pre-select" the first item in the combo? (I do not now what the values in the Combo are when creating the WIX file, they are added from a c++ dll) or is there a way to have my "Next" button disabled until the user has selected a value from the combobox? Maybe these questions should be in a seperate message since there are not so related to the original question but I try this first. /Hans Bob Arnson-6 wrote: > > md5hans wrote: >> FillListbox: Error 0x8007064f: failed to open view on database >> FillListbox: Error 0x8007064f: failed to openexecute temp view with >> query >> SELECT * FROM `ComboBox` >> > > You probably don't have a ComboBox table in your MSI. The MSI spec > requires that there be a ListBox table if you UI but not ComboBox. Use > EnsureTable to have WiX include an empty table. > > -- > sig://boB > http://joyofsetup.com/ > > > > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/ListBox-vs-ComboBox-tf4304757.html#a12269059 Sent from the wix-users mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] ListBox vs ComboBox
md5hans wrote: > FillListbox: Error 0x8007064f: failed to open view on database > FillListbox: Error 0x8007064f: failed to openexecute temp view with query > SELECT * FROM `ComboBox` > You probably don't have a ComboBox table in your MSI. The MSI spec requires that there be a ListBox table if you UI but not ComboBox. Use EnsureTable to have WiX include an empty table. -- sig://boB http://joyofsetup.com/ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] ListBox vs ComboBox
Hi! Using the sample code in the tutorial "http://www.tramontana.co.hu/wix/lesson10.php"; I have managed to fill a listbox with values from a c++ dll. I would like to use a ComboBox instead but can not get it to work. I have tried the following: ... (That is changing the Type to ComboBox) and in the c++ code extern "C" UINT __stdcall FillPackageList (MSIHANDLE hInstall) { HRESULT hResult = WcaInitialize (hInstall, "FillPackageList"); if (FAILED (hResult)) return ERROR_INSTALL_FAILURE; MSIHANDLE hTable = NULL; MSIHANDLE hColumns = NULL; hResult = WcaAddTempRecord (&hTable, &hColumns, L"ComboBox", 0, 3, L"LISTBOXVALUES", 1, L"C:\\Program Files\\Common Files\\GeoSE\\Norden\\"); hResult = WcaAddTempRecord (&hTable, &hColumns, L"ComboBox", 0, 3, L"LISTBOXVALUES", 2, L"C:\\Program Files\\Common Files\\GeoSE\\Sverige\\"); if (hTable) MsiCloseHandle (hTable); if (hColumns) MsiCloseHandle (hColumns); return WcaFinalize (hResult); } // FillPackageList (Changing the third parameter in the WcaAddTempRecord from ListBox to ComboBox) When a run the MSI there is an error and the log says Action start 13:21:40: FillPackageList. MSI (c) (04:08) [13:21:40:489]: Invoking remote custom action. DLL: C:\DOCUME~1\haol\LOCALS~1\Temp\MSI14C8.tmp, Entrypoint: FillPackageList MSI (c) (04:2C) [13:21:40:489]: Cloaking enabled. MSI (c) (04:2C) [13:21:40:489]: Attempting to enable all disabled priveleges before calling Install on Server MSI (c) (04:2C) [13:21:40:489]: Connected to service for CA interface. MSI (c) (04!D8) [13:21:40:582]: Note: 1: 2205 2: 3: ComboBox MSI (c) (04!D8) [13:21:40:582]: Note: 1: 2228 2: 3: ComboBox 4: SELECT * FROM `ComboBox` FillListbox: Error 0x8007064f: failed to open view on database FillListbox: Error 0x8007064f: failed to openexecute temp view with query SELECT * FROM `ComboBox` MSI (c) (04!D8) [13:21:40:582]: Note: 1: 2205 2: 3: ComboBox MSI (c) (04!D8) [13:21:40:582]: Note: 1: 2228 2: 3: ComboBox 4: SELECT * FROM `ComboBox` FillListbox: Error 0x8007064f: failed to open view on database FillListbox: Error 0x8007064f: failed to openexecute temp view with query SELECT * FROM `ComboBox` Action ended 13:21:40: FillPackageList. Return value 3. Action ended 13:21:40: INSTALL. Return value 3. MSI (c) (04:BC) [13:21:40:582]: Destroying RemoteAPI object. MSI (c) (04:2C) [13:21:40:582]: Custom Action Manager thread ending. Have I missed something basic here? I thought that filling a ListBox and a ComboBox would be almost identical... Best regards Hans -- View this message in context: http://www.nabble.com/ListBox-vs-ComboBox-tf4304757.html#a12253311 Sent from the wix-users mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users