MSCOMCTL.OCX Windows Server 2012 中缺失

MSCOMCTL.OCX Missing in Windows Server 2012

我正在尝试将我的所有可执行文件从 Windows Server 2003 部署到 2012 R2。 当我 运行 其中一个 exe (VB6) 它抛出错误:

ERROR: 339 - Component 'MSCOMCTL.OCX' or one of its dependencies not correctly registered: a file is missing or invalid

我知道如何在 Windows 服务器上注册 MSCOMCTL.OCX。 但是我继续在 Windows Server 2003 中搜索这个 OCX,这个 exe 已经 运行 超过 5 年了,令我惊讶的是那里没有 MSCOMCTL.OCX。

那么 exe 运行 在没有 MSCOMCTL.OCX 的 Windows Server 2003 上如何运行良好,但在 Windows Server 2012 上却抛出错误?

您需要将此文件与您的应用程序一起发送。 Server 2012 R2 仍然支持它。您将在这里找到所有信息: https://msdn.microsoft.com/en-us/vstudio/ms788708.aspx

您在以下部分找到 MSCOMCTL.OCX:"Supported Runtime Files to Distribute with Your Application"