Reply to Thread

Post a reply to the thread: Safe way to check for XP service pack

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 11-27-2006, 06:58 AM
    NewsArchive

    Re: Safe way to check for XP service pack

    <G> Thank you

    Friedrich
  • 11-27-2006, 06:51 AM
    sphair

    Re: Safe way to check for XP service pack

    Yes, it worked. Didn't see that reply before I had sent the answer You're too fast Friedrich
  • 11-27-2006, 06:51 AM
    linder

    Re: Safe way to check for XP service pack

    My second idea should work because it returns the language used to compile that Windows version
  • 11-27-2006, 06:45 AM
    sphair

    Re: Safe way to check for XP service pack

    This returns 1044 for me, which is according to your manual: Norwegian (Bokmal) 1044

    Now, my current language setting in Windows IS 1044 Norwegian, but my Windows installation is in English. And this is what I need to find out..
  • 11-27-2006, 06:41 AM
    linder

    Re: Safe way to check for XP service pack

    BTW, another cool way is to use Get File Information (File Language) on kernel32.dll ;-)

    For example:

    Set Variable %OSLANGUAGE% to ScriptItem->Get File Information(File Language (Resource)) of file "%SYS32DIR%\kernel32.dll"
  • 11-27-2006, 06:36 AM
    linder

    Re: Safe way to check for XP service pack

    Hello,

    Yes, please try the %CURLNG% variable. It returns the currently active Windows language ID.

    Does this help?
  • 11-27-2006, 06:24 AM
    sphair

    Re: Safe way to check for XP service pack

    Thanks!

    Is it also possible to get the language of the Windows install? (Not current selected language, but which language version of the OS was installed)
  • 11-27-2006, 06:13 AM
    linder

    Re: Safe way to check for XP service pack

    Hello,

    You have several options here. The easiest one (IMO) is to check the %WINVER% variable value. If the value is $WINXP$ (see Common Definitions.sbi) then the machine is running XP.

    So you can use:

    If %WINVER% Equals "$WINXP$" Then
    you are running xp
    End

    Does this help?
  • 11-27-2006, 06:08 AM
    sphair

    Safe way to check for XP service pack

    I need to figure out if user is on Windows XP, and which service pack.

    I use Get System Information(Service Pack Number) to get the service pack number, but I'm unsure what to use to tell if user is on a Window XP OS ?

Posting Permissions

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