# Courier Quick Start Guide

The fastest path from download to a first notice on one computer. For more
detail on any step, upgrading, uninstalling or troubleshooting, see
[`installation.md`](installation.md). For the one port Courier uses, see
[`network-requirements.md`](network-requirements.md).

Courier is a public beta for everyday notices. It is not for emergencies: it
gives no promise that a notice arrives in time, and it does not replace your
fire alarm, your PA or bell, or your school's lockdown procedure. It has only
been tried in a small lab so far, so start with one computer and then a few.

Prefer to watch? The [videos](https://courier.rsjsoftware.com/learn) show the
install and a first notice, with captions and no sound.

---

## Before you start

You will need:

- A 64-bit Windows computer that stays on, normally a Windows Server, for
  Courier itself, and administrator rights to install it
- One Windows computer to try it on, that can reach the server on TCP port 8445
- Nothing from the internet needs to reach the server

No Python install and no `git clone` -- everything is bundled in the installer,
including the RSJ Agent installer that puts Courier's notices on your
computers. There is no licence key to request. The Pricing section of the
[Courier website](https://courier.rsjsoftware.com/#pricing) is the one place
that says what Courier costs.

---

## Step 1 -- Download and run the installer

1. Download the latest `CourierSetup.exe` from the
   [Releases page](https://github.com/rsjsoftwareltd/courier-beta/releases).
2. Run it on the server and approve the administrator prompt.
3. The installer should name **RSJ Software Ltd** as its publisher. While that
   publisher is new, Windows SmartScreen may show "Windows protected your PC":
   click **More info**, check the publisher, then **Run anyway**. If the
   publisher shows as unknown, do not run it.
4. Leave the Windows Firewall box ticked (inbound TCP 8445) unless you manage
   the firewall by Group Policy, in which case untick it and open the port
   yourself.

Courier then runs as the **Courier** Windows service, started automatically.

---

## Step 2 -- Create the first administrator

On the server, choose **Courier -> Open Console** from the Start menu. It opens
`https://localhost:8445`.

Your browser will warn that the connection is not trusted. This is expected:
Courier makes its own certificate. Choose to continue.

Choose **Create admin account**: a username, a display name and a password of
at least ten characters, twice. This can only be done on the server itself,
and only while Courier has no accounts. There is no default password.

> Keep the password safe. If every account is lost, `Courier.exe --setup-admin`
> from an elevated prompt in the program folder is the recovery; see
> [`installation.md`](installation.md).

---

## Step 3 -- Put the RSJ Agent on one computer

1. In the console, open **Agent Settings** (under Configuration), the
   **Deploy** tab, and find **Deploy the RSJ Agent**.
2. Enter the server's name as your computers reach it, and choose
   **Download deploy script**. The script holds your server's connection
   secret: keep it private and delete it when you are done.
3. Copy it to the computer and run it from an elevated PowerShell window:
   `powershell.exe -ExecutionPolicy Bypass -File .\Deploy-RSJAgent-Courier.ps1`

It installs the RSJ Agent and enrols the computer. It then appears under
**Agent Settings**, **Devices**, **Registered**. If the computer already runs
Groundskeeper or Caretaker it already has the agent; the script only enrols
it with Courier.

---

## Step 4 -- Switch Courier on for it

A computer shows notices only once it has the Courier module. On
**Agent Settings**, the **Courier module** tab, tick the computer and choose
**Enable on selected**. It collects the module at its next check-in, about a
minute later, and the card then shows **Installed**.

---

## Step 5 -- Send a first notice

1. Open **New notice**. Under **Send to**, leave **Computers** selected and tick
   your computer.
2. Give the notice a title and a message. Leave **Expires after** at one hour.
3. Choose **Preview...**. Check how it will look, who it reaches and when it
   closes, then choose the Send button at the bottom of the preview.
4. You land on the notice's **Results** page. On the computer the notice
   appears in its own window; pressing OK acknowledges it. Results shows each
   step as it happens: Waiting, Received, Displayed, Acknowledged.

Displayed means it was on the screen. It does not mean anyone read it.

---

## You're done

Next, if you want them: send to people instead of computers, address Active
Directory groups, save templates with blanks, and add sender accounts with
limits. Each has a page in the
[documentation](https://courier.rsjsoftware.com/docs/).

---

## Troubleshooting

- **The computer does not appear under Registered** -- run the deploy script
  from an elevated PowerShell window, and check the computer can reach the
  server on TCP 8445 (`Test-NetConnection <server> -Port 8445`).
- **A notice stays on Waiting** -- the computer is off or offline, has no
  Courier module, or cannot reach the server. It collects the notice when it
  returns, if that is before the notice expires.
- **The browser shows a certificate warning** -- expected, see Step 2.

Full list: [Troubleshooting](https://courier.rsjsoftware.com/docs/Troubleshooting).
