Windows 2000 SP for deployment

I am creating a setup project (VS 2003) for a Windows application.

I have to make sure that the application will be installed on Windows 2000 ONLY if Service Pack 4 is installed on the target machine.

So, I am using a Launch Condition Editor and check for the VersionNT property...     well, at least I tried to do that. But I have no idea what value I should be comparing it to.

Could someone give me a link to an article which has a list of all VersionNT property values for NT, 2000, and XP, please I need to know those values for SP3 and SP4 for Win2K...

Thanks a lot!




Answer this question

Windows 2000 SP for deployment

  • ElvenWong

    Registry key:

    HKLM\Software\Microsoft\Windows NT\CurrentVersion

     

    take a look at the entries there, one of which is the CSDVersion key stating the Service Pack installed, the value would be like:

    Service Pack x

    where x is the version of the service pack.

     

    http://blogs.msdn.com/ejarvi/archive/2004/06/08/151162.aspx

     

    hope this helps you in some way!



  • Tang Meister

    no worries, glad I could help

  • vbnetdiscuss

    Windows 2000 is Version 5.0

    Windows XP is version if 5.1

    Windows Server 2003 is version is 5.2

     

    as for the SP....I'll get back to you on that!



  • David Törnquist

    This is just great!

    THANK YOU VERY MUCH, ahmedilyas !!!

    In case someone else is searching for the answer for the same problem, here's what I did:

    [So far, I tested on the machine running XP SP1, and it worked out just fine.]

    1. In properties tab for Search for RegistryEntry1 in the Launch Condition Editor, I set Property to WINDOWSNTSP (just a name, it can be different...), RegKey to Software\Microsoft\Windows NT\CurrentVersion, and Value to CSDVERSION

    2. In properties tab for Condition1 in the Launch Condition Editor, I set Condition to WINDOWSNTSP >= "Service Pack 2", and Message to You must have Service Pack 2 or higher to run this program (it's a custom message, of course).

    3. On the machine running XP SP1, it fails. If I change Condition to WINDOWSNTSP >= "Service Pack 1", it installs as expected.

    All I need to do now is combine this kind of condition with a check for the CurrentVersion (... = 5.0, - for Win2K), and that's it.

    Thanks a lot!



  • Windows 2000 SP for deployment