Version take

  • Thread starter Thread starter Iwan Petrow
  • Start date Start date
I

Iwan Petrow

Hi,

I have a win form application and the deployment (setup files) is in a
shared directory in a LAN. I want every time the app starts to check
if the version of the app is the same as the version of the deployment.
I can take the version of the current app but how to take the version
from the deployment?

Or any others ideas?

Thanks.
 
Iwan,

See System.Diagnostics.FileVersionInfo

if (openFileDialog1.ShowDialog(this) == DialogResult.OK)
{
System.Diagnostics.FileVersionInfo fvi =
System.Diagnostics.FileVersionInfo.GetVersionInfo(openFileDialog1.FileName);
MessageBox.Show(this, fvi.FileVersion);
}


Dave
 
Back
Top