无法使用 AutoIt 运行 JDK 文件。谁能告诉我这段代码有什么问题?

Unable to run JDK file using AutoIt. Can anyone tell me what is wrong in this code?

If $isSystem64bit = 1 Then
    $processID = Run("C:\Users\" & @UserName & "\Downloads\jdk-8u77-windows-x64.exe")

Else
    $processID = Run("C:\Users\" & @UserName & "\Downloads\jdk-8u77-windows-x32.exe")
EndIf

试试这个代码

#RequireAdmin

If StringInStr(@OSArch, "64") Then
    $processID = Run(@UserProfileDir & "\Downloads\jdk-8u77-windows-x64.exe")
Else
    $processID = Run(@UserProfileDir & "\Downloads\jdk-8u77-windows-x32.exe")
EndIf