Article ID: 167597 - Last Review: May 11, 2006 - Revision: 4.0 SAMPLE: GetVers.exe Specifies Component FileVersion and #VersionThis article was previously published under Q167597 SUMMARY
Update of components over the Web is usually controlled by the component's
file version. This file version can be specified either by the #Version in
the CODEBASE attribute of the <OBJECT> tag or the FileVersion keyword in the .inf file. Determining the file version can be confusing; if is not
specified correctly, it could cause the component to download incorrectly. If you do not have access to Microsoft Developer Studio or an environment
that is capable of opening file resources, you can use the file GetVers.exe to obtain the necessary version.
MORE INFORMATION
For the <OBJECT> tag, use the CODEBASE attribute to specify the file version as follows:
Update of components that are installed through an .inf file is controlled by the FileVersion keyword in the .inf file. For example, the following syntax controls the installation of Mfc42.dll for the Microsoft Visual C++ 4.2b control above: Mfc42.dll: reported - 4.21.7022 use - 4,21,0,7022 Msvcrt.dll: reported - 5.00.7022 use - 5,0,0,7022 Olepro32.dll: reported - 5.0.4055 use - 5,0,4055,1
GetVers.exe
(http://download.microsoft.com/download/ie4095/getvers/1/win98/en-us/getvers.exe)
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
This is the source code for the GetVer program:
REFERENCES
For additional information on the CODEBASE attribute, see the following article on the Microsoft Developer Network (MSDN):
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/codebase.asp
(http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/codebase.asp)
For additional information on how #Version works, see the "Managing Versions of a Component" article on MSDN:
http://msdn.microsoft.com/workshop/delivery/download/overview/managing.asp
(http://msdn.microsoft.com/workshop/delivery/download/overview/managing.asp)
For more information on how Internet component download works, see the following archived Microsoft Web Cast:
http://support.microsoft.com/servicedesks/webcasts/wc042500/wcblurb042500.asp
(http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fservicedesks%2fwebcasts%2fwc042500%2fwcblurb042500.asp)
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:http://msdn.microsoft.com/ie/
(http://msdn.microsoft.com/ie/)
http://support.microsoft.com/iep (http://support.microsoft.com/iep) APPLIES TO
| Article Translations
|

Back to the top
