Jump to content

@OSBuild For Windows 8.1 is wrong ?

Recommended Posts

I think this way it can be workaround until the bug is fixed. 


Global $OSBuild = 1

$OSBuild = FileGetVersion("user32.dll")

If (StringRegExp($OSBuild, "^(.*)\.(.+)\.(.+)\.(.*)$")) Then
    $OSBuild = StringRegExp($OSBuild, "^(.*)\.(.+)\.(.+)\.(.*)$", 1)
    $OSBuild = $OSBuild[2]
    $OSBuild = @OSBuild

MsgBox(64, @OSBuild, $OSBuild)
Edited by maxrealqnx
Link to comment
Share on other sites

That's not bug, it's how it should be.

But documentation for AutoIt should address it, if not.

The thing is AutoIt uses WinAPI function that is (or will be) deprecated very soon. The result get that way can't be guaranteed for future systems, meaning AutoIt will have to change.

In this particular case the manifest attached to the executable directs the output you get. MSDN however documents this, unlike AutoIt. Follow the link.




Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...