使用 IBM Installation Manager 以静默方式卸载 Edge Components

使用 Installation Manager 以静默方式卸载此产品。

  1. 可选:在卸载此产品之前,可以将 Installation Manager 和此产品安装到您的某个系统上的临时安装注册表或记录该过程,以便您可以使用此临时安装注册表来记录卸载过程,而不必使用安装了 Installation Manager 的标准注册表。

    有关更多信息,请阅读使用 IBM Installation Manager GUI 来安装 Edge Components使用 IBM Installation Manager 以静默方式安装 Edge Components

  2. 停止 Edge Components 产品的所有实例和服务。
  3. 可选:记录用于卸载产品的响应文件:在您的某个系统上,执行下列操作以记录将卸载产品的响应文件:
    1. 从命令行,切换到 Installation Manager 的安装目录中的 eclipse 子目录。
    2. 从命令行使用 -record 选项启动 Installation Manage。例如:
      • [Windows] 管理员或非管理员:
        IBMIM.exe -skipInstall "C:\temp\imRegistry" 
              -record C:\temp\uninstall_response_file.xml
      • [AIX] [HP-UX] [Linux] [Solaris] 管理员:
        ./IBMIM -skipInstall /var/temp/imRegistry 
              -record /var/temp/uninstall_response_file.xml
      • [AIX] [HP-UX] [Linux] [Solaris] 非管理员:
        ./IBMIM -skipInstall user_home/var/temp/imRegistry 
              -record user_home/var/temp/uninstall_response_file.xml
      提示:如果您选择将 -skipInstall 参数与创建的临时安装注册表(“开始之前”中描述了该创建过程)配合使用,那么 Installation Manager 在记录响应文件时将使用该临时安装注册表。一定要注意,当指定 -skipInstall 参数时,不会安装或卸载任何产品软件包。您在 Installation Manager 中执行的所有操作仅更新所指定的临时注册表中存储的安装数据。在生成响应文件后,可以使用响应文件来卸载产品,以除去产品文件并更新标准安装注册表。

      不应该在 Installation Manager 所使用的实际代理程序数据位置使用 -skipInstall 操作。这不受支持。请使用空白的可写位置,并对以后的记录会话复用该位置。

      有关更多信息,请阅读 Installation Manager 信息中心

    3. 单击卸载
    4. 在“卸载软件包”窗口中,选择要卸载的产品和适当的版本。例如,选择 IBM WebSphere Edge Component:高速缓存代理IBM WebSphere Edge Components:Load Balancer for IPv4
    5. 单击下一步
    6. 查看摘要信息。
    7. 单击卸载
      • 如果卸载成功,那么程序会显示一条指示成功的消息。
      • 如果卸载未成功,请单击查看日志以对该问题进行故障诊断。
    8. 单击完成
    9. 单击文件 > 退出以关闭 Installation Manager。
  4. 使用响应文件以静默方式卸载产品。从要卸载产品的每个系统上的命令行,切换到 Installation Manager 的安装目录中的 eclipse/tools 子目录,然后使用您创建的响应文件以静默方式卸载该产品。

    例如:

    有关更多信息,请转至 Installation Manager 信息中心

  5. 可选:卸载 IBM Installation Manager。必须先卸载 Installation Manager 已安装的所有软件包,然后才能卸载 IBM Installation Manager。

    有关执行此过程的信息,请阅读 Installation Manager 信息中心中的>卸载 Installation Manager。

[Windows] 示例:以下是用于卸载Load Balancer for IPv4的样本响应文件:

<?xml version="1.0" encoding="UTF-8" ?> 
<agent-input>
<server>
  <repository location='C:\repositories\edge80\local-repositories'/>
</server>
<profile installLocation='c:\program files\loadbalancer\ibm\edge\lb'>
  <data key='eclipseLocation' value='c:\program files\loadbalancer\ibm\edge\lb'/>
  <data key='cic.selector.nl' value='en, fr, it, zh, ru, zh_TW, de, ja, pl, es, cs, hu, ko, pt_BR'/>
</profile>
<uninstall modify='false'>
  <offering id='com.ibm.websphere.EDGELBIPV4.v80' version='8.0.0.0' 
      profile='IBM WebSphere Edge Components: Load Balancer for IPV4 V8.0' 
      features='Dispatcher,Load Balancer,Metric Server'/>
</uninstall>
<preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='C:\Program Files\IBM\IMShared'/>
<preference value='30' name='com.ibm.cic.common.core.preferences.connectTimeout' /> 
<preference value='30' name='com.ibm.cic.common.core.preferences.readTimeout' /> 
<preference value='0' name='com.ibm.cic.common.core.preferences.downloadAutoRetryCount' /> 
<preference value='true' name='offering.service.repositories.areUsed' /> 
<preference value='false' name='com.ibm.cic.common.core.preferences.ssl.nonsecureMode' /> 
<preference value='false' 
   name='com.ibm.cic.common.core.preferences.http.disablePreemptiveAuthentication' /> 
<preference value='true' 
   name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' /> 
<preference value='false' name='PassportAdvantageIsEnabled' /> 
<preference value='false' 
   name='com.ibm.cic.common.core.preferences.searchForUpdates' /> 
</agent-input>