The wixproj can pass constants to be used in the wxs, not the other way around.
You can edit the wixproj by hand and use MSBuild properties such as: In the OutName property element = ProductName_$(WiXProductVersion) Then later in the DefineConstants property element you can say ProductVersion=$(WiXProductVersion) and in the wxs you can reference it with $(var.ProductVersion ) Now when you call MSBUILD you pass in /p:WiXProductVersion=1.2.3 and you'll get an MSI with that in the name and that version in the property table. ---------------------------------------- From: "j2associates" <j2associa...@yahoo.com> Sent: Friday, February 08, 2013 7:44 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How can I set/change the generated msi name from within product.wxs Hello all, We have a requirement that the generated msi include the project name and version (e.g. MyAppInstaller v1.0.1.msi). The OutputName tag in the wixproj file contains the generated msi name. Is there a way to update the OutputName tag within the product.wxs file? I would like to set it to something like $(var.ProductName)Installer $(var.CurrentVersion). Thanks in advance for any ideas and/or suggestions! -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-can-I-set- change-the-generated-msi-name-from-within-product-wxs-tp7583427.html Sent from the wix-users mailing list archive at Nabble.com. ---------------------------------------------------------------------------- -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users