![](/img/trans.png)
[英]Wix - replacing seperate 32bit and 64-bit MSIs with one newer 32-bit MSI
[英]A hack to write to 32-bit directories from 64-bit MSI package in WiX
是否有任何解決方案可以將文件從WiX 工具集中的 64 位 MSI package 寫入 32 位目錄
眾所周知,64 位 MSI 軟件包無法寫入 32 位目錄。 所以我們需要單獨的 32 位和 64 位 MSI。
我的解決方案:
我想出了將文件從 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>
如您所見,這個想法是引用WindowsFolder然后引用SysWOW64 。 這樣我們的文件“textFile.txt”將被復制到System32和SysWOW64文件夾中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.