Hi, Another question about indirect properties :o)
Assuming a fragment like this: <Control Id="SqlServer" Type="ComboBox" X="130" Y="60" Width="200" Height="18" Property="SQL_SERVER" ComboList="no" Indirect="yes" /> <Property Id="SQL_SERVER" Value="MY_SQL_SERVER" /> When populating a property from a custom action (written using DTF), should I be using the property like this: TableInfo tableInfo = session.Database.Tables["ComboBox"]; if (tableInfo == null) throw new InvalidOperationException("ComboBox table is not defined."); String insertString = String.Format("{0} TEMPORARY", tableInfo.SqlInsertString); session.Database.Execute(insertString, new Record("SQL_SERVER", 0, "SERVER\\INSTANCE_1", "SERVER\\INSTANCE_1")); session.Database.Execute(insertString, new Record("SQL_SERVER", 0, "SERVER\\INSTANCE_2", "SERVER\\INSTANCE_2")); or like this: TableInfo tableInfo = session.Database.Tables["ComboBox"]; if (tableInfo == null) throw new InvalidOperationException("ComboBox table is not defined."); String actualProperty = session["SQL_SERVER"]; String insertString = String.Format("{0} TEMPORARY", tableInfo.SqlInsertString); session.Database.Execute(insertString, new Record(actualProperty, 0, "SERVER\\INSTANCE_1", "SERVER\\INSTANCE_1")); session.Database.Execute(insertString, new Record(actualProperty, 0, "SERVER\\INSTANCE_2", "SERVER\\INSTANCE_2")); On an unrelated note, I'd like to use some conditions to enable/disable push buttons based upon the input from these properties but this doesn't seem to work? What am I doing wrong? I presume I need to dereference the property somehow? <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)"> <Condition Action="enable">NOT SQL_SERVER = ""</Condition> <Condition Action="disable">SQL_SERVER = ""</Condition> <Publish Event="NewDialog" Value="SqlAuthenticationDlg" /> </Control> Cheers! Dean -- View this message in context: http://n2.nabble.com/-WiX-users--Indirect%2C-Custom-Actions-and-Conditions-tp1118513p1118513.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users