473,588 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.NET application Version

I have a VB.NET application that is deployed to an end user. I would like to
display on screen the application version of the application so that I know
the end user id using the latest version of our software.

How do you access the property of the application version?
Aug 23 '06 #1
5 15498

With the assumption that this is a Windows Form application.... Take a look
at System.Windows. Forms.Applicati on.ProductVersi on.

Michael

"Lyners" wrote:
I have a VB.NET application that is deployed to an end user. I would like to
display on screen the application version of the application so that I know
the end user id using the latest version of our software.

How do you access the property of the application version?
Aug 23 '06 #2
No, I don't think that is what I am looking for. What I wanted was the
Version that a developer can set when a setup package is created (i.e. 1.0.0
or 1.0.1). These version numbers seem to be some kind of internal version
number by file.

"Michael" wrote:
>
With the assumption that this is a Windows Form application.... Take a look
at System.Windows. Forms.Applicati on.ProductVersi on.

Michael

"Lyners" wrote:
I have a VB.NET application that is deployed to an end user. I would like to
display on screen the application version of the application so that I know
the end user id using the latest version of our software.

How do you access the property of the application version?
Aug 23 '06 #3
Im in VB2003

try this

Function VersionNumber() As String
Dim VersionNo As System.Version =
System.Reflecti on.Assembly.Get ExecutingAssemb ly().GetName(). Version

Return VersionNo.Major .ToString & "." & _
VersionNo.Minor .ToString & "." & _
VersionNo.Build .ToString & "." & _
VersionNo.Revis ion.ToString
End Function
' if you double click on the code of the AssemlbyInfo.vb you should see a
line on the bottom that looks similar to this;
<Assembly: AssemblyVersion ("1.00.0.0") >

Is that the version you are looking for?

Miro
"Lyners" <Ly****@discuss ions.microsoft. comwrote in message
news:AF******** *************** ***********@mic rosoft.com...
No, I don't think that is what I am looking for. What I wanted was the
Version that a developer can set when a setup package is created (i.e.
1.0.0
or 1.0.1). These version numbers seem to be some kind of internal version
number by file.

"Michael" wrote:
>>
With the assumption that this is a Windows Form application.... Take a
look
at System.Windows. Forms.Applicati on.ProductVersi on.

Michael

"Lyners" wrote:
I have a VB.NET application that is deployed to an end user. I would
like to
display on screen the application version of the application so that I
know
the end user id using the latest version of our software.

How do you access the property of the application version?

Aug 23 '06 #4
Now I think I understand. For displaying a version number, a developer would
use the Assembly.vb to increment the version number. I was trying to use the
setup version number, but I believe that is unaccessable during execution
because that version umber is only used on installs. Correct?

I have it working now, once I updated the assembly.vb.

"Miro" wrote:
Im in VB2003

try this

Function VersionNumber() As String
Dim VersionNo As System.Version =
System.Reflecti on.Assembly.Get ExecutingAssemb ly().GetName(). Version

Return VersionNo.Major .ToString & "." & _
VersionNo.Minor .ToString & "." & _
VersionNo.Build .ToString & "." & _
VersionNo.Revis ion.ToString
End Function
' if you double click on the code of the AssemlbyInfo.vb you should see a
line on the bottom that looks similar to this;
<Assembly: AssemblyVersion ("1.00.0.0") >

Is that the version you are looking for?

Miro
"Lyners" <Ly****@discuss ions.microsoft. comwrote in message
news:AF******** *************** ***********@mic rosoft.com...
No, I don't think that is what I am looking for. What I wanted was the
Version that a developer can set when a setup package is created (i.e.
1.0.0
or 1.0.1). These version numbers seem to be some kind of internal version
number by file.

"Michael" wrote:
>
With the assumption that this is a Windows Form application.... Take a
look
at System.Windows. Forms.Applicati on.ProductVersi on.

Michael

"Lyners" wrote:

I have a VB.NET application that is deployed to an end user. I would
like to
display on screen the application version of the application so that I
know
the end user id using the latest version of our software.

How do you access the property of the application version?


Aug 23 '06 #5

Sorry that my first crack at it didn't give you the information that you
were looking for. :) There are a couple of things that you should keep in
mind.

