java - How to install JRE using AutoIt -
i'm trying configure jre installation using autoit:
if $ijava64 = 1     $hdownloadjava64 = inetget("https://www.dropbox.com/s/s68heiccdoxhtii/java%20jre%20x64.exe?dl=1", @tempdir & "\java jre x64.exe", $inet_forcereload)     runwait(@tempdir & "\java jre x64.exe -install")     $smessage_stt = $smessage_stt & "java jre x64 -> done" & @crlf     controlsettext("processing status", "", "static1", $smessage_stt) endif but doesn't work. tried /s, /q, it's not working!
does work if on command line? if yes use following code:
runwait(@comspec & ' /c "' & @tempdir & '\java jre x64.exe" -install') remeber use ' if need use " path, because yours has spaces.
edit: correct parameter:
runwait(@comspec & ' /c "' & @tempdir & '\java jre x64.exe" /s') 
Comments
Post a Comment