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
答案 0 :(得分:1)
试试此代码
#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