Skip to main content

Update - OpCon RPA

What is it?​

This page describes how to update an existing OpCon RPA installation. Updates have five steps:

  1. Read the update considerations for the version you are moving to.
  2. Stop the RPA Agent service and the Tray Client.
  3. Back up your settings and database. Required before updating to 1.2.0 or later.
  4. Run the RPA Agent installer (and update the ACS plugin, if your version requires it).
  5. Verify the service and Tray Client are running, then apply any version-specific post-update tasks.

This page assumes the RPA Agent and (for cloud installations) Netcom Relay are already installed. If they are not, follow Installation - OpCon RPA Agent and Netcom Relay instead.

Before you begin​

You need:

ItemWhere to get it
RPAAgent_x.y.z.msiOpCon Web Installer (OWI) — Agents section
sma.acs.OpConRPA.dll (only if your version requires an ACS plugin update — see considerations below)OpCon Web Installer (OWI) — Integrations section
Local administrator rights on the Windows host—

Update considerations​

Read the entry for the version you are updating to before running the installer. Each entry tells you whether the ACS plugin must be updated and whether any post-update work is required.

1.3.0​

Update allow-lists and security rules for the renamed program files

1.3.0 renames the program files that still carried VisualCron names. Antivirus exclusions, application allow-lists, endpoint monitoring rules, and firewall rules that name the old files stop matching after the update, and a rule that blocks unknown programs can stop Web Macro tasks and web recording from starting. Update those rules before you update the Agent.

The files are in C:\Program Files\RPAAgent\TrayClient. An update removes the files with the old names.

Old nameNew nameWhat it is
VisualCronWebMacro.exeRPA.WebMacro.exeThe worker process of the embedded browser that Web Macro tasks and web steps use. Shown in Task Manager under this name
VisualCron.WebBrowser.exeRPA.WebBrowser.exeThe browser that opens when you record a Robot Task with Use web browser, and when a Robot Task runs a web browser activity. Shown in Task Manager under this name
VisualCron.dllRPA.VisualCron.dllProgram library
VisualCron.Foundation.dllRPA.VisualCron.Foundation.dllProgram library
VisualCron.UI.dllRPA.VisualCron.UI.dllProgram library
VisualCron.UI.WPF.dllRPA.VisualCron.UI.WPF.dllProgram library
VisualCronAPI.dllRPA.VisualCronAPI.dllProgram library
VisualCronOCR.dllRPA.VisualCronOCR.dllProgram library
WebAutomation.dllRPA.WebAutomation.dllProgram library
UCWFDesigner.dllRPA.UCWFDesigner.dllProgram library
ImageTasks.Model.dllRPA.ImageTasks.Model.dllProgram library
ImageTasks.Services.dllRPA.ImageTasks.Services.dllProgram library
ScreenRecorder.dllRPA.ScreenRecorder.dllProgram library

When a Web Macro runs as an execution user who is not a local administrator, RPA.WebMacro.exe is also copied into that user's profile, under %LOCALAPPDATA%\VisualCron\Tasks, and runs from there. A rule keyed on the program's path needs to cover that folder too. The old VisualCronWebMacro.exe copy in the same folder is deleted automatically the first time the Tray Client or a background task starts as that user after the update.

The renamed libraries carry the OpCon RPA version, 1.3.0.0, instead of a VisualCron version number. Tasks saved in earlier versions still open and run.

TopicWhat to know
ACS plugin updateRecommended, not required. A 1.3.0 Agent works with the plugin you already have. ACS plugin 1.3.0 skips the Remote Desktop sign-in for a Robot Task that runs in the background. See Background Robot Tasks need no session
Robot Tasks saved before 1.3.0Keep running in the foreground, unchanged. 1.3.0 can run a Robot Task in the background, but a task saved before 1.3.0 counts as having Force foreground selected. Nothing migrates on update. See Tasks saved before 1.3.0
Agent modeThe update keeps the installed mode. 1.3.0 adds a choice of Agent mode at installation: Full, which runs as Local System exactly as every earlier version did, or Background only. An Agent updated from 1.2.x stays in Full mode, and the update shows no mode choice. To change the mode, see Background only Agent mode
InstallerNow shows a setup wizard. Earlier installers had no pages. An update shows a welcome page and a ready-to-install page. See Step 4. A silent installation with msiexec runs as before
DowngradeNot supported. As with 1.2.0, once 1.3.0 has started, an earlier version refuses to open the database and its service does not start. Back up DataCache before you update. Starting with 1.3.0, the installer also refuses to install over a newer version, with the message A newer version of RPA Agent <version you are installing> is already installed. To install an older version, uninstall the current version first. See Back Up and Restore the Database
Wildcards in file and folder filters#, [list], and [!list] now work in a filter's Folder and Include file mask, where they used to match nothing. A [ now always starts a character list, so a mask such as log[1].txt also matches log1.txt. Review masks and folder paths that contain # or [. See Wildcard Matching
Web Macro steps that write filesPrint page now prints. A Print page step that uses Microsoft Print to PDF or Microsoft XPS Document Writer fails until you give it an output file. Take screenshot fails when its file cannot be saved, and a step whose credential cannot sign in fails instead of running as the task's own account. A task that reported success before may now report a failure that was always there. See Web Macro
API keyKept by the update. You do not need to generate a new token or change the OpCon connection. If you select Generate Token later, answering No to the Key Generation Warning now keeps the existing key. In earlier versions the existing key had already been replaced by then

