以管理者或非管理者身分安裝

您可使用管理者或非管理者的身分,透過 Installation Manager 來安裝軟體。

使用 -accessRights 引數,可以指定要在管理者還是非管理者模式中安裝軟體:

  • 若要以管理者身分安裝軟體,請使用 -accessRights admin 引數及選項
  • 若要以非管理者身分安裝軟體,請使用 -accessRights nonAdmin 引數及選項。
如果您未使用 -accessRights 引數,則值會根據現行使用者的權限而定。使用非管理者存取權安裝 Installation Manager 時,Installation Manager 就無法使用管理者存取權安裝套件。套件是以非管理者權限來安裝。

針對屬於管理者群組成員的 Microsoft® Windows® XP 使用者,預設值一律為 -accessRights admin 引數和選項。若要讓 Windows XP 使用者在 nonAdmin 模式中執行,您必須在指令中明確傳遞 -accessRights nonAdmin 引數。

在 Windows Vista、Windows 2008 及 Windows 7 上,您必須在管理模式中執行下列指令:
  • install.exe
  • installc.exe
  • uninstall.exe
  • uninstallc.exe
您無法在非管理者模式中執行這些指令。若要在非管理者模式下執行,請使用下列指令:userinst.exeuserinstc.exe
重要: 在某些情況下,將 IBM® 軟體產品安裝在 Windows Vista、Windows 2008 及 Windows 7 上,需要使用以管理者身分執行選項。

install.exeuserinst.exe 指令會將 Installation Manager 安裝至不同目錄。您對 Installation Manager 的管理者安裝作業所做的變更,並不會影響非管理者安裝作業。同樣地,您對 Installation Manager 的非管理者安裝作業所做的變更,也不會影響管理者安裝作業。Installation Manager 的每一個實例,都必須有自己的安裝目錄及代理程式資料位置。

表 1. 管理者及非管理者安裝預設值
  管理者 非管理者
Windows:在 Windows 功能表及「新增或移除程式」中顯示 Installation Manager IBM Installation Manager 我的 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

Windows Vista、Windows 2008 及 Windows 7:

install.exe

installc.exe --launcher.ini silent-install.ini 進行無聲自動安裝

系統會提示您輸入管理者使用者 ID 及密碼。

$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

Windows Vista、Windows 2008 及 Windows 7:

uninstall.exe

uninstallc.exe --launcher.ini silent-uninstall.ini 進行無聲自動解除安裝
註: 系統會提示您輸入管理者使用者 ID 及密碼。
$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 指令行引數


意見