When I run the below command from the command line for the WIx installer after migrated from version 2.0 to 4.0
E:\Code\PCPE\builder>ant -v -f Build.xml -Dlabel =.001 install
I am getting the below error:
error CNDL0004: The file element contains an unexpected attribute "src"
I am seeing the error in EMR_COMMON.wxs file in line no 4.
- Fragment>
- DirectoryRef Id="INSTALLDIR">
- Component Id="component_COMMON" Guid="" DiskId="1">
- File Id="file0_COMMON" Name="apcrun.exe" src="E:\Code\apcrun.exe"/>
I am thinking that "src" attribute is deprecated and it should be replaced with some other attribute.
But here i can't directly replace the "src"
attribute in EMR_COMMON.wxs
file bcz it is generating from "Build.xml"
.
So what are the attributes i need to change in "Build.xml"
file to get the appropriate attribute inplace of "src"
in "EMR_COMMON.wxs"
file?
src
is deprecated in favor ofSource
for File Elements (towards bottom). As toBuild.xml
, is that an Ant build script? Are you using Visual Studio, Eclipse, or something else? – Stein Åsmul