Version of Assembly: <Assembly: AssemblyVersion ("1.00.0.0") >
Version of Product: <Assembly: AssemblyInforma tionalVersion(" 1.0")>
File Version (of DLL): <Assembly: AssemblyFileVer sion("1.0.*")>

The ProductVersion that I showed returns the AssemblyInforma tionalVersion
string. By default AssemblyInforma tionVersion and AssemblyFileVer sion are
not included in the AssemblyInfo file and they default to the value of
AssemblyVersion so it would have returned the same value. You can read more
about them in the MSDN help, but Miro's answer will work for you to! :)

Michael

"Lyners" wrote:
Now I think I understand. For displaying a version number, a developer would
use the Assembly.vb to increment the version number. I was trying to use the
setup version number, but I believe that is unaccessable during execution
because that version umber is only used on installs. Correct?

I have it working now, once I updated the assembly.vb.

"Miro" wrote:
Im in VB2003

try this

Function VersionNumber() As String
Dim VersionNo As System.Version =
System.Reflecti on.Assembly.Get ExecutingAssemb ly().GetName(). Version

Return VersionNo.Major .ToString & "." & _
VersionNo.Minor .ToString & "." & _
VersionNo.Build .ToString & "." & _
VersionNo.Revis ion.ToString
End Function
' if you double click on the code of the AssemlbyInfo.vb you should see a
line on the bottom that looks similar to this;
<Assembly: AssemblyVersion ("1.00.0.0") >

Is that the version you are looking for?

Miro
"Lyners" <Ly****@discuss ions.microsoft. comwrote in message
news:AF******** *************** ***********@mic rosoft.com...
No, I don't think that is what I am looking for. What I wanted was the
Version that a developer can set when a setup package is created (i.e.
1.0.0
or 1.0.1). These version numbers seem to be some kind of internal version
number by file.
>
"Michael" wrote:
>
>>
>With the assumption that this is a Windows Form application.... Take a
>look
>at System.Windows. Forms.Applicati on.ProductVersi on.
>>
>Michael
>>
>"Lyners" wrote:
>>
I have a VB.NET application that is deployed to an end user. I would
like to
display on screen the application version of the application so that I
know
the end user id using the latest version of our software.
>
How do you access the property of the application version?
Aug 24 '06 #6

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

Similar topics

3
1183
by: max | last post by:
Hi, How do I control the applcation version?? Change the Major, Minor, build and revision numbers? thanks, --max
5
7674
by: Bob | last post by:
Application.Version provides the version of Access being used eg 10 for Access 2000. I use some code like: Set appAccess = CreateObject("Access.Application.8") in Access 97 to open a new instance of Access so that I can create an archive of the current database. (That took a bit of searching to work it out but it is working fine in Access 97.....)
2
9121
by: PawelR | last post by:
Hello Group, I've question: How set number of version my apps? thx PawelR
3
1566
by: Michael Kellogg | last post by:
At the beginning of program execution, I want to compare the executing version of the program against the network copy to see if there's been an update. In the "Properties" window of an EXE, I can see the version there, but cannot figure out how to get the version out programmatically. Anyone know how I can do this? Or am I better off just comparing versus the creation date of a file or something? -- Michael
12
4119
by: joanne | last post by:
how to tell application version after i installed it at client side? i did make the version and product code while doing the packaging and deployment. Thanks a lot.
6
4477
by: Support | last post by:
My vb.net 2.0 application has a publish version of major = 1, Minor =0, Build = 2 and Revision = 11 with Automatically increment selected. How do I programatically extract that information. Thanks Terry
1
1393
by: Bipin Mistry | last post by:
hi all, Please reply as I am new to VC .Net GUI Can any one please tell me from where I can set Application version in VC .Net environment. Please note that I am creating Exe & DLL where there is no resource
2
1525
by: John | last post by:
Hi I am using the application version using Application.ProductVersion.ToString. The problem is that the version number returned is always 1.0.0. and never changes despite many changes and rebuilds of app. How can I make it auto change? Thanks
1
1269
by: imageguy | last post by:
We are trying to implement a system that checks the version of the application against a version number stored in the database. We don't want the app and the db don't become out of sync. We have tried setting a __version__ variable in the top most module, however, it seems that this is not accessible for the modules that are subsequently imported. There are a several locations in the app where we want to do the version check, but we...
0
7929
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7860
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8354
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8223
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6634
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5398
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3847
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2371
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.