Announcement

Collapse
No announcement yet.

Determining Windows Version

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Determining Windows Version

    I need to determine what version of Windows is in use, including service pack information.

    I am primarily concerned with NT4, although I assume it will be in the same location in all versions.

  • #2
    Re: Determining Windows Version

    Hi,

    You can look in this registry key for registry values containing Windows version information:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\

    or for Windows 9X machine:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\

    Certain registry values will contain build number for the current OS, where the values are stored has changed so you will have to make sure that you are reading in the correct values for each OS. Be sure to use Setup Factory's built-in variables for this: %IsWin95%, %IsWin98%, %IsWinNT4%, %IsWin2000%, %IsWinME%, and %IsWinXP%.

    mark.

    [This message has been edited by Mark (edited 12-18-2001).]
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment

    Working...
    X