So I have a include file called Variables.wxi which has the define product version I have a MergeModule which as the fileID. The include file is included in both product.wxs and mergemodule.wxs
If I use either the GUID from the component within the merge module or use the package ID from the merge module it fails: <?define ProductVersion = !(bind.fileVersion.file_TMCResources.D0328AB9_4135_4C11_9FF7_3887FB6573A6)?> I get: Error 4 Unresolved bind-time variable !(bind.fileVersion.file_TMCResources.D0328AB9_4135_4C11_9FF7_3887FB6573A6). C:\Dev\Core Technologies\Main\Setup\TMC_Client_Setup\Product.wxs 5 1 TMC_Client_Setup Or use this: <?define ProductVersion = !(wix.FileVersion.file_TMCResources.D0328AB9_4135_4C11_9FF7_3887FB6573A6)?> I get this: Error 4 The Windows Installer XML variable !(wix.FileVersion.file_TMCResources.D0328AB9_4135_4C11_9FF7_3887FB6573A6) 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.D0328AB9_4135_4C11_9FF7_3887FB6573A6=some value which doesn't contain parenthesis). C:\Dev\Core Technologies\Main\Setup\TMC_Client_Setup\Product.wxs 5 1 TMC_Client_Setup Using latest release version of Wix 3.6 Steve -----Original Message----- From: Rob Mensching [mailto:r...@robmensching.com] Sent: October-16-12 5:54 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Setting the version number... 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 ------------------------------------------------------------------------------ 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