I have following component in installer
<Component Id="my.dll" Guid="*" Win64="no">
<File Id="my.dll" Name="my.dll" KeyPath="yes" ReadOnly="yes" DiskId="1" Source="$(var.TargetDir)/my.dll" />
</Component>
In visual studio configuration manager for solution platform x64 the installer project is set to x64.
When building x64, the build is still failing on this part, looking for my.dll although Win64 is set to "no".
In the wixproj I have manually added by copying the x86 section:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug</DefineConstants>
</PropertyGroup>
Did same for 'Release|x64'. and also tried removing following:
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
and also changing the x86 to x64 but this did not help.
Why is x64 build still regarding this line although Win64="no"?