Connecting Tech Pros Worldwide Forums | Help | Site Map

Version take

Iwan Petrow
Guest
 
Posts: n/a
#1: Nov 17 '05
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.


Lebesgue
Guest
 
Posts: n/a
#2: Nov 17 '05

re: Version take


Consider using ClickOnce deployment, this technology solves all such
problems plus much more.
Works only under .NET 2.0.

http://msdn.microsoft.com/smartclien...clickonce.aspx



"Iwan Petrow" <xxxxyz@abv.bg> wrote in message
news:1132215886.896983.50820@g44g2000cwa.googlegro ups.com...[color=blue]
> 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.
>[/color]


D. Yates
Guest
 
Posts: n/a
#3: Nov 17 '05

re: Version take


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

"Iwan Petrow" <xxxxyz@abv.bg> wrote in message
news:1132215886.896983.50820@g44g2000cwa.googlegro ups.com...[color=blue]
> 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.
>[/color]


Closed Thread