Running .Net apps on different versions of Windows

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
 
K

kimiraikkonen

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
 
P

Pete

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
 

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