# 📀 PAW Setup

**Audience:** System administrators who install and update the Orchestrator server **Prerequisites:** Administrator rights on the server, an RPA WORK Portal API access (Client ID and Client Secret)


---

## Overview

**PAW Setup** is the desktop application that installs and updates [Orchestrator](/doc/orchestrator-SxEGgSjihl) on a Windows server. It connects with your API access in the RPA WORK Portal, takes your environment's information from the portal, installs Orchestrator's web applications on IIS, and downloads and installs new release packages from the portal.

Orchestrator consists of six applications; the portal determines which ones are installed in an environment:

| Application | Default site name | Default port |
|-------------|-------------------|--------------|
| Backend Api | `paw.api.backend` | 7724         |
| Resource Api | `paw.api.resource` | 7723         |
| Shared Api  | `paw.api.shared`  | 7722         |
| Ui Api      | `paw.api.ui`      | 7721         |
| Bp Api (Blue Prism) | `paw.api.bp`      | 7725         |
| Ui (web interface) | `paw.ui`          | 80           |

For Backend, a Windows service named **PAW Backend Service - <environment name>** is also installed.

On this page you will learn:

* Prerequisites and first installation steps
* API access and opening the environment
* Environment settings and editing
* Installing versions and publishing applications
* Maintenance actions, removing the environment and where settings are stored


---

## Prerequisites

| Requirement | Description |
|-------------|-------------|
| Administrator rights | PAW Setup asks for administrator permission (UAC) every time it opens. |
| IIS         | The **Application Initialization** and **WebSocket Protocol** roles under Web Server (IIS) and Application Development must be enabled; otherwise publishing and installation stop. |
| Database and services | SQL Server, Elasticsearch and, if Ui is installed, Redis must be reachable from the server. |
| Certificate | If https is used, the certificate must be in the server's **Personal** (My) or **Web Hosting** (WebHosting) store. |
| Internet    | Access to the portal (`https://api.rpa.work`): authentication, environment information and release packages come from there. |

The PAW Setup installer installs the .NET Desktop Runtime itself if needed.


---

## First Installation


1. Open PAW Setup and approve the administrator prompt.
2. Enter the **Client ID** and **Client Secret** and click **Check Credentials**.
3. Use **Open Environment** to create the environment from the portal's information.
4. Use **Edit** to enter the database, Elasticsearch and (if Ui is installed) Redis information, then click **Save**. In a new environment this information is empty; installation cannot be done until it is filled in.
5. On the **Install Version** page, install Orchestrator with **Check Updates**, **Download all** and **Install Versions**.
6. Verify the installation with **Test Connection** and **Test Api Url**.
7. If needed, upload the license file with **Import License**.


---

## Start Screen (API Access)

