Hi , Try below code may it will works.
<File Id="abc.cnf" DefaultVersion="$(var.ProductVersion)" Name="abc.cnf" Source="Files\abc.cnf"/> Regards, Nigam Patel,Software Engineer Cybage Software Pvt. Ltd. (An SEI-CMMI Level 5 assessed & ISO 27001 Company) Gandhinagar, India Phone(O):91-79-66737000, Ext: 5310 Fax:91-79-66737001 -----Original Message----- From: swapna.rachako...@thomsonreuters.com [mailto:swapna.rachako...@thomsonreuters.com] Sent: 18 August 2011 18:29 To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to avoid companionfile attribute If I use companionfile attribute I am safe. If I use default version like below <File Id="abc.cnf" DefaultVersion="${var.ProductVersion}" Name="abc.cnf" Source="Files\abc.cnf"/> is asking for language if I specify DefaultLanguage="0" then its giving same below error The DefaultVersion '${var.ProductVersion}' was used for file 'abc.cnf' which has no version. No entry for this file will be placed in the MsiFileHash table. For unversioned files, specifying a version that is different from the actual file may result in unexpected versioning behavior during a repair or while patching. Version the resource to eliminate this warning. C:\test\Product.wxs(308,0): error LGHT0204: ICE03: Invalid version string. (Be sure a language is specified in Language column); Table: File, Column: Version, Key(s): abacus.cnf Thanks in advance Swapna ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users "Legal Disclaimer: This electronic message and all contents contain information from Cybage Software Private Limited which may be privileged, confidential, or otherwise protected from disclosure. The information is intended to be for the addressee(s) only. If you are not an addressee, any disclosure, copy, distribution, or use of the contents of this message is strictly prohibited. If you have received this electronic message in error please notify the sender by reply e-mail to and destroy the original message and all copies. Cybage has taken every reasonable precaution to minimize the risk of malicious content in the mail, but is not liable for any damage you may sustain as a result of any malicious content in this e-mail. You should carry out your own malicious content checks before opening the e-mail or attachment." www.cybage.com ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users