阅读和查看 Automation Anywhere 文档

Automation Anywhere

关闭内容

内容

打开内容

无提示安装

  • 已更新:5/22/2019
    • 11.3.x
    • 安装
    • Enterprise

无提示安装

以无提示模式安装 Automation Anywhere Enterprise Control Room,使用自定义 Powershell 脚本进行完整安装或对热修复补丁使用命令行。

先决条件

在管理员模式下打开 Powershell 并执行:

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force

自定义无提示安装

在管理员模式下启动 Powershell 并执行:

.\install.ps1

安装参数

变量名称

描述

INSTALLDIR

安装目录

AA_SETUPTYPE

安装类型“自定义”或“快速”

AA_SETCLUSTERMODE

如果是群集,则设置为 1,否则为 0

AA_CRCLUSTERCONFIG

如果 AA_SETCLUSTERMODE=1,则群集 IP 逗号分隔

AA_CRLISTENPORT

Web 服务器端口。默认值为 80

AA_CRFORCETOHTTPS="1"

强制 traefik 从 HTTP 改为 HTTPS

AA_CRFORCEHTTPSCONFIG=" "

-

AA_CRWCCERTPASSWD

证书密码

AA_CRSETLOCALSERVICECRED

如果服务登录为系统,则为 1

如果服务登录为特定用户,则为 0

AA_CRSERVICEUSERNAME

如果 AA_CRSETLOCALSERVICECRED= 0,则为域\用户名

AA_CRSERVICEPASSWD

如果 AA_CRSETLOCALSERVICECRED= 0,则为密码

AA_CRSERVICECONFIRMPASSWD

如果 AA_CRSETLOCALSERVICECRED= 0,则为确认密码

AA_CRDBPORT

Enterprise Control Room数据库端口。默认值为 1433

AA_SQLSERVERAUTHTYPE

如果是 Windows 身份验证,则为 0,如果是 SQL Server 身份验证,则为 1

AA_CRWCCERTPATH

证书路径

IS_SQLSERVER_SERVER

SQL 服务器名称(主机名)

IS_SQLSERVER_AUTHENTICATION

如果是 Windows 身份验证,则为 0

AA_SQLSERVERAUTHMODE

如果是 Windows 身份验证,则为 0

IS_SQLSERVER_DATABASE

SQL 数据库名称

IS_SQLSERVER_DATABASE1

BotInsight 数据库名称

AA_BIPGINSTALL

如果安装 PostgreSQL,则为 1,否则为 0

AA_INSTALLPOSTGRES

安装 PostgreSQL Server

AA_BIPGDATABASE

PostgreSQL 数据库名称

AA_BIPGHOSTNAME

PostgreSQL 主机名(服务器名称)

AA_BIPGUSERNAME

PostgreSQL 用户名

AA_BIPGPASSWORD

PostgreSQL 密码

AA_BIPGCONFIRMPASSWORD

PostgreSQL 确认密码

AA_CRHTTPPORT

CR HTTP 端口。默认值为 5432

AA_CRHTTPSPORT

CR HTTPS 端口

Oracle 相关参数
AA_ENTERPRISEDBTYPE 如果是 Oracle,则为 1
AA_ORCLDATABASESERVER Oracle 数据库服务器
AA_ORCLJDBCDRIVERLIB Oracle jdbc 驱动程序库的完整路径
AA_ORCLDATABASEPORT Oracle 端口号(默认值为 1521)
AA_ORCLSID 标识每个 Oracle 数据库实例的系统标识符
AA_ORCLCRUSERNAME Oracle Enterprise Control Room用户名
AA_ORCLCRPASSWORD Oracle Enterprise Control Room密码
AA_ORCLBIUSERNAME Oracle Bot Insight 用户名
AA_ORCLBIPASSWORD Oracle Bot Insight 密码
Elasticsearch 相关参数
AA_ELASTICSEARCHSYSIP 有效 IP
BotInsight Metadatatype 参数
AA_BIMETADATADBTYPE <0 或 1> 如果是 SQL Server,则为 0,如果是 PostgresSQL,则为 1。如果 Metadatadbype 为 1,则提供 Postgres 相关详细信息。默认情况下选择“SQL Server 元数据”
注: 无提示安装日志存储在执行安装脚本的文件夹中。例如,如果从 C:\Silent Install 运行脚本,则日志将存储在 C:\Silent Install 文件夹中。

