×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

About EXE version, again!

About EXE version, again!

About EXE version, again!

(OP)
Colleagues,
This is 3rd time I'm posting this question because I haven't gotten any response to my previous two posts here. So, here I go again:
Code:

CODE

====================================================================================================================================
Private Sub frmASCII_Text_Search_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'====================================================================================================================================
' Purpose       : Initializes Form and its components.
' Description   : Initializes Search in Dir entry box with Program's Start Dir;
'						Fills out the File Types ListBox;
' Side effects  : Shan't be any.
' Notes         : 1. Application-specific.
'                 2. Complies with .NET Framework ver. 1.1 and higher.
' Author        : Ilya I. Rabyy
' Revisions     : by Ilya on 2022-01-25 – started 1st draft.
'						by Ilya on 2022-02-17 – completed 1st draft, EXE was compiled.
'						by Ilya on 2024-04-27 to display the EXE version on the Form's title bar.
'====================================================================================================================================
txtSrcDir.Text = gsStartDir

Dim lnExtCnt As Int16 = gaFileTypes.Length() - 1

For iPtr As Int16 = 0 To lnExtCnt
	Me.lstExtensions.Items.Add(gaFileTypes(iPtr))
Next

Me.txtSrcDir.Text = gsLastSrcDir
'************************************************************************************************************************************
'******************* Next code was added by Ilya on 2024-04-27 to display the EXE version on the Form's title bar *******************
'************************************************************************************************************************************
Me.Text = Me.Text & " ver. " & Application.ProductVersion
'************************************************************************************************************************************
'******************** End of code added by Ilya on 2024-04-27 to display the EXE version on the Form's title bar ********************
'************************************************************************************************************************************

End Sub
'==================================================================================================================================== 

Here's the application's publishing page (version part):



I, then, run the Publisher - which created setup kit, ran Setup.EXE, launched app's EXE and...
... same version1.0.0.0!



What am I missing or doing wrong?
Please advise!

Regards,

Ilya

RE: About EXE version, again!

It is because Application.ProductVersion does not return the Publish version.

Try

CODE -->

Imports System.Deployment.Application

If ApplicationDeployment.IsNetworkDeployed Then
   Me.Text= ApplicationDeployment.CurrentDeployment.CurrentVersion
Else
   me.Text = Application.ProductVersion
End If 

RE: About EXE version, again!

(OP)
This works!
Thank you!

Regards,

Ilya

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close