The core problem is that the version value is needed by the compiler, but a bind variable is not resolved until the second pass of linking, so a bind variable cannot be used in the version field, as I understand it.
There are various approaches to adding a MSBuild task which gets (or creates) a version number, and then writes the version number to a wxi file. Your project would then use the $(var.VersionVarName) syntax to get the version from the wix file. http://msdn.microsoft.com/en-us/library/t9883dzc.aspx The wix source code has MSBuild tasks, including code writes a value into a wxi file. These can be used as examples even if they do not do exactly what you want to achieve. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Binding-FileVersion-in-a-bootstrapper-tp7593348p7593366.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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users