Sun Java Enterprise System 2005Q4 安装指南

Installer 命令

Java ES installer 命令格式如下:

installer [option]...

下表介绍 installer 命令选项。

表 B–1 Java ES Installer 命令行选项

选项 

说明 

-help

定义安装程序的命令行选项。 

-id

将状态文件 ID 打印到屏幕。 

-no

运行安装程序但不安装软件。 

-noconsole

以无提示模式启动安装程序,抑制图形界面。联合使用此选项和 -state 选项可在无提示模式下运行安装程序。

-nodisplay

以基于文本的模式启动安装程序(不启动图形界面)。 

-saveState [statefile ]

指示安装程序在 statefile 指定的位置生成状态文件。状态文件在执行无提示安装时使用。

如果指定的文件不存在,命令就会创建该文件。 

如果省略 statefile 值,安装程序将写入默认文件 statefile.out

您可以在后续安装会话中指定同一个状态文件。首次会话后,会在文件名后面附加 n,其中 n 是一个随每次会话而递增的整数,起始值为零 (0)。

-state statefile

使用指定的状态文件为无提示安装提供输入。此选项与 -noconsole 选项联合用于启动无提示安装。

示例

从安装目录以图形模式运行安装程序:


./installer

以基于文本的模式运行安装程序:


./installer -nodisplay

运行图形式安装程序而不安装软件:


./installer -no

创建状态文件而不安装软件:

在安装软件的同时创建状态文件:


./installer [-nodisplay] -saveState myInstallStatefile

以无提示模式运行安装程序:


./installer -nodisplay -noconsole -state myInstallStatefile