1.2.0​

Do not downgrade from 1.2.0 to 1.1.0

The database records which Agent version last wrote to it, and 1.2.0 stamps that record the first time it starts. From that point on, 1.1.0 refuses to open the database: the RPA Agent service will not start, and its log reports that the database was written by a newer Agent version. Reinstalling 1.1.0 over a 1.2.0 installation therefore leaves you with an Agent that does not run, and there is no way to convert the database back.

If you have to return to 1.1.0, restore the DataCache folder from a backup taken before the 1.2.0 update. Credentials encrypted by 1.2.0 cannot be decrypted by 1.1.0 either, so re-enter any credential added or changed since the backup. See Back Up and Restore the Database for the backup, restore, and downgrade procedures.

Give Web Macro and Scan Document tasks an execution user before you update

1.2.0 runs Web Macro and Scan Document tasks in their own host process with no interactive session. That host process is never run as Local System, and it never falls back to a connected RPA Tray Client. Because the Agent service always runs as Local System, an existing Web Macro or Scan Document task with no execution user fails. A connected RPA Tray Client does not rescue it. This affects every installation, so an existing task can start failing on a host that has not otherwise changed.

Before you update, open each Web Macro and Scan Document task, set an execution user, and save the task. Saving is what writes the value — a task authored on an earlier version never stored one, so it has to be saved once even if nothing looks like it changed.

TopicWhat to know
ACS plugin updateRequired. The plugin creates the Windows session for a Robot Task over Remote Desktop and asks the Agent whether a session already exists. Update the ACS Plugin DLL.
DowngradeNot supported. Once 1.2.0 has started, 1.1.0 refuses to open the database and its service will not start. Back up DataCache before updating — a pre-update backup is the only route back.
Service accountThe RPA Agent service runs as Local System on every installation. The installer configures it on both a clean install and an update — there is nothing to choose and no properties to pass. See Install the RPA Agent.
Web Macro and Scan Document tasksNow run in their own host process with no interactive session. A task with no execution user fails. See the warning above.
Wildcards in filtersWildcard patterns in window titles, element text, and file and folder filters are now matched correctly. A pattern that previously never matched may now match. Review tasks whose fields contain *, ?, or #. See Wildcard Matching.

1.1.0​

TopicWhat to know
ACS plugin updateRequired. The task schema changed so that tasks are fetched from the OpCon RPA server for querying and running. Update the ACS Plugin DLL.
Task storageTasks are now stored locally on the RPA Agent instead of in the OpCon Script Repository. Existing tasks remain available in the local database.
OpCon userOpCon RPA no longer requires an OpCon user. The OpCon Settings tab has been removed from the Tray Client. Stop the RPA Agent before removing the OpCon user that was associated with it.
Existing master jobsExisting master jobs continue to run. When you edit one, OpCon displays upgrade instructions.

1.0.2​

TopicWhat to know
ACS plugin updateNot required. No update was made to the ACS plugin in this version.
Network CredentialsThis version fixed a bug where passwords for Network Credentials were not being saved. Update the password on every existing Network Credential before using it with an Execution Context, even if you were not using it before. Passwords are encrypted with the Windows Data Protection API.
Robot tasksThis version made an Execution Context required for all Robot tasks. Any existing Robot task must be saved and published again with an Execution Context defined. See Execution Context.
Impact on existing tasksRunning existing Robot tasks results in job failures until each task has been saved and published with an Execution Context.

1.0.1​

TopicWhat to know
ACS plugin updateRequired. This update is needed to receive a bug fix where Agent status showed as available even when the Tray Client was not actually running.

Step 1 — Stop the RPA Agent service and Tray Client​

Do this step every time you update, before running the installer.

To stop the RPA Agent service and Tray Client, complete the following steps:

  1. Stop the RPA Agent service:
    1. Press the Windows key.
    2. Type services.msc and press Enter.
    3. In the list, find RPA Agent (the service name is RPA.Agent).
    4. Right-click the service and select Stop.
  2. Close the Tray Client:
    1. Exit the RPA Tray Client completely.
    2. Confirm it is not just minimized to the system tray (the area near the clock in the bottom-right corner). If you see the RPA Tray Client entry there, right-click it and select Quit Tray Client.

