[英]A hack to write to 32-bit directories from 64-bit MSI package in WiX
Is there any solution to write files to 32-bit directories from 64-bit MSI package in WiX-toolset是否有任何解决方案可以将文件从WiX 工具集中的 64 位 MSI package 写入 32 位目录
As you all know that 64-bit MSI packages cannot write to 32-bit directories.众所周知,64 位 MSI 软件包无法写入 32 位目录。 so we need separate MSIs for 32-bit and 64-bit.
所以我们需要单独的 32 位和 64 位 MSI。
My solution:我的解决方案:
I came up with hack to copy files to 32-bit directories from 64-bit MSI package:我想出了将文件从 64 位 MSI package 复制到 32 位目录的技巧:
<!--"System64Folder"-->
<Directory Id="System64Folder">
<Component Id="text1_comp" Guid="PUTYOURGUIDHERE" Win64="yes">
<File Source=".\SetupFiles\textFile.txt" Id="textFile1" KeyPath="yes" />
</Component>
</Directory>
<!--"System32Folder"-->
<Directory Id="WindowsFolder">
<Directory Id="SystemFolder_x86" Name="SysWOW64">
<Component Id="text2_comp" Guid="PUTYOURGUIDHERE" Win64="yes">
<File Source=".\SetupFiles\textFile.txt" Id="textFile2" KeyPath="yes" />
</Component>
</Directory>
</Directory>
As you can see, the idea is to reference the WindowsFolder then reference SysWOW64 .如您所见,这个想法是引用WindowsFolder然后引用SysWOW64 。 This way our file "textFile.txt" will copied to both System32 and SysWOW64 folders.
这样我们的文件“textFile.txt”将被复制到System32和SysWOW64文件夹中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.