473,387 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Version information from EXEs, DLLs, etc?

Is there a nice set of .NET functions built into the framework to retrieve
file version information embedded in EXEs, DLLs, etc? I'm talking about the
strings such as Company, File Version, Copyright, Product Name, and so
on...which you normally see in the Version tab of an EXE's Properties dialog
box.

I used to do this with Win32's GetFileVersionInfo() C API.
Oct 18 '07 #1
3 1283
>Is there a nice set of .NET functions built into the framework to retrieve
file version information embedded in EXEs, DLLs, etc?
Yes, look at the FileVersionInfo class.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Oct 18 '07 #2
You can use the FileVersionInfo class in the System.Diagnostics
namespace.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Homer J. Simpson" <ro**@127.0.0.1wrote in message
news:eo**************@TK2MSFTNGP06.phx.gbl...
Is there a nice set of .NET functions built into the framework to retrieve
file version information embedded in EXEs, DLLs, etc? I'm talking about
the strings such as Company, File Version, Copyright, Product Name, and so
on...which you normally see in the Version tab of an EXE's Properties
dialog box.

I used to do this with Win32's GetFileVersionInfo() C API.


Oct 18 '07 #3
You can use the FileVersionInfo class in the System.Diagnostics namespace.

Exactly what I needed. Thanks.
Oct 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jon | last post by:
I have 3 VB.net executables that reference the same 3 VB.Net DLLs. How is the best way to distribute the EXEs without putting 3 copies of of DLL on a user's machine. I looked into Private...
6
by: seansan | last post by:
Hi, Does anyone know how to read the full access version number in visual basic? I need to know if the current program instance is SR-1 or SP-3, etc... I currently use: DB_DAO =...
0
by: Neil Sargent | last post by:
This is a general posting of how I fixed a problem created by using the Access 97 ODE Setup Wizard on a Windows XP machine. I hope it helps anyone who comes across the problem saves them the 3 days...
5
by: Charles Law | last post by:
I want to display the name and version of all assemblies (dlls?) used/required by my application in a Help | About box. Is there a way to do this? One of the problems I anticipate is that...
1
by: Greg | last post by:
Hi all, Currently, to be able to certify our product all dlls must have version numbers and product/company information. Is there a way to embed such information to the dlls that are produced by...
4
by: HarryH | last post by:
I am finding that the linker for a C++ application in VS 2005 is generating a manifest with old version #s for DLLs such as mfc80.dll. How do I make sure that the linker generates a manifest that...
5
by: MJB | last post by:
I have several dlls that have app.config files tied to them. When adding their primary output to a Setup project everything works fine, but only the app.config for the .exe gets added to the Setup...
3
by: Anthony LaMark | last post by:
Hi All, Whether in a Winform application (.exe) or a .Net assembly (.dll), is there a way to determine what version of the .net baseframework the run-time module (i.e. exe or dll) was loaded...
2
by: bob_jeffcoat | last post by:
Hello, Is there a free program out there that joins Dot Net Dlls and an Exe together into one Exe? I'd rather distribute my program as a single Exe. Thanks,
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.