TotePathHelp
On this page

Help / Administration

Install the TotePath agent on a pharmacy PC

Install, check and remove the TotePath agent on the Windows computers that run PrimeRx and the scan station.

For: IT

The TotePath agent is a small Windows program. It watches the folder where PrimeRx saves order files, sends them to TotePath, and gives the pharmacy the Scan station window for scanning, releasing and printing labels. Use this page when you set up a new pharmacy, add a computer, or replace one.

Before you start

You need Detail
Windows Windows 11 (x64). Windows Server also works.
Rights A local administrator account on the PC.
Network Outbound HTTPS (port 443) to app.totepath.com and updates.totepath.com (the update feed). No inbound ports. A proxy or firewall that inspects HTTPS traffic will break the connection, so ask for this computer to be exempted.
PrimeRx PrimeRx must be set to export order files (saved as .txt) into a known folder, such as C:\PrimeRx\Export. Confirm the exact path with the pharmacy first.
TotePath The pharmacy exists as a location in the portal, and you can sign in as a Tenant Owner.

One PrimeRx install, one location. Each location has its own upload token.

  • A site that runs two separate PrimeRx instances is two locations. Install on two computers, each with its own location's token. Do not use one token for both, or the two PrimeRx feeds merge into one location.
  • A PrimeRx server plus a front-counter station at the same pharmacy is one location. Use the same token on both computers.

There are two kinds of install:

  • PrimeRx server: watches the export folder. This is the computer that PrimeRx exports to.
  • Front counter: the scan station only, for the PC with the barcode scanner and label printer. It has no export folder.

1. Get the installer and the token

  1. In the portal, click Settings > Locations and open the pharmacy.
  2. Download the installer with the Download agent button. It is a signed Windows installer (.msi). The page shows its SHA-256 checksum so you can confirm the file is intact.
  3. Under Upload token, click Generate token (or Regenerate token if one exists).
  4. Copy the token from New upload token. It is shown once. Keep the page open until you have pasted it into the installer.

2. Run the installer

  1. Copy the .msi file to the pharmacy PC and double-click it.
  2. At the Windows security prompt, check that the publisher reads Karma-Tek Consulting, LLC. If it says Unknown Publisher, stop. You have the wrong file.
  3. Keep the default install folder, C:\Program Files\TotePath Agent\.
  4. On the location settings screen:
    • PrimeRx server: click Browse and choose the folder PrimeRx exports to, then paste the upload token.
    • Front counter: tick This is the front-counter scan station only, and paste the same upload token. Do not choose a folder.
  5. Finish the installer. It starts a Windows service called TotePath On-Prem Agent, set to start automatically.

For many computers, an IT tool can run the installer with no screens:

msiexec /i totepath-agent.msi INBOX_PATH="C:\PrimeRx\Export" UPLOAD_TOKEN="<token>" /qn
msiexec /i totepath-agent.msi STATION_ONLY=1 STATION_AUTOSTART=1 UPLOAD_TOKEN="<token>" /qn

The first line is for the PrimeRx server. The second is for a front-counter PC and opens the station at every sign-in. The token is on the command line, so run these from a management tool, not a shared window.

3. The export folder

The agent picks up the PrimeRx export files from this folder. When it uploads a file, it moves it into a processed folder inside the export folder. A file the server rejects goes into failed. An empty export folder means the pharmacy is caught up.

Export folder on another computer

The service runs as the local system account, which cannot open a folder on another computer. If PrimeRx exports to a network share:

  1. Create a Windows account for the agent, for example rxagent, with the same password on both computers and a password that never expires. On the server, give it Modify access to the share and the export folder. On the agent PC, make it a member of Administrators, because the agent installs its own updates. A domain account works the same way.
  2. On the agent PC, open services.msc, open TotePath On-Prem Agent, and on the Log On tab choose This account. Enter the account and password, and click Apply. Windows confirms it granted the Log on as a service right.
  3. Restart the service.
  4. In the portal, set PrimeRx export folder to the full network path, such as \\server\share\PrimeRx\Export.

Do not use a mapped drive letter. A background service cannot see them. Updates keep this account.

If you skip this and the agent cannot open the folder, the portal shows Folder unreadable. See Station and agent settings.

4. Set up the label printer

On the PC with the Zebra printer, open TotePath Scan Station from the Start menu. The station opens in its own window. Next to Printer, click Change…, choose the Zebra, and click Save. Click Test label and check that a label prints before you leave.

You can also set the printer name in the portal under the machine's Label printer field. See Station and agent settings.

5. Confirm it is working

  1. In the portal, open the pharmacy under Settings > Locations. Within a few minutes the Agents section lists the computer and the status shows Online.
  2. Ask the pharmacy to export an order from PrimeRx, or copy a known-good test export into the folder.
  3. Within about two minutes, the file should move into the processed folder.
  4. Open Scan station on the PC. The order should appear under Waiting for release.
  5. For a fuller check, run this from an administrator command prompt:
sc query totepath-agent
"C:\Program Files\TotePath Agent\totepath-agent.exe" status

The first should say RUNNING. The second shows the server address, the export folder, and token: provisioned.

The agent's own Dashboard tab is the quickest health view: the Agent card should say Running, and the Upload token line should say provisioned.

The agent's Dashboard tab showing Running and a recent upload
The agent's Dashboard tab showing Running and a recent upload

Updates

The agent installs new signed versions by itself and then restarts. Version 0.11.0 is the release pharmacies run at go-live. It adds a third Scan station mode, Batch release, beside Release & print and Handoff to courier. An agent on an older version gets it at its next update. It usually picks up a new release within minutes, because the heartbeat reports it, and it also checks every hour as a backstop. Settings and the saved token are kept. You do not need to visit the pharmacy. The agent shows Updating TotePath Agent while it works and the window reconnects on its own. Update timing is a setting in the portal. See Station and agent settings.

Change the token on a computer

If the portal shows Blocked, or you regenerated the token:

  1. On the agent's Dashboard tab, next to Upload token, click Change….
  2. Paste the new token and click Save. The agent says Token saved, and the next heartbeat confirms it. When the agent is blocked, a red banner on the page offers a box for the same purpose, with Save token & resume.
  3. Repeat on every computer at the pharmacy. A new token replaces the old one for all of them.

Uninstall

Open Settings > Apps in Windows, find TotePath On-Prem Agent, and uninstall it. This removes the service and the program. It leaves these behind on purpose:

  • C:\ProgramData\TotePath Agent\, which holds the agent's log, upload record and encrypted token.
  • The processed and failed folders inside the export folder.

If you are decommissioning the pharmacy, delete both by hand. Then use the portal to Forget the machine under the location's Agents section.

If something goes wrong

  • The installer says Unknown Publisher. Stop. Download the installer again from the portal.
  • The portal shows Never checked in. The installer did not finish, the token was pasted wrongly, or the PC cannot reach app.totepath.com on port 443.
  • The portal shows Blocked. TotePath rejected the token. Generate a new one and change it as above.
  • Files stay in the export folder. Uploads are failing. Check the internet connection and any HTTPS inspection. The files send on their own once the connection returns.
  • A file is in the failed folder. The server rejected it. Ask the pharmacy whether PrimeRx's export settings changed, then contact TotePath support.
  • The service will not start after switching accounts (error 1069). The password is wrong, or the account lacks the Log on as a service right. Set the account on the Log On tab in services.msc.