以管理员或非管理员的身份进行安装

您可以使用 IBM Installation Manager 以管理员或非管理员的身份安装软件。

共享同一 Installation Manager 实例时保存凭证

要点: 您必须创建一个密钥环,当使用“保存密码”选项为 Installation Manager 的共享实例保存凭证时,只有您可以访问 此密钥环。如果您未指定自己的密钥环,那么其他用户可以使用您已保存的凭证。通过将 -keyring-password 选项用于 IBMIM 来创建密钥环。

在管理员方式下,多个用户可以使用同一 Installation Manager 实例。某些存储库可能需要凭证。在使用“保存密码”选项而不指定只有您可以访问的密钥环的情况下,其他用户可以使用您的凭证访问存储库。

如果不保存凭证,那么每次访问存储库时都会提示您输入凭证。

有关对 Installation Manager 使用凭证的更多信息,请参阅 Installation Manager 信息中心

在 Windows 平台上进行安装的说明

-accessRights 参数可用于指定是在管理员模式还是非管理员模式下安装软件:

  • 要以管理员的身份来安装软件,请使用 -accessRights admin 参数和选项
  • 要以非管理员的身份来安装软件,请使用 -accessRights nonAdmin 参数和选项。
如果您在命令中未使用 -accessRights,那么会根据当前的用户许可权设置缺省值。例如,如果 Installation Manager 是以非管理员访问权进行安装的,那么 Installation Manager 无法以管理员访问权安装软件包。这些软件包将以非管理员权限安装。
在 Windows 8、Windows 2012 和 Windows 7 SP1 上,您必须以管理方式运行以下命令:
  • install.exe
  • installc.exe
  • uninstall.exe
  • uninstallc.exe
您不能以非管理员方式运行这些命令。要以非管理员方式运行,必须使用以下命令:userinst.exeuserinstc.exe
要点: 在某些情况下,在 Windows 2012、Windows 2008、Windows 8 和 Windows 7 上安装 IBM® 软件产品需要使用以管理员身份运行选项。请参阅 Installation Manager 信息中心内的在 Windows 上以管理员身份运行以了解更多信息。

install.exeuserinst.exe 命令用于将 Installation Manager 安装到不同的目录。对以管理员方式进行的 Installation Manager 安装所做的更改不影响以非管理员方式进行的 Installation Manager 安装。 而对以非管理员方式进行的 Installation Manager 安装所做的更改也不影响以管理员方式进行的 Installation Manager 安装。每个 Installation Manager 实例都必须具有自己的安装目录和代理数据位置。

在 Linux 和 UNIX 平台上进行安装的说明

您必须对 Istallation Manager 目录、软件包目录和父目录具有执行许可权。如果没有执行许可权,那么无法访问子目录或文件。如果没有该许可权,使用 Installation Manager 时可能会出现异常行为或失败。

Installation Manager 缺省设置和目录位置

表 1 列出 Windows、Linux 和 UNIX 以及 z/OS 平台上 Installation Manager 的缺省设置和目录位置。
注: 在 z/OS 平台上不支持 Rational ClearQuest。
表 1. Installation Manager 缺省设置和目录位置
设置 管理员 非管理员
Windows: 在 Windows 菜单和“添加或删除程序”中显示 Installation Manager。 Installation Manager Installation Manager
Windows:Microsoft 注册表键 HKEY_LOCAL_MACHINE\Software\IBM\Installation Manager HKEY_CURRENT_USER\Software\IBM\Installation Manager
缺省安装目录 Windows:C:\Program Files\IBM\Installation Manager

Linux 和UNIX:/opt/IBM/InstallationManager

IBM i:/QIBM/ProdData/InstallationManager

z/OS®:/InstallationManager/bin

Windows 2012、Windows 2008、Windows 8 和 Windows 7:C:\Users\users\IBM\Installation Manager

Linux 和 UNIX:/user_home_directory/IBM/InstallationManager

z/OS:/user_home_directory/InstallationManager/bin

eclipse\tools 目录是安装目录的子目录。 Windows:installation_directory\eclipse\tools

Linux、UNIX 和 z/OS:installation_directory/eclipse/tools

缺省注册表文件位置 Linux 和 UNIX:/etc/.ibm/registry/InstallationManger.dat

z/OS:/etc/.ibm/registry/InstallationManger.dat

Linux 和 UNIX:/user_home_directory/etc/.ibm/registry/InstallationManger.dat

z/OS:/user_home_directory/etc/.ibm/registry/InstallationManger.dat

缺省代理数据位置

要了解有关代理数据位置的更多信息,请参阅代理数据位置

要点: 请勿更改代理数据位置目录或子目录中的内容、文件或目录。 更改这些内容将使 Installation Manager 无法工作。

Windows 2012、Windows 2008、Windows 8 和 Windows 7:C:\ProgramData\IBM\Installation Manager

Linux 和 UNIX:/var/ibm/InstallationManager

z/OS:/InstallationManager/appdata

Windows 2012、Windows 2008、Windows 8 和 Windows 7:C:\Users\user\AppData\Roaming\IBM\Installation Manager

Linux(tm) 和 UNIX(tm):/user_home_directory/var/ibm/InstallationManager

z/OS:/user_home_directory/InstallationManager/appdata

Eclipse 日志位于代理数据目录的子目录中。 Windows:agent_data_directory\pluginState\.metadata\.log

Linux、UNIX 和 z/OS:/agent_data_directory/pluginState/.metadata/.log

uninstall 目录是代理数据目录的子目录。 Windows:agent_data_directory\uninstall

Linux、UNIX 和 z/OS:/agent_data_directory/uninstall

Install 命令

只能安装一个 Installation Manager 管理员实例。 对于非管理员,只能为每个用户安装一个 Installation Manager 实例。

表 2. 用于以管理员方式或非管理员方式安装 Installation Manager 的命令
Installation Manager 安装目标 Windows 命令 Linux 和 UNIX 命令
管理员为所有用户安装 Installation Manager。 install.exe

installc.exe 可用于静默安装
#install

#installc 可用于静默安装

非管理员为所有用户安装 Installation Manager。

Windows 2012、Windows 2008、Windows 8 和 Windows 7:

install.exe

installc.exe 可用于静默安装
注: 系统会提示您输入管理员用户标识和密码。
$sudo install

$sudo installc 可用于静默安装

管理员仅为当前用户安装 Installation Manager。 userinst.exe

userinstc.exe 可用于静默安装

#userinst

#userinstc 可用于静默安装
非管理员仅为当前用户安装 Installation Manager。 userinst.exe

userinstc.exe 可用于静默安装
$userinst

#userinstc 可用于静默安装
要点: Windows 不支持使用 install.exeuserinst.exe 命令执行静默安装。请使用 installc.exeuserinstc.exe 命令执行静默安装。

卸载命令

表 3. 以管理员方式和非管理员方式卸载 Installation Manager
Installation Manager 卸载目标 Windows 命令 Linux 和 UNIX 命令
管理员为所有用户卸载 Installation Manager。 uninstall.exe

uninstallc.exe 可用于静默卸载
#uninstall

#uninstallc 可用于静默卸载

非管理员为所有用户卸载 Installation Manager。

Windows 2012、Windows 2008 和 Windows 7:

uninstall.exe

uninstallc.exe 可用于静默卸载
注: 系统会提示您输入管理员用户标识和密码。
$sudo uninstall

$sudo uninstallc 可用于静默卸载

管理员仅为当前用户卸载 Installation Manager。 userinst.exe

userinstc.exe 可用于静默卸载
#uninstall

#uninstallc 可用于静默卸载

非管理员仅为当前用户卸载 Installation Manager。 userinst.exe

userinstc.exe 可用于静默卸载
$uninstall

#uninstallc 可用于静默卸载

要了解有关静默安装命令参数的信息,请参阅 Installation Manager 命令行参数


反馈