使用Powershell静默安装Java 8

时间:2014-11-06 15:22:42

标签: java windows installer

我正在阅读有关使用MSI安装Java的信息。我觉得这很复杂。使用.exe并安静地安装有什么问题?

  

Start-Process -FilePath jre-8u25-windows-x64.exe -ArgumentList   “/ s”-PassThru -Wait

它适用于我的情况。对此有任何疑问,有用的暗示吗?

1 个答案:

答案 0 :(得分:1)

从dos-window调用它:

jre-8u25-windows-x64.exe /s INSTALLDIR=c:\progra~1\jre /L install64.log

不起作用(progra~1代替'程序文件')。它立即终止,没有任何消息。通过powershell调用相同的工作正常:

powershell start-process -filepath jre-8u25-windows-x64.exe -passthru -wait -argumentlist "/s,INSTALLDIR=c:\progra~1\jre,/L,install64.log"

有谁知道有什么区别?

相关问题