VS_VERSION_INFO

VS_VERSION_INFO
在IDE中编辑VS_VERSION_INFO,有些选项不知道含义. 有些选项含义相近,不知道区别.
现在代码提交前要设置代码版本号,
FileVersion, ProductName的区别?
PrivateBuild, SpecialBuild的区别?
读取⽂件版本号的实验,整理过. 现在到了更好的资料:
在codeproject上搜索'VS_VERSION_INFO', 有vside⾃动增加版本号的例⼦, 这个实验要做⼀下.
<2010_1223>
这个demo在XpSp3上运⾏不过, 以这个程序做原型,做个⼯具来查看⽂件的版本信息, UI要⽐原来的好看.
⽤这个⼯具来查看发⾏的可执⾏⽂件,可以把漏掉的版本选项检查出来. 从⽽修正原来的exe的rc信息. 便于从exe来查⽂件的源码控制对应的版本.
看了⼀些Demo, 最后都调⽤的是MS SDK 中的Version API.
ms-help://MS.VSCC.v90/MS./winui/winui/windowsuserinterface/resources/versioninformation.htm
msinfo<2010_1224>
⼜了些资料,整合了⼀个PE⽂件版本信息查询⼯具.UI做的很漂亮.
能查询的版本信息:
运⾏效果图:
⼿⼯在IDE中填写Vs_VERSION_INFO, 各项含义如下:
String Meaning
Comments The Value member contains any additional information that should be displayed for diagnostic purposes. This string can be an arbitrary length.
CompanyName The Value member identifies the company that produced the file. For example, "Micr
osoft Corporation" or "Standard Microsystems Corporation, Inc."
FileDescription The Value member describes the file in such a way that it can be presented to users. This string may be presented in a list box when the user is choosing files to install. For example, "Keyboard driver for AT-style keyboards" or "Microsoft Word for Windows".
FileVersion The Value member identifies the version of this file. For example, Value could be "3.00A" or "5.00.RC2".
InternalName The Value member identifies the file's internal name, if one exists. For example, this string could contain the module name for a dynamic-link library (DLL), a virtual device name for a Windows virtual device, or a device name for an MS-DOS device driver.
LegalCopyright The Value member describes all copyright notices, trademarks, and registered trademarks that apply to the file. This should include the full text of all notices, legal symbols, copyright dates, trademark numbers, and so on. In English, this string should be in the format "Copyright Microsoft Corp. 1990–1994".
LegalTrademarks The Value member describes all trademarks and registered trademarks that apply t
o the file. This should include the full text of all notices, legal symbols, trademark numbers, and so on. In English, this string should be in the format "Windows is a trademark of Microsoft Corporation".
OriginalFilename The Value member identifies the original name of the file, not including a path. This enables an application to determine whether a file has been renamed by a user. This name may not be MS-DOS 8.3-format if the file is specific to a non-FAT file system.
PrivateBuild The Value member describes by whom, where, and why this private version of the file was built. This string should only be present if the VS_FF_PRIVATEBUILD flag is set in the dwFileFlags member of the structure. For
PrivateBuild only be present if the VS_FF_PRIVATEBUILD flag is set in the dwFileFlags member of the structure. For
example,Value could be "Built by OSCAR on /OSCAR2".
ProductName The Value member identifies the name of the product with which this file is distributed. For example, this string could be "Microsoft Windows".
ProductVersion The Value member identifies the version of the product with which this file is distribut
ed. For example, Value could be "3.00A" or "5.00.RC2".
SpecialBuild The Value member describes how this version of the file differs from the normal version. This entry should only be present if the VS_FF_SPECIALBUILD flag is set in the dwFileFlags member of the VS_FIXEDFILEINFO structure. For example, Valuecould be "Private build for Olivetti solving mouse problems on M250 and M250E computers".

本文发布于:2024-09-24 13:13:26,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/3/380565.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:版本号   选项   版本   代码
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议