Lesen und beachten Sie die Automation Anywhere-Dokumentation

Automation Anywhere Automation 360

Inhalt schließen

Inhalte

Inhalt öffnen

Update Automation 360 on Microsoft Windows Server using scripts

  • Aktualisiert: 2022/05/20
    • Automation 360 v.x
    • Erkunden
    • RPA Workspace

Update Automation 360 on Microsoft Windows Server using scripts

Update Automation 360 using a customized script with parameters to maintain existing user configurations.

Prerequisites

To perform this task, you must be a Control Room administrator and have the required rights and permissions.

Create and execute a PowerShell script to update Automation 360.

Procedure

  1. Create a PowerShell script with the required parameters:
    The following is a sample PowerShell script for upgrading Automation 360:
    # Script Begins
    # It fetches Data from config.properties file present under the same directory level
    
    $PropertyFilePath = 'C:\script\config.properties'
    $rawProperties = cat $PropertyFilePath
    $propertiesToConvert = ($rawProperties -replace '\\' ,'\\') -join
    [Environment]:: NewLine;
    $properties=ConvertFrom-StringData $propertiesToConvert
    $env:SEE_MASK_NOZONECHECKS = 1
    
    # Setting up the logger and InstallerRoot Directory
    
    $baseLogFilePath=$properties.baseLoggingDirectory
    $logFilePath=$baseLogFilePath+'Express_CR_Installation_Scenario1.txt'
    $baseInstallerPath=$properties.baseInstallerDirectory
    $installer_name_regex=$properties.installerNameRegex
    
    # Logging Begins
    
    Start-Transcript -Path $logFilePath -Append -IncludeInvocationHeader
    
    $binary = Get-ChildItem $baseInstallerPath | Where-Object { $_.FullName -imatch $installer_name_regex }
    $a = $binary.FullName
    $final_commandline = " /update /s /v/qn /v""/L*v CR_Onprem_Installationlog_Scenario1.txt"""
    
    # Recording the Start Time
    Get-Date -Format g
    
    # Invoking the Installer here
    $processdetail = (Start-Process -FilePath $a -ArgumentList $final_commandline -Wait -Passthru).ExitCode
    
    # Recording the End  Time
    Get-Date -Format g
    
    
    Stop-Transcript
    
  2. Optional: Customize the script to include parameters according to your requirements.
  3. Save the script to the installation server.
  4. Log in to the installation server as administrator.
  5. Start PowerShell in administrator mode.
  6. Execute the following:
    Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
    .\install.ps1
    Note: The silent installation logs are stored in the folder from which the installation script is executed. For example, if you run the script from C:\Silent Install, the logs are stored in the C:\Silent Install folder.
  7. Validate the following:
Feedback senden