Merge Modules "modularize" the identifiers (append the .G_U_I_D). So you must do that too.
On Tue, Oct 16, 2012 at 2:15 PM, StevenOgilvie <sogil...@msn.com> wrote: > Hi Rob, > > I have a wxi variable file with: > <?define ProductVersion = !(wix.FileVersion.file_TMCResources)?> > > then my product.wxs file with: > <Product Id="$(var.ProductCode)" > Name="$(var.ProductName)" > Language="1033" > Version="$(var.ProductVersion)" > > I compile using VS2010 and get these errors: > Error 4 The Windows Installer XML variable > !(wix.FileVersion.file_TMCResources) is unknown. Please ensure the > variable > is declared on the command line for light.exe, via a WixVariable element, > or > inline using the syntax !(wix.FileVersion.file_TMCResources=some value > which > doesn't contain parenthesis). C:\Dev\Core > Technologies\Main\Setup\TMC_Client_Setup\Product.wxs 5 1 > TMC_Client_Setup > > I have a merge module (which includes the variables.wxi) which contains > that > file id: > <Component Id="cmp9A893CD17F2583C3B6A49923CB3B231C" > Guid="{SOME_GUID}" Permanent="no" > Shared="no"> > <File Id="file_TMCResources" KeyPath="yes" > Source="$(var.tmcSourcePath)\TMC_Resources.dll" /> > </Component> > > Must be an easy way to read a fileversion and use that as your > productversion? > > Steve > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Setting-the-version-number-tp5942903p7581390.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- virtually, Rob Mensching http://RobMensching.com LLC ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users