2012-10-05 36 views
0

我使用-q和-varfile標誌在Linux上運行install4j二進制文件。它仍然提示我所有的選擇。儘管使用-q和-varfile運行install4j提示

./myInstaller.sh -q -varfile response.varfile -VskipRestore=true 
Starting Installer ... 
This will install Zephyr 4.1 on your computer. 
OK [o, Enter], Cancel [c] 

我還驗證了response.varfile被複制到安裝文件夾內的.install4j文件夾中。任何明顯的我失蹤?

回答

0

在unix上的無人蔘與模式下,您將獲得上述異常(StackOverflowError)。文檔建議返回null,從而導致以下錯誤:

java.lang.NullPointerException 
at com.install4j.runtime.installer.frontend.headless.UnattendedScreenExecutor$1.run(Unknown Source) 
at com.install4j.runtime.installer.frontend.GUIHelper.invokeOnEDT(Unknown Source) 
at com.install4j.runtime.installer.frontend.headless.UnattendedScreenExecutor.getProgressInterface(Unknown Source) 
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.execute(Unknown Source) 
at com.install4j.runtime.installer.controller.Controller$1.run(Unknown Source) 

下面的腳本工作正常

UnattendedProgressInterface unattend = DefaultUnattendedProgressInterface(); 
return unattend;