Jump to content

Recommended Posts

Posted

Hi!

Knows somebody the returned value under XP / Vista of @OSServicePack in case of no SP is installed?

E. g. somethin like "Service Pack 0"?

Greets,

-supersonic.

Posted (edited)

I found these 2 threads :

http://www.autoitscript.com/forum/index.ph...l=OSServicePack

http://www.autoitscript.com/forum/index.ph...l=OSServicePack

Then I checked the GetVersionEx API and found this :

http://msdn.microsoft.com/en-us/library/ms724833(VS.85).aspx

szCSDVersion

A null-terminated string, such as "Service Pack 3", that indicates the latest Service Pack installed on the system. If no Service Pack has been installed, the string is empty.

So if the Autoit function is just a wrapper for that API, it will return an empty string for no service pack.

Someone should test it with the Win7 beta/rc :)

Edited by Inverted

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...