How to check the version of an application?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have an Install project in VB.NET. There are two versions of the same DLL
(say
xyz.dll) that exist on the dev machine and are packaged into the installer.

I need to determine the version of Application installed on the target
machine and decide which version of the DLL should be installed.
Eg. if the user is running ver 7.1, i need to install xyz.dll [1.0.0], else
if he running ver 7.2 of the app, xyz.dll[1.0.1] should be installed.

How can i include this logic into my installer package?
 
MessageBox.Show(Application.ProductVersion.ToString)

MessageBox.Show(Environment.Version.ToString)
 
Back
Top