HighTechTalks DotNet Forums  

Check if SP2 of windows is installed

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss Check if SP2 of windows is installed in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Hamed
 
Posts: n/a

Default Check if SP2 of windows is installed - 05-22-2006 , 03:36 AM






Hello

How can I check what is the Windows version and if it is Windows XP, is SP2
of Windows XP installed?

Regards
Hamed




Reply With Quote
  #2  
Old   
Eddie
 
Posts: n/a

Default Re: Check if SP2 of windows is installed - 05-26-2006 , 01:53 PM






Hamed wrote:
Quote:
Hello

How can I check what is the Windows version and if it is Windows XP, is SP2
of Windows XP installed?

Regards
Hamed



Environment.OSVersion.ToString();

returned

Microsoft Windows NT 5.1.2600 Service Pack 2

HTH

Eddie


Reply With Quote
  #3  
Old   
Hamed
 
Posts: n/a

Default Re: Check if SP2 of windows is installed - 05-27-2006 , 01:13 AM



Thanks Eddie. but I use .NET Framework 1.1.4

Your solution is in .NET Framework 2.0

Is there any solution for the version that I use?


"Eddie" <edob@home> wrote

Quote:
Hamed wrote:
Hello

How can I check what is the Windows version and if it is Windows XP, is
SP2
of Windows XP installed?

Regards
Hamed



Environment.OSVersion.ToString();

returned

Microsoft Windows NT 5.1.2600 Service Pack 2

HTH

Eddie



Reply With Quote
  #4  
Old   
sebastieng
 
Posts: n/a

Default Re: Check if SP2 of windows is installed - 05-27-2006 , 02:13 AM



Environment.OSVersion is manage also by Framework 1.1

"Hamed" wrote:

Quote:
Thanks Eddie. but I use .NET Framework 1.1.4

Your solution is in .NET Framework 2.0

Is there any solution for the version that I use?


"Eddie" <edob@home> wrote in message
news:eillA1OgGHA.4940 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Hamed wrote:
Hello

How can I check what is the Windows version and if it is Windows XP, is
SP2
of Windows XP installed?

Regards
Hamed



Environment.OSVersion.ToString();

returned

Microsoft Windows NT 5.1.2600 Service Pack 2

HTH

Eddie




Reply With Quote
  #5  
Old   
Hamed
 
Posts: n/a

Default Re: Check if SP2 of windows is installed - 05-27-2006 , 03:22 AM



Yes, but returnes "Microsoft Windows NT 5.1.2600.0" both SP1 and SP2 of XP


"sebastieng" <sebastieng73___PLEASEDELETE__ (AT) wanadoo (DOT) fr> wrote

Quote:
Environment.OSVersion is manage also by Framework 1.1

"Hamed" wrote:

Thanks Eddie. but I use .NET Framework 1.1.4

Your solution is in .NET Framework 2.0

Is there any solution for the version that I use?


"Eddie" <edob@home> wrote in message
news:eillA1OgGHA.4940 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Hamed wrote:
Hello

How can I check what is the Windows version and if it is Windows XP,
is
SP2
of Windows XP installed?

Regards
Hamed



Environment.OSVersion.ToString();

returned

Microsoft Windows NT 5.1.2600 Service Pack 2

HTH

Eddie






Reply With Quote
  #6  
Old   
sebastieng
 
Posts: n/a

Default Re: Check if SP2 of windows is installed - 05-27-2006 , 06:14 AM



K, sorry

Might compare version of %system path%\winver.exe file. I have no system
under SP1 under the hand to check if it's changing from one SP to another...

"Hamed" wrote:

Quote:
Yes, but returnes "Microsoft Windows NT 5.1.2600.0" both SP1 and SP2 of XP


"sebastieng" <sebastieng73___PLEASEDELETE__ (AT) wanadoo (DOT) fr> wrote in message
news:9CAF14F0-36B9-492A-886C-1EB7A4AEC503 (AT) microsoft (DOT) com...
Environment.OSVersion is manage also by Framework 1.1

"Hamed" wrote:

Thanks Eddie. but I use .NET Framework 1.1.4

Your solution is in .NET Framework 2.0

Is there any solution for the version that I use?


"Eddie" <edob@home> wrote in message
news:eillA1OgGHA.4940 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Hamed wrote:
Hello

How can I check what is the Windows version and if it is Windows XP,
is
SP2
of Windows XP installed?

Regards
Hamed



Environment.OSVersion.ToString();

returned

Microsoft Windows NT 5.1.2600 Service Pack 2

HTH

Eddie







Reply With Quote
  #7  
Old   
Andrei Pociu
 
Posts: n/a

Default Re: Check if SP2 of windows is installed - 05-28-2006 , 05:12 PM



This should do it:

http://support.microsoft.com/default...b;EN-US;304721

Best Regards,
Andrei Pociu
http://www.geekpedia.com

"sebastieng" <sebastieng73___PLEASEDELETE__ (AT) wanadoo (DOT) fr> wrote

Quote:
K, sorry

Might compare version of %system path%\winver.exe file. I have no system
under SP1 under the hand to check if it's changing from one SP to
another...

"Hamed" wrote:

Yes, but returnes "Microsoft Windows NT 5.1.2600.0" both SP1 and SP2 of
XP


"sebastieng" <sebastieng73___PLEASEDELETE__ (AT) wanadoo (DOT) fr> wrote in message
news:9CAF14F0-36B9-492A-886C-1EB7A4AEC503 (AT) microsoft (DOT) com...
Environment.OSVersion is manage also by Framework 1.1

"Hamed" wrote:

Thanks Eddie. but I use .NET Framework 1.1.4

Your solution is in .NET Framework 2.0

Is there any solution for the version that I use?


"Eddie" <edob@home> wrote in message
news:eillA1OgGHA.4940 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Hamed wrote:
Hello

How can I check what is the Windows version and if it is Windows
XP,
is
SP2
of Windows XP installed?

Regards
Hamed



Environment.OSVersion.ToString();

returned

Microsoft Windows NT 5.1.2600 Service Pack 2

HTH

Eddie









Reply With Quote
  #8  
Old   
Hamed
 
Posts: n/a

Default Re: Check if SP2 of windows is installed - 05-28-2006 , 10:43 PM



Thanks, I'll try it.


"Andrei Pociu" <andrei_pociu (AT) geekpedia (DOT) com> wrote

Quote:
This should do it:

http://support.microsoft.com/default...b;EN-US;304721

Best Regards,
Andrei Pociu
http://www.geekpedia.com

"sebastieng" <sebastieng73___PLEASEDELETE__ (AT) wanadoo (DOT) fr> wrote in message
news:84D29ACB-888A-495B-88DA-BE428A80C4F1 (AT) microsoft (DOT) com...
K, sorry

Might compare version of %system path%\winver.exe file. I have no system
under SP1 under the hand to check if it's changing from one SP to
another...

"Hamed" wrote:

Yes, but returnes "Microsoft Windows NT 5.1.2600.0" both SP1 and SP2 of
XP


"sebastieng" <sebastieng73___PLEASEDELETE__ (AT) wanadoo (DOT) fr> wrote in message
news:9CAF14F0-36B9-492A-886C-1EB7A4AEC503 (AT) microsoft (DOT) com...
Environment.OSVersion is manage also by Framework 1.1

"Hamed" wrote:

Thanks Eddie. but I use .NET Framework 1.1.4

Your solution is in .NET Framework 2.0

Is there any solution for the version that I use?


"Eddie" <edob@home> wrote in message
news:eillA1OgGHA.4940 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Hamed wrote:
Hello

How can I check what is the Windows version and if it is Windows
XP,
is
SP2
of Windows XP installed?

Regards
Hamed



Environment.OSVersion.ToString();

returned

Microsoft Windows NT 5.1.2600 Service Pack 2

HTH

Eddie











Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.