如何解决此问题:版本 "not marked" 显示在 ODBC 数据源管理员的 "Driver" 选项卡中

how to fix this issue: version "not marked" showing in "Driver" tab of ODBC Data source administrator

我在 2017 年使用 Visual studio 安装程序为 ODBC 驱动程序创建了 MSI 安装程序(它是在 2010 年创建的)。我能够成功安装驱动程序,在安装过程中创建注册表项,但在 ODBC 数据源的 "Driver" 选项卡中它显示 "Not Marked" 版本和公司。但是在控制面板中,它确实显示版本和公司名称。我尝试过手动注册表项,但对我不起作用。我是管理员用户,所以没有权限问题。

Summary: The driver file must have proper version information. Ensure the version is there for the file as appropriate, in this case by using a VERSIONINFO resource added via a resource file (.rc).


ODBCCONF.EXE:工具ODBCCONF.EXE can apparently be used to register ODBC drivers (sample)。 By the way, do your drivers files have proper Product Version and File Version? (as in the files themselves, go to file properties)。不确定这是否重要。

PowerShell cmdlets:似乎正在删除 ODBCCONF.EXE 工具来自 Windows 很快(来自 Windows 数据访问组件)。它将被 PowerShell CmdLets 取代:Windows Data Access Components (Windows DAC) cmdlets.


Registry Locations:仅作记录,有几个注册表位置:

  • 64 位HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
  • 32 位HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\ODBC

部分链接: