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

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

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

  • 要以管理员的身份来安装软件,请使用 -accessRights admin 参数和选项
  • 要以非管理员的身份来安装软件,请使用 -accessRights nonAdmin 参数和选项。
如果未使用 -accessRights 参数,那么该值基于当前的用户许可权。如果以非管理员访问权安装了 Installation Manager,那么 Installation Manager 无法以管理员访问权安装软件包。这些软件包将以非管理员权限安装。

对于属于 Administrator 组成员的 Microsoft® Windows® XP 用户,缺省值始终为 -accessRights admin 参数和选项。要使 Windows XP 用户以 nonAdmin 方式运行,您必须在命令中显示传递 -accessRights nonAdmin 参数。

在 Windows Vista、Windows 2008 和 Windows 7 中,您必须以 admin 方式运行以下命令:
  • install.exe
  • installc.exe
  • uninstall.exe
  • uninstallc.exe
您不能以非管理员方式运行这些命令。要以非管理员方式运行,必须使用以下命令:userinst.exeuserinstc.exe
要点: 在某些情况下,要在 Windows Vista、Windows 2008 和Windows 7 上安装 IBM® 软件产品,需要使用以 Administrator 身份运行选项。

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

表 1. 管理员和非管理员安装缺省设置
  管理员 非管理员
Windows:在 Windows 菜单和“添加或删除程序”中显示 Installation Manager IBM Installation Manager My IBM 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\eclipse

Linux® 和 UNIX®:/opt/IBM/InstallationManager/eclipse

Windows:C:\Documents and Settings\<user>\IBM\Installation Manager\eclipse

Windows Vista、Windows 2008 和 Windows 7:C:\Users\<user>\IBM\Installation Manager\eclipse

Linux 和 UNIX:/<user>/IBM/InstallationManager/eclipse

缺省代理数据位置

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

要点: 请勿更改代理数据位置目录或子目录中的内容、文件或目录。 更改这些内容可能会导致 Installation Manager 无法工作。
Windows 2000 和Windows XP:C:\Documents and Settings\All Users\Application Data\IBM\Installation Manager

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

Linux 和 UNIX:/var/ibm/InstallationManager

Windows 2000 和 Windows XP:C:\Documents and Settings\<user>\Application Data\IBM\Installation Manager

Windows Vista、Windows 2008 和Windows 7:C:\Users\<user>\AppData\Roaming\IBM\Installation Manager

Linux 和 UNIX:/<user>/var/ibm/InstallationManager

Eclipse 日志位置 Windows 2000 和Windows XP:C:\Documents and Settings\All Users\Application Data\IBM\Installation Manager\pluginState\.metadata

Windows Vista、Windows 2008 和 Windows 7:C:\ProgramData\IBM\Installation Manager\pluginState\.metadata

Linux 和 UNIX:/var/ibm/InstallationManager/pluginState/.metadata

Windows:Windows:C:\Documents and Settings\<user>\IBM\InstallationManagerInstaller\pluginState\.metadata

Windows Vista、Windows 2008 和 Windows 7:C:\Users\<user>\IBM\Installation ManagerInstaller\pluginState\.metadata

Linux 和 UNIX:/<user>/var/ibm/InstallationManager/pluginState/.metadata

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

installc.exe --launcher.ini silent-install.ini 可用于静默安装
#install

#install --launcher.ini silent-install.ini 可用于静默安装

非管理员为所有用户安装 Installation Manager Windows 2000 和 Windows XP:您不能作为非管理员为所有用户安装 Installation Manager

WindowsVista、Windows 2008 和 Windows 7:

install.exe

installc.exe --launcher.ini silent-install.ini 可用于静默安装

系统会提示您输入管理员用户标识和密码。

$sudo install

$sudo install --launcher.ini silent-insatall.ini 可用于静默安装
管理员仅为当前用户安装 Installation Manager userinst.exe

userinstc.exe --launcher.ini user-silent-install.ini 可用于静默安装
#userinst

#userinst --launcher.ini user-silent-install.ini 可用于静默安装
非管理员仅为当前用户安装 Installation Manager userinst.exe

userinstc.exe --launcher.ini user-silent-install.ini 可用于静默安装
$userinst

$userinst --launcher.ini user-silent-install.ini 可用于静默安装
要点: Windows 不支持使用 install.exeuserinst.exe 命令执行静默安装。请使用 installc.exeuserinstc.exe 命令执行静默安装。

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

uninstallc.exe --launcher.ini silent-uninstall.ini
#uninstall

#uninstall --launcher.ini silent-uninstall.ini 可用于静默卸载
非管理员为所有用户卸载 Installation Manager Windows XP 和 Windows 2000:您不能作为非管理员为所有用户卸载 Installation Manager

WindowsVista、Windows 2008 和 Windows 7:

uninstall.exe

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

$sudo uninstall --launcher.ini silent-uninstall.ini 可用于静默卸载
管理员仅为当前用户卸载 Installation Manager userinst.exe

userinstc.exe --launcher.ini user-silent-uninstall.ini 可用于静默卸载
#uninstall

#uninstall --launcher.ini user-silent-install.ini 可用于静默卸载
非管理员仅为当前用户卸载 Installation Manager userinst.exe

userinstc.exe --launcher.ini user-silent-uninstall.ini 可用于静默卸载
$uninstall

$uninstall --launcher.ini user-silent-install.ini 可用于静默卸载
要点:  Windows 不支持使用 uninstall.exeuserinst.exe 命令执行静默卸载。请使用 uninstallc.exeuserinstc.exe 命令执行静默卸载。

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


反馈