-2
我不知道爲什麼這個autoit腳本不工作!我需要indentify的Windows版本和arhitecture 'autoit腳本不工作
If @OSTYPE = "WIN32_WINDOWS" Then
;If @OSType = "WIN32_NT" Then
_AddLineBox("Unsupported Windws version. Use only on 2000/XP/2003 x32/64.")
Else
If @CPUArch = "X86 Then
If @OSVersion = "WIN_XP" Then _AddLineBox("Detecting Windows version - Windows XP x32")
If @OSVersion = "WIN_2000" Then _AddLineBox("Detecting Windows version - Windows 2000 x32")
If @OSVersion = "WIN_2003" Then _AddLineBox("Detecting Windows version - Windows 2003 x32")
EndIf
If @CPUArch = "64-bit" Then
If @OSVersion = "WIN_XP" Then _AddLineBox("Detecting Windows version - Windows XP x64")
If @OSVersion = "WIN_2000" Then _AddLineBox("Detecting Windows version - Windows 2000 x64")
If @OSVersion = "WIN_2003" Then _AddLineBox("Detecting Windows version - Windows 2003 x64")
EndIf
EndIf
EndFunc ;==>DetectInfrastructure
'