There is no sign-in with a username and password; the application works with a portal API access.

 ![PAW Setup Start Screen](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/a406920a-3878-4f5f-8f8b-7593ba62e617/bcf0430f-465b-432e-af18-e465685f1533/en-setup-eng.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20261123%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20261123T233000Z&X-Amz-Expires=86400&X-Amz-Signature=8c8ba29b2d73cd476a15dd754d60afee43287d5d0fa8044cecd407fcc2592309&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =1509x822")

| Item | Description |
|------|-------------|
| **API Access** | Shown when more than one access is saved; selects the active access. Items are listed as "Company - Environment" and can be searched with the **Filter** box. Local environments not linked to any access are at the end of the list. |
| **Client ID** | The ID (GUID) of the API access in the portal. Read-only for a saved access. |
| **Client Secret** | Shown only when adding an access or changing credentials. |
| **Check Credentials** | Verifies the credentials in the portal and saves them. The environment is not created in this step. |
| **Change Credentials** (pencil) | Opens the form to enter a new Client ID / Client Secret; the old ones stay valid until the new ones are verified. |
| **Add API Access** | Adds a second access for another portal environment; other accesses are kept. |
| **Remove API Access** (trash can) | Removes the selected access from this machine (below). |
| **Include beta versions** | Shown if the portal allows beta for this access; when selected, PAW Setup and product packages are checked on the beta channel. |
| **Open Environment** | Updates the active access's environment from the portal and opens **Environment Detail**. |
| **Check Updates** | Checks only for an update of PAW Setup itself; if there is one, it is installed with **Download and install** and the application restarts. |

Messages you may see during verification: "Client ID is not valid.", "Could not reach the portal API. Check the URL and your network connection.", "Portal authentication failed.", "No license is linked to this API access in the portal.", "No environment (Production / Development) is selected for this API access in the portal.", "The license linked to this API access has been revoked."

### Open Environment

The environment name and the applications to install come from the portal. In a new environment, site names, ports, the wwwroot path and URLs are filled in with the portal's defaults. In an existing environment, only the fields you have not changed are updated with the portal values.

If there is exactly one local environment on the machine that is not linked to any access, **Adopt Environment** is asked: if you answer **Yes**, that environment's settings are linked to this access under the new name; if you answer **No**, a new environment is created.


---

## Environment Detail

The environment's settings are shown in read-only cards. Ribbon buttons at the top:

| Button | What it does |
|--------|--------------|
| **Edit** | Opens the environment editing page. If the certificate of an application using https has been renewed, it first offers to select the new certificate (**Certificate Renewed**). |
| **Test Api Url** | Sends a request to each API's `/api/Version` address and shows the returned version. A single API can be selected from the submenu. |
| **Test Connection** | Tries the SQL, Elasticsearch and Ui Redis connections; a single connection can be selected from the submenu. |
| **Publish Application** | Applies the settings to IIS (below). A single application can be selected from the submenu. |
| **Install Version** | Opens the **Install Version** page. |
| **Clear Redis Cache** | Empties the configured Ui Redis database completely, without asking for confirmation. |
| **Start Hangfire** | Starts the scheduled jobs (Hangfire) on Backend Api. |
| **Import License** | Asks for a `.lic` license file, updates the license key of the company in the license in the database and clears the Redis cache. |
| **Run Script** | Runs an encrypted `.pscr` SQL script provided by RPA WORK on the environment's database. |

Cards: **General Configuration**, **Elasticsearch Configuration**, a **<Application> Configuration** card for each application, **BP Url Configuration**, **Ui Configuration** and **Ui Redis Configuration**. Passwords are not shown. **Back** returns to the start screen.


---

## Editing the Environment

Use **Edit Applications** to turn the environment's applications on and off (at least one must stay on); **Save** stores the settings. **Back** discards unsaved changes after a confirmation. A warning appears next to an empty required field.

### General Configuration

| Field | Required | Description |
|-------|----------|-------------|
| **Authentication** | Yes      | **SQL Server Authentication** or **Windows Authentication**. |
| **Data Source** | Yes      | SQL Server server and instance name. |
| **Initial Catalog** | Yes      | The Orchestrator database. |
| **Username** / **Password** | Yes      | With SQL Server Authentication, the SQL user. With Windows Authentication, the Windows account the IIS application pools run as; the database is accessed with this account. |
| **Additional SQL Connection Parameters** | No       | Default `MultipleActiveResultSets=True;TrustServerCertificate=True`. |
| **wwwroot Path** | Yes      | Default `C:\inetpub\wwwroot\`. Each application's folder is created under this path with the site name. |

### Elasticsearch Configuration

**Elastic Search Server** (e.g. `http://server:9200/`), **Elastic Search Username** and **Elastic Search Password** are required. The APIs' error logs are written to this server.

### Application cards

For each application that is on:

| Field | Required | Description |
|-------|----------|-------------|
| **Site Name** | Yes      | IIS site and application pool name, and the folder name under wwwroot. |
| **Maximum Worker Processes** | Yes      | Number of worker processes of the application pool. Default 1. |
| **Binding Protocol** | Yes      | `http` or `https`. Selecting https sets the port to 443. |
| **Ip Address** | Yes      | `*` (all unassigned) or an IP address. |
| **Port** | Yes      | Defaults are in the table above. |
| **Host Name** | No       | The host name in the IIS binding. |
| **Certificate Thumbprint** | Yes with https | Selected from the certificates on the machine; expired ones are marked. |
| **Require Server Name Indication** | Yes with https | If True, the binding uses SNI. |

The **Ui** card also has **Ui Api Url** (required), **Recaptcha Site Key**, **Recaptcha Secret Key** and **Company Logo Style**. **Bp Api Url** in **BP Url Configuration** is written to the Backend Api and Ui Api settings for the Blue Prism integration. URLs are completed with `/api/` when saved.

### Ui Redis Configuration

**Ui Redis Server**, **Ui Redis Port**, **Ui Redis Password** and **Ui Redis Database Number** are required; **Ui Redis Service Name** is optional. Use **+** to add extra server rows, up to five servers in total.

### Save

* If an application that was turned off is installed in IIS, you are asked whether to remove these applications too. If you answer **Yes**, the IIS site, application pool and folder are deleted.
* The same host name and port cannot be used by two applications, and cannot conflict with the site names and bindings of an environment linked to another API access.
* If the site name changed, the IIS site, pool and folder are moved to the new name. Port, IP and protocol changes are applied to IIS with **Publish Application**.
* The settings (except passwords) are reported to the portal; if they cannot be reported, a warning appears on Environment Detail.


---

## Install Version

When the page opens, the latest versions are read from the portal. There is a card for each product: **Orchestration** always, **Resource** and **Robot** if Resource Api is installed. The card shows **Installed**, **Downloaded** and **Latest** and the status: **Not installed**, **Up to date**, **Update available** or **No package published**.

| Button | What it does |
|--------|--------------|
| **Check Updates** | First checks for a PAW Setup update; if there is one, it must be installed before the product packages. Then reads the latest versions of the products. |
| **Download all** (or the download icon on a card) | Downloads the packages that have updates after showing the current and new version and the size and asking for confirmation. |
| **Install Versions** | Enabled when the latest packages have been downloaded; shows the applications to install, asks for confirmation and starts the installation. |
| **Publish Resource / Robot Update** | Appears instead of **Install Versions** when Orchestrator is up to date and only new Resource/Robot packages have been downloaded; publishes Resource Api without reinstalling Orchestrator. |

> ⚠️ **Warning:** The installation disables the enabled **Production** machines of all companies for the duration of the installation and waits for running machines to stop. Install at a time with little workload.

Installation steps:


1. The installation is prepared and production resources are disabled.
2. The installation waits for production resources to stop. The **Production machines** list shows each machine's state and the number of ready machines; a machine that has sent no signal for 5 minutes counts as ready. After 30 minutes, **Resources still running** is asked: **Continue anyway**, **Keep waiting** or **Cancel**.
3. Server roles and the Redis and Elasticsearch connections are checked; the PAW Windows service is stopped and removed; release files are extracted.
4. The sites are put on a maintenance page ("We’ll be back soon!"), the applications are installed (the old folder is kept as `<site name>.old`) and the configuration is published to IIS.
5. The UI Redis cache is cleared, the maintenance page is removed, the Elasticsearch log indices are deleted and recreated, and Hangfire is started.
6. Production resources are re-enabled and the installed version is reported to the portal.

If a step fails during installation, the error and the stage are shown; choose **Retry** or **Cancel**. If the error happens in a step after the files have changed, the sites stay on the maintenance page. When cancelling while machines are disabled, you choose **Enable now** or **Leave disabled**. For machines left marked as updating by a previous installation, the page shows a warning and a **Re-enable machines** button.


---

## Publish Application

**Publish Application** does not copy files; application files are installed by **Install Version**. Publishing does the following without asking for confirmation:


1. Deletes the IIS site and application pool (the folder stays).
2. Writes the environment settings (`environmentsettings.json`, with the encrypted database connection) and the log settings (`nlog.config`) to the site folder.
3. For Ui, copies the company logo to the sign-in page.
4. For Backend Api, empties the Hangfire job queue tables and reinstalls and starts the **PAW Backend Service - <environment name>** service.
5. For Resource Api, prepares the downloaded Resource and Robot packages for distribution; PAW Resource machines take the update from here.
6. Recreates the application pool and the site according to the settings (always running, no idle shutdown, preloaded).

If the folder does not exist, a "Path does not exists" error appears; install first with **Install Version**.


---

## Removing the API Access and the Environment

**Remove API Access** on the start screen removes the selected access from this machine. If an environment is linked to the access, an **also remove the environment** box appears (selected by default):

* If the box is not selected, only the access is removed; the environment's files, IIS sites and service stay. When the same credentials are added again, the environment is linked again.
* If the box is selected, a second confirmation lists what will be deleted: IIS sites and application pools, site folders, the Windows service and its folder, and the environment settings. This cannot be undone. Databases, certificates and Resource/Robot installations are not deleted; sites also used by other environments are kept.


---

## Where Settings Are Stored

| What | Where |
|------|-------|
| Environment settings (one file per environment) | `C:\ProgramData\RPA WORK\PAW Setup\Configuration\<environment name>.json` |
| API accesses | `C:\ProgramData\RPA WORK\PAW Setup\Configuration\portal.json` |
| Downloaded release packages | `C:\ProgramData\RPA WORK\PAW Setup\Version\` |
| Backend service files | `C:\ProgramData\RPA WORK\PAW Setup\Services\<environment name>\` |
| Application settings | `<wwwroot path>\<site name>\environmentsettings.json` and `nlog.config` |

Environment and access files are encrypted with a machine-bound key; they cannot be opened when copied to another machine. Language and theme choices are stored per user.