在WiX中从64位MSI包写入32位目录的黑客
WiX工具集中的64位MSI包中是否有将文件写入32位目录的解决方案,正如大家所知,64位MSI包无法写入32位目录。所以我们需要32位和64位的独立MSI 我的解决方案: 我想出了从64位MSI软件包将文件复制到32位目录的方法:在WiX中从64位MSI包写入32位目录的黑客,wix,windows-installer,Wix,Windows Installer,WiX工具集中的64位MSI包中是否有将文件写入32位目录的解决方案,正如大家所知,64位MSI包无法写入32位目录。所以我们需要32位和64位的独立MSI 我的解决方案: 我想出了从64位MSI软件包将文件复制到32位目录的方法: <!--"System64Folder"--> <Directory Id="System64Folder"> <Component
<!--"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>
如您所见,我们的想法是引用WindowsFolder,然后引用SysWOW64。
这样,我们的文件“textFile.txt”将同时复制到System32和SysWOW64文件夹中。64位软件包可以写入32位目录。反之亦然。我想从64位软件包将文件写入SystemFolder,你能提供一个代码示例吗?