RPA Tray Client entry in the Windows system tray

Step 2 — Back up your settings and database​

Required before updating to 1.2.0 or later

For 1.2.0 and every later version this step is not optional. The database records which Agent version last wrote to it, and the new version stamps that record the first time it starts — after which the version you updated from refuses to open it. A backup taken before the update is the only way back. See Back Up and Restore the Database.

To back up your RPA Agent settings and database, complete the following steps:

  1. Confirm the RPA Agent service is stopped, as in Step 1. Stopping writes to the database is what makes the copy consistent.
  2. Open File Explorer, type or paste C:\Program Files\RPAAgent into the address bar, and press Enter.
  3. Right-click appsettings.json and select Copy. Paste the copy into a safe folder.
  4. Right-click the DataCache folder and select Send to > Compressed (zipped) folder. Take the whole folder rather than the database file alone — it can hold companion files for a transaction in progress.
  5. Rename the zip to include the version you are updating from, such as rpa_backup_1.1.0.zip, and copy it somewhere off the RPA host.

For the full procedure, including how to restore a backup and how to return to an earlier version, see Back Up and Restore the Database.

Step 3 — Update the ACS plugin (only if required)​

If the considerations for your version say the ACS plugin update is required, replace the ACS Plugin DLL in your OpCon plugins directory using the same procedure as a new install.

See Step 3 of the installation procedure — copy the new sma.acs.OpConRPA.dll into the plugins directory, overwriting the existing file.

If the considerations say the plugin update is not required, skip this step.

Step 4 — Run the RPA Agent installer​

The RPA Agent Installer is named RPAAgent_x.y.z.msi (x.y.z is the version number). After downloading from OWI, the installer is usually in your Downloads folder. Open File Explorer and select Downloads on the left, or check your browser's download list.

To run the update, complete the following steps:

  1. Run the .msi file. The welcome page of the setup wizard is displayed.
  2. Select Next. The ready-to-install page is displayed. An update does not show the Agent Mode page, because it keeps the installed mode.
  3. Select Install.
  4. When Windows asks "Do you want to allow this app to make changes to your device?", select Yes.
  5. Wait for the installer to complete, then select Finish.

The update is complete. On a Full mode Agent, the installer starts the Tray Client again when it finishes. On a Background only Agent it does not.

Updating to a version earlier than 1.3.0

Installers before 1.3.0 show no wizard pages. After you run the .msi file and answer the Windows prompt, the installer runs to completion on its own.

Step 5 — Verify the service and Tray Client are running​

After the installer finishes, confirm that both the RPA Agent service and the Tray Client are running.

5a. Verify and start the RPA Agent service​

To verify and start the RPA Agent service, complete the following steps:

  1. Press the Windows key.
  2. Type services.msc and press Enter.
  3. In the list, find RPA Agent (the service name is RPA.Agent).
  4. Check the Status column. It should say Running.
  5. If it does not say Running, right-click the service and select Start.

5b. Verify and start the Tray Client​

To verify and start the Tray Client, complete the following steps:

  1. Look for the RPA Tray Client entry in the system tray (near the clock in the bottom-right corner). If you see it, the Tray Client is already running.
  2. If you do not see the entry:
    1. Press the Windows key.
    2. Type RPA Agent Tray Client.
    3. Select it from the Start menu. You can also look under Start > All Apps > RPA Agent > RPA Agent Tray Client.
  3. After the Tray Client is open, you can minimize it to the tray. The Agent is then active and ready for use.
note

On a Full mode Agent, the installer also registers the Tray Client to start automatically when a user signs in to the host, so it normally comes back on its own after a restart. A Background only Agent runs its tasks without the Tray Client, so the Tray Client is not started automatically there. Open it from the Start menu when you need to edit tasks.

Step 6 — Apply post-update tasks for your version​

After the service and Tray Client are running, apply any version-specific tasks listed in the update considerations for the version you just installed.

If you updated to 1.3.0:

  • Confirm that antivirus, application allow-list, monitoring, and firewall rules name RPA.WebMacro.exe and RPA.WebBrowser.exe rather than the old file names. See the 1.3.0 considerations.
  • Review any file or folder filter whose Folder or Include file mask contains # or [. Those characters are now matched as wildcards. See Wildcard Matching.
  • Give each Web Macro Print page step that uses Microsoft Print to PDF or Microsoft XPS Document Writer an output file. See Web Macro.
  • Keep the backup you took in Step 2 until you are satisfied with the update. It is the only way back to 1.2.x.