Powershell 脚本示例

使用该脚本可以针对安装程序中提供的各种配置来安装控制室。

可执行以下示例脚本,使用服务登录中的凭证安装控制室,并使用新数据库借助 SQL 身份验证实现非安全连接。

提示: 使用您的配置编辑脚本,并保存 $service_username、$service_pwd、$db_server、$cr_port 等变量的正确值。
Version 11.3.1

$cr_port=80

$service_username= ".\Administrator"

#e.g."mydomain\john.smith"

$service_pwd="astrongpassword"

#$certpath = "C:\SilentInstall\certificate.pfx"

#$certpass = "changeit"

$db_server="localhost\sqlexpress"

$cr_db_name="CRDB-NEW"

$bi_db_name="BotInsight"

$db_user="sa"

$db_pwd="Admin@123"

$AA_BIMETADATADBTYPE=0

$bi_pg_server="localhost"

$bi_pg_username="automation"

$bi_pg_pwd="Automation123"

$installation_path="C:\Program Files\Automation Anywhere"

#Install latest setup

$static_installation_path="\Enterprise\"""""

$silent_details=" /s ","v""" -join "/"

$installpath_details= "/qn INSTALLDIR=\"""

$custom_details=" /vAA_SETUPTYPE=Custom /vAA_CUSTOMMODETYPE=1"

$port_cluster_details=" /vAA_SETCLUSTERMODE=0 /vAA_CRLISTENPORT=$cr_port"

$service_details=" /vAA_CRSETLOCALSERVICECRED=0 /vAA_CRSERVICEUSERNAME=$service_username /vAA_CRSERVICEPASSWD=$service_pwd /vAA_CRSERVICECONFIRMPASSWD=$service_pwd"

$db_details=" /vAA_BIMETADATADBTYPE=$AA_BIMETADATADBTYPE /vAA_SQLSERVERAUTHTYPE=true /vIS_SQLSERVER_SERVER=$db_server /vIS_SQLSERVER_USERNAME=$db_user /vIS_SQLSERVER_PASSWORD=$db_pwd /vIS_SQLSERVER_DATABASE1=$bi_db_name /vIS_SQLSERVER_DATABASE=$cr_db_name /vIS_SQLSERVER_AUTHENTICATION=1 /vAA_SQLSERVERAUTHMODE=1"

$pg_details=" /vAA_BIPGINSTALL=1 /vAA_INSTALLPOSTGRES=0 /vAA_BIPGHOSTNAME=$bi_pg_server /vAA_BIPGUSERNAME=$bi_pg_username /vAA_BIPGPASSWORD=$bi_pg_pwd /vAA_BIPGCONFIRMPASSWORD=$bi_pg_pwd"

$other=" /vAA_CRWCHTTPPORT=80 /vAA_CRWCHTTPSPORT=443 /vAA_CRSELFSIGNCERT=1 /vAA_CRWCCERTPATH=$certpath /vAA_CRWCCERTPASSWD=$certpass /vLAUNCHPROGRAM=1 /v""/LIweamoruc! log.txt"""

$final_commandline = -join($silent_details,$installpath_details,$installation_path,$static_installation_path,$custom_details,$port_cluster_details,$service_details,$db_details,$pg_details,$other)

Write-Host $final_commandline

$a=Get-ChildItem $PSScriptRoot\* -Include *.exe

#$a = "C:\Silent\AutomationAnywhereEnterprise_v11_2_0-07272018-10234948.exe"

Write-Host $a

Write-Host "Starting the installation please wait for sometime..."

$processdetail=(Start-Process -FilePath $a -ArgumentList $final_commandline -Wait -PassThru).ExitCode

Write-Host $a.Name execution is done. If installation is not proper please check msi logs in the temp folder.

pause

Version 11.3.1可执行以下示例脚本,以 Oracle 作为数据库来安装控制室。

Version 11.3.1

$cr_port=80

$service_username= ".\Administrator"

#e.g."mydomain\john.smith"

$service_pwd="astrongpassword"

$cr_db_name="CRDB-NEW"

$bi_db_name="BotInsight"

$OracleServer = "oracledb"

$OraclLib="..\Oracle\ojdbc7-12.1.0.2.0.jar"

