Hi Guys, I'm still trying to get this resolved. When I viewed the log file I could see that my property contained the value I assigned to it from within my CustomAction; however, it doesn't contain anything when I try use it within the <util:XmlFile element.
Does anyone have any idea as to why Value does not contain the property value? Thanks. On Tue, Jan 25, 2011 at 11:50 AM, CoolBreeze <coolbreeze...@googlemail.com>wrote: > I have a property I've set within a CustomAction that I need to access > within one of my Components. I'm not getting the property's value. Is this > even possible? > > Here is where I'm assigning a value to my property. > > [CustomAction] > public static ActionResult TestSqlConnection(Session testSession) > { > // Code that tests the connection. > ... > ... > > // Assign the connection string to a property. > testSession["SQLCONNECTION"] = connStr; > } > > Within my Components.wxs I have the following. > <Component Id="CMP_ConnString" Guid="Some Guid" Directory="AppDir"> > <File Id="App.config" Name="app.config" Vital="yes" KeyPath="yes" > Source="..\MyApp\app.config" /> > <util:XmlFile Id="AppConfigConnString" Action="setValue" Permanent="yes" > File="App.config" > > Element="/configuration/connectionStrings/add[\[]@name='MyAppConnString'[\]]" > Name="connectionString" Value="[SQLCONNECTION]" /> > > ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users