If you updated to 1.2.0:

  • Confirm the service runs as Local System. Run sc qc RPA.Agent in an elevated command prompt and check that SERVICE_START_NAME reads LocalSystem.
  • Confirm every Web Macro and Scan Document task has an execution user, and that each one has been saved since the update. Without a stored execution user those tasks fail. See the 1.2.0 considerations.
  • Review any task whose window title, element text, or file and folder filters contain *, ?, or #. Those patterns are now matched as wildcards. See Wildcard Matching.
  • Keep the backup you took in Step 2 until you are satisfied with the update. It is the only way back to 1.1.0.

If you updated to 1.0.2:

  • Update the password on every existing Network Credential before using it with an Execution Context.
  • Save and publish every existing Robot task with an Execution Context defined. Until you do this, running those tasks results in job failures.

FAQs​

Do I need to update the ACS plugin every time I update OpCon RPA? No. Check the update considerations for the version you are installing. Versions 1.0.1, 1.1.0, and 1.2.0 required an ACS plugin update; version 1.0.2 did not. For 1.3.0 the update is recommended but not required.

Can I go back to 1.1.0 after updating to 1.2.0? Not without restoring a backup. Once 1.2.0 has started, the database is stamped as 1.2.0 and 1.1.0 refuses to open it — its service will not start. Restore the DataCache folder from a backup taken before the update, and re-enter any credential added or changed since.

Can I go back to 1.2.x after updating to 1.3.0? Not without restoring a backup, for the same reason: once 1.3.0 has started, 1.2.x refuses to open the database. Uninstall 1.3.0, install the earlier version, and restore the DataCache folder from a backup taken before the update. See Back Up and Restore the Database.

Can I switch an existing Agent to Background only mode by updating it? No. An update keeps the installed mode. See Switch modes.

Why do Web Macro tasks stop starting after updating to 1.3.0? Find out whether an antivirus, application allow-list, or monitoring rule blocks RPA.WebMacro.exe, which replaced VisualCronWebMacro.exe. See the 1.3.0 considerations.

Why does a Web Macro or Scan Document task fail after updating to 1.2.0? Most likely it has no stored execution user. 1.2.0 runs those tasks in their own host process with no interactive session, that process is never run as Local System, and there is no fallback to a connected RPA Tray Client. Open the task, set an execution user, and save it. See Troubleshooting.

Does updating change the account the RPA Agent service runs as? No. An update keeps the installed Agent mode, and with it the service account: Local System for a Full mode Agent, which every version before 1.3.0 installed, and NT SERVICE\RPA.Agent for a Background only Agent.

How do I update the ACS plugin? Replace sma.acs.OpConRPA.dll in your OpCon plugins directory with the new copy from OWI. The procedure is the same as a new install — see Step 3 of the installation procedure.

Why are my existing Network Credentials not working after updating to 1.0.2? Version 1.0.2 fixed a bug where passwords for Network Credentials were not being saved. After updating, update the password on every Network Credential before using it with an Execution Context.

Why are my existing Robot tasks failing after updating to 1.0.2? Version 1.0.2 made Execution Context required for all Robot tasks. Save and publish each existing Robot task with an Execution Context defined.

Should I back up my settings before updating? Yes, before updating to 1.2.0 or any later version — the backup is the only route back to the version you updated from. For earlier versions it is optional. To back up settings, copy appsettings.json and the DataCache folder from C:\Program Files\RPAAgent to a safe location.

Where do I download the installer and ACS plugin? Use the OpCon Web Installer (OWI). The RPA Agent Installer is in the Agents section; the ACS Plugin DLL is in the Integrations section.

Glossary​

TermDefinition
RPA AgentThe agent that performs robot task automation on a target Windows machine.
RPA Tray ClientThe local Windows interface that runs alongside the RPA Agent, used to configure the HTTPS URI and API token.
ACS Plugin DLLThe OpCon Application Connection Studio plugin file (sma.acs.OpConRPA.dll) that lets the OpCon SAM communicate with the RPA Agent.
Network CredentialA stored credential in the RPA Agent used by Robot tasks. Encrypted with the Windows Data Protection API.
Execution ContextThe configured rules for how a Robot Task interacts with the machine before and after it runs. Required for all Robot tasks starting in 1.0.2.
OpCon Web Installer (OWI)A tool that bundles OpCon installer artifacts, including the ACS Plugin DLL and the RPA Agent Installer.
DataCacheThe folder under C:\Program Files\RPAAgent holding the local database of tasks, versions, and encrypted credentials. It survives an uninstall.
Agent modeHow the RPA Agent service runs, chosen when the Agent is first installed: Full (Local System, every task type) or Background only (NT SERVICE\RPA.Agent, background tasks only). An update keeps it.