Results 1 to 3 of 3

Thread: [RESOLVED] [02/03] Sanity Check (OS Version Numbers)

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Resolved [RESOLVED] [02/03] Sanity Check (OS Version Numbers)

    Is Service Pack 2 represtented in the version number for windows using

    Environment.OSVersion.Version.ToString

    I can't find a good listing of specific version numbers and windows, and I am working on something that requires the Windows XP Firewall, and I don't even want to bother running the code if they don't have at least SP2 installed.


    I get 5.1.2600.0 when I call that code (but I don't have a non SP2 windows machine to run it against to check for a difference)

    I know 5.1 means XP, but does 2600 mean SP2? or does that show up on non patched and SP1 machines?

    If it does not indicate the service pack level, what can I use?

    This specific app is in .NET 2003.

  2. #2

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [02/03] Sanity Check (OS Version Numbers)

    I found some .NET 2005 code which I can use in 2003 since its an API

    http://support.microsoft.com/kb/304722/EN-US/

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [RESOLVED] [02/03] Sanity Check (OS Version Numbers)

    Oh the shame for not looking on VBF first.

    http://vbforums.com/showthread.php?t=434149
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width