Thanks for reply Phil.

Can you please provide sample code to use the variable value?

Regards,
Balu

-----Original Message-----
From: Phill Hogland [mailto:[email protected]] 
Sent: Wednesday, March 12, 2014 7:56 AM
To: [email protected]
Subject: Re: [WiX-users] usassign variable value to Property value--Any help?

I think the error is because AppendFormat is not passing an object (test) to 
the formatted string.  You also need to use HTML entities in the XML or use 
CDATA.

string test = "xyz.msi";
sb.AppendFormat(@"<Property Id=&quot;MYPROPERTY&quot; value=&quot;{0}&quot; !?! 
/>", test);

http://www.dotnetperls.com/appendformat
http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/usassign-variable-value-to-Property-value-Any-help-tp7593317p7593341.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the 
definitive new guide to graph databases and their applications. Written by 
three acclaimed leaders in the field, this first edition is now available. 
Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to