$ORCLDATABASEPORT=1521

$ORCLSID="ORCL"

$ORCLCRUSERNAME="CR"

$ORCLBIUSERNAME="BI"

$ORCLPASSWORD="Abcd1234"

$AA_ENTERPRISEDBTYPE=1

$AA_BIMETADATADBTYPE=1

$bi_pg_server="localhost"

$bi_pg_username="automation"

$bi_pg_pwd="Automation@123"

$installation_path="C:\Program Files\Automation Anywhere"

$static_installation_path="\Enterprise\"""""

$silent_details=" /s ","v""" -join "/"

$installpath_details= "/qn INSTALLDIR=\"""

$custom_details=" /vAA_SETUPTYPE=Custom /vAA_CUSTOMMODETYPE=1" /vDONOTABORT=1

$port_cluster_details=" /vAA_SETCLUSTERMODE=0 /vAA_CRLISTENPORT=$cr_port"

$service_details=" /vAA_CRSETLOCALSERVICECRED=1"

#$service_details=" /vAA_CRSETLOCALSERVICECRED=0

/vAA_CRSERVICEUSERNAME=$service_username /vAA_CRSERVICEPASSWD=$service_pwd /vAA_CRSERVICECONFIRMPASSWD=$service_pwd"

#$db_details=" /vAA_SQLSERVERAUTHTYPE=true /vIS_SQLSERVER_SERVER=$db_server /vIS_SQLSERVER_DATABASE=$cr_db_name /vIS_SQLSERVER_DATABASE1=$bi_db_name /vIS_SQLSERVER_AUTHENTICATION=1 /vAA_SQLSERVERAUTHMODE=1"

$db_details=" /vAA_ENTERPRISEDBTYPE=$AA_ENTERPRISEDBTYPE /vAA_BIMETADATADBTYPE=$AA_BIMETADATADBTYPE /vAA_ORCLDATABASESERVER=$OracleServer /vAA_ORCLJDBCDRIVERLIB=$OraclLib /vAA_ORCLDATABASEPORT=$ORCLDATABASEPORT /vAA_ORCLSID=$ORCLSID /vAA_ORCLCRUSERNAME=$ORCLCRUSERNAME /vAA_ORCLCRPASSWORD=$ORCLPASSWORD /vAA_ORCLBIUSERNAME=$ORCLBIUSERNAME /vAA_ORCLBIPASSWORD=$ORCLPASSWORD"

$pg_details=" /vAA_BIPGINSTALL=1 /vAA_INSTALLPOSTGRES=0 /vAA_BIPGHOSTNAME=$bi_pg_server /vAA_BIPGUSERNAME=$bi_pg_username /vAA_BIPGPASSWORD=$bi_pg_pwd /vAA_BIPGCONFIRMPASSWORD=$bi_pg_pwd"

$other=" /vAA_CRWCHTTPPORT=$cr_port /vAA_CRWCHTTPSPORT=443 /vLAUNCHPROGRAM=1 /v""/LIweamoruc! log.txt"""

$final_commandline = -join($silent_details,$installpath_details,$installation_path,$static_installation_path,$custom_details,$port_cluster_details,$service_details,$db_details,$pg_details,$other)

Write-Host "$final_commandline"

#$a=Get-ChildItem $PSScriptRoot\* -Include *.exe

$a = "C:\Silent\AutomationAnywhereEnterprise_v11_3_1-11142018-06274507.exe"

Write-Host $a

Write-Host "Starting the installation please wait for sometime..."

$processdetail=(Start-Process -FilePath $a -ArgumentList $final_commandline -Wait -PassThru).ExitCode

Write-host $final_commandline"

Write-host $processdetail"

Write-Host "$a.Name execution is done. If installation is not proper please check msi logs in the temp folder"

pause

在无提示模式下安装补丁

要在无提示模式下安装 Automation Anywhere Enterprise Control Room的热修复补丁,请执行以下操作:

  1. 以管理员模式启动命令窗口
  2. 从其存储位置运行 setup exe,如图所示:
    C:\Setup>./"Automation Anywhere Enterprise_Update_11.3.x.x.exe" /s /v/qn 
    注: 可以在任务管理器的“后台进程”部分中查看安装进度:

    任务管理器中的安装进度

  3. 安装完成后,计算机将重新启动。
发送反馈