Running .Net apps on different versions of Windows

  • Thread starter Thread starter Pete
  • Start date Start date
P

Pete

I have a .Net application (VB, VS 2005, FX 2) running in more than one
country. As part of the product registration process, some information on the
computer is collected and sent to a web service; this includes the operating
system which is obtained using the My.Computer.Info.OSFullName function. For
some machines we get "Microsoft Windows XP Professional" and for others
"Microsoft Windows NT 5.1.2600 Service Pack 2". I understand these are
essentially the same product but the fact that they have a different set of
environment variables (at least for name) suggests that there are some
differences. Is it safe to
assume that an app running on either of these installations of Windows will
behave the same?

Pete
 
I have a .Net application (VB, VS 2005, FX 2) running in more than one
country. As part of the product registration process, some information onthe
computer is collected and sent to a web service; this includes the operating
system which is obtained using the My.Computer.Info.OSFullName function. For
some machines we get "Microsoft Windows XP Professional" and for others
"Microsoft Windows NT 5.1.2600 Service Pack 2". I understand these are
essentially the same product but the fact that they have a different set of
environment variables (at least for name) suggests that there are some
differences. Is it safe to
assume that an app running on either of these installations of Windows will
behave the same?

Pete

Hi,
On my XP SP2 computer, "Environment.OSVersion.ToString" returns
"Microsoft Windows NT 5.1.2600 Service Pack 2" and
"My.Computer.Info.OSFullName" returns "Microsoft Windows XP
Professional". In my idea first one is more reliable because it
provides service pack version plus platform identifier. Thus it would
be safer to compare more detail in each PC.

So if you assume both as the same, there would be a trouble or
difference about exact OS version number based on service pack if
your software behaves different on different service pack-powered XPs.

Hope this helps,

Onur Güzel
 
thanks

kimiraikkonen said:
Hi,
On my XP SP2 computer, "Environment.OSVersion.ToString" returns
"Microsoft Windows NT 5.1.2600 Service Pack 2" and
"My.Computer.Info.OSFullName" returns "Microsoft Windows XP
Professional". In my idea first one is more reliable because it
provides service pack version plus platform identifier. Thus it would
be safer to compare more detail in each PC.

So if you assume both as the same, there would be a trouble or
difference about exact OS version number based on service pack if
your software behaves different on different service pack-powered XPs.

Hope this helps,

Onur Güzel
 
Back
Top