How to check the version of an application?

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?
 
N

Newbie Coder

MessageBox.Show(Application.ProductVersion.ToString)

MessageBox.Show(Environment.Version.ToString)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top