多部分 Windows 安装程序版本号

Multi-part Windows installer version numbers

我注意到 Windows 上安装的某些程序的版本号超过三个。我使用的安装程序创建软件供应商在他们的支持论坛中声称 Windows 安装程序仅使用三个数字(如 major.minor.patch)。

我的问题是,这些其他安装程序如何设置不同的格式? 有些甚至在其中嵌入了相当古怪的类似日期的值。

DisplayVersion 卸载条目只是一个字符串值,可以设置为安装程序希望的任何值(特别是如果它不是基于 MSI 的安装程序)。 Windows 除了向用户显示之外,它本身不会将此字符串用于任何其他用途。

MSDN 确实说 DisplayVersion 是 "Derived from ProductVersion property",但这当然只适用于 MSI 安装程序。

ProductVersion 的文档声称语法是 major.minor.build 但同一页面还说:

Note that Windows Installer uses only the first three fields of the product version. If you include a fourth field in your product version, the installer ignores the fourth field.