Jump to content
Sign in to follow this  
maxrealqnx

@OSBuild For Windows 8.1 is wrong ?

Recommended Posts

maxrealqnx

Hi !

I think I found a bug for the windows 8.1. How can I fix it ? Thank you in advance for your answers  :ILA2:

post-36686-0-26844200-1384684930_thumb.p

Share this post


Link to post
Share on other sites
maxrealqnx

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

#RequireAdmin

Global $OSBuild = 1

$OSBuild = FileGetVersion("user32.dll")

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


MsgBox(64, @OSBuild, $OSBuild)
Edited by maxrealqnx

Share this post


Link to post
Share on other sites
trancexx

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.


♡♡♡

.

eMyvnE

Share this post


Link to post
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
Sign in to follow this  

×