是否可以在同一个 x86.wixlib 或 difxapp_x64.wixlib "noreferrer">WiX 设置以在 32 位和 64 位计算机上安装驱动程序?
背景是我们的设置需要是 32 位的,无论目标平台如何(它是一个使用 32 位 COM 组件的 .NET 应用程序,所以我们 必须将 .Net 程序集构建为 x86)。
所以最后MSI源文件没有什么区别,除了64位机器需要difxapp_x64.wixlib才能正确安装驱动程序,而且似乎我仍然需要创建两个单独的32位机器适用于 32/64 位平台的位 MSI 文件。看起来可以吗?
Is it possible to include difxapp_x86.wixlib or difxapp_x64.wixlib in same WiX setup to install a driver in both 32-bit and 64-bit machines?
Background is that we have a setup which needs to be 32-bit regardless of the target platform (it's a .NET application which uses 32-bit COM components, so we must build .Net assemblies as x86).
So at the end there is no difference in the MSI source files, except that 64-bit machines require difxapp_x64.wixlib to install the driver properly, and it seems like I still need to create two separate 32-bit MSI files for 32/64-bit platforms. Does that seem ok?
发布评论
评论(1)
不,这是不可能的:如果您的所有组件都是 32 位,您可以使用单个 MSI。但是您有 x64 组件(驱动程序),并且 DifxApp 对它们的 32 位和 64 位自定义操作使用相同的 id,因此它们不能同时存在于同一个 .msi 包中。
No, it's not possible: If all your components were 32-bit, you could use a single MSI. But you have x64 components (the drivers) and DifxApp uses the same ids for their 32-bit and 64-bit custom actions, so they can't both co-exist in the same .msi package.