基于 WIX 的安装程序如何为 32 位和 64 位 Windows 操作系统进行 COM 注册? [英] How can WIX based installers do COM registration for both 32 and 64 bit Windows OSes?
问题描述
我有一个长期存在的安装程序,它使用 RegistryValue 来设置 .Net COM 服务器.安装程序是 32 位的.我希望也为 64 位操作系统设置注册表设置.我的研究表明,为此我需要一个单独的 64 位安装程序.好吧,我怎么能有一个引导程序来检测操作系统并调用正确的 32 位或 64 位 .msi?
I have a long lived installer which is using RegistryValue to setup a .Net COM server. The installer is 32 bit. I would like to have the registry settings also set for 64 bit OSes. My research shows that I need to have a separate 64 bit installer for this purpose. Fine how can I then have a bootstrapper which detects the OS and invokes the correct 32 or 64 bit .msi?
推荐答案
您需要自己编写引导程序.
You would need to write the bootstrapper yourself.
WiX 不支持混合的 32/64 位程序包,因为 Windows Installer 不支持它们.但是,一些商业工具使用自定义引导程序和 2 个 MSI 文件来处理混合安装程序.
WiX doesn't support mixed 32/64-bit packages because Windows Installer doesn't support them. However, some commercial tools use a custom bootstrapper and 2 MSI files to handle a mixed installer.
这篇关于基于 WIX 的安装程序如何为 32 位和 64 位 Windows 操作系统进行 COM 注册?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!