The Prima client installer can run without its graphical interface, so client applications can be installed silently — from a Command Prompt, a PowerShell session, or an automated deployment tool such as Group Policy, SCCM, or an RMM. This is the recommended approach when rolling out clients to many workstations at once.
There are two ways to drive a headless install:
InstallPrimaClients.exe with the console verb. The clients require
the .NET Desktop Runtime to already be present on the machine.
Install-PrimaClients.ps1, which installs the .NET Desktop Runtime if it is
missing, runs the installer, and then verifies the installed product versions. This is the
easiest option for a fresh machine.
Execute InstallPrimaClients.exe with the console verb from a PowerShell or
Command Prompt window that has administrator access.
.\InstallPrimaClients.exe console -u 'https://localhost:5001' -p 'ws'
.\InstallPrimaClients.exe console -u 'https://localhost:5001' -p 'ws p'
.\InstallPrimaClients.exe console -u 'https://localhost:5001' -p 'ws' -w 'accession'
-p
(for example -p 'ws p lm'). See the
Options Reference for the full list of program codes.
The console verb accepts the following options:
| Option | Required | Description |
|---|---|---|
-u, --server |
Yes |
The URL of the Prima server. Must include the protocol
(http:// or, more typically, https://).
|
-p, --programs |
Yes | The applications to install, separated by a space. See the program codes below. |
-w, --workstation |
No | The workstation the user is associated with. Defaults to the workstation previously used to install clients, or the machine's name on a fresh install. Creates a new entry in the Prima database if the workstation does not already exist. |
-f, --force |
No | Forces a reinstall of the clients even if they are already installed. |
Pass one or more of these to -p, separated by spaces. Either form may be used.
| Application | Short code | Long code |
|---|---|---|
| Workstation | ws | workstation |
| Control Panel | cp | controlpanel |
| Pathologist | p | pathologist |
| Lab Manager | lm | labmanager |
| Label Template Creator | ltc | labeltemplatecreator |
Install-PrimaClients.ps1 wraps the console installer and handles the prerequisites for you.
It:
Download Install-PrimaClients.zip
.zip archive containing
Install-PrimaClients.ps1. Extract it before running. Depending on your PowerShell
execution policy you may need to unblock the file first
(Unblock-File .\Install-PrimaClients.ps1) or run it with
powershell -ExecutionPolicy Bypass -File .\Install-PrimaClients.ps1 ....
#Requires -RunAsAdministrator
and will refuse to run otherwise.
| Parameter | Required | Description |
|---|---|---|
-ServerUrl |
Yes | The URL of the Prima server endpoint (for example https://localhost:5001/). |
-Programs |
Yes | Space-separated list of programs to install (same codes as the console installer). |
-Workstation |
No | The workstation name the user is associated with. |
-Force |
No | Forces a reinstall of the clients even if already installed. |
-SkipDotNetInstall |
No | Skips the .NET Desktop Runtime installation (useful when it is already installed). |
-InstallerPath |
No | Path to InstallPrimaClients.exe. Defaults to the current directory. |
Install the Label Template Creator and associate it with the accession workstation:
.\Install-PrimaClients.ps1 -ServerUrl 'https://localhost:5001/' -Programs 'ltc' -Workstation 'accession'
Force a reinstall of Workstation, Pathologist, and Lab Manager:
.\Install-PrimaClients.ps1 -ServerUrl 'https://prima.example.com' -Programs 'ws p lm' -Force
Install Workstation and Pathologist when the .NET Desktop Runtime is already present:
.\Install-PrimaClients.ps1 -ServerUrl 'https://localhost:5001/' -Programs 'workstation pathologist' -SkipDotNetInstall
-w / -Workstation value must be provided if the software is not on the
latest version, or if it is a brand-new install.
http:// or, more typically, https://.
The console installer returns the following exit codes, which the PowerShell script reports on failure:
| Code | Meaning |
|---|---|
0 | Success |
1 | Parse error (check the command-line arguments) |
2 | Unhandled exception |
4 | Missing manifest file |
8 | Lab site mismatch (likely the wrong client installer for this server) |
C:\ProgramData\FortelineaSoftwareSystems\Prima\Logs. The Windows Event Viewer
(Application and System logs) is also a good place to check.