In the Product.wxs
file, add these:
<Directory Id="INSTALLFOLDER" Name="MyApp">
<!-- ... -->
<Directory Id="x86_dir" Name="x86" />
<Directory Id="x64_dir" Name="x64" />
</Directory>
And add these:
<Fragment>
<ComponentGroup Id="x86_files" Directory="x86">
<Component Id="SQLite_x86.Interop.dll" Guid="{GUID}">
<File Id="SQLite_x86.Interop.dll" Name="SQLite.Interop.dll" Source="$(var.MyApp_TargetDir)x86SQLite.Interop.dll" />
</Component>
</ComponentGroup>
</Fragment>
<Fragment>
<ComponentGroup Id="x64_files" Directory="x64">
<Component Id="SQLite_x64.Interop.dll" Guid="{GUID}">
<File Id="SQLite_x64.Interop.dll" Name="SQLite.Interop.dll" Source="$(var.MyApp_TargetDir)x64SQLite.Interop.dll" />
</Component>
</ComponentGroup>
</Fragment>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…