Blog

    Technologies for Desktop Apps in Clinics: When Desktop Beats Web for Connected Devices, and Safe Updates

    By GauravSeptember 17, 20269 mins read
    On this page

    Technologies for desktop apps still matter in clinics, because label printers, barcode scanners, serial-port analyzers, scales and card readers are often easier to reach from software installed on a workstation than from a browser tab. The harder questions are when a desktop app is really needed, and how it updates without breaking a front desk mid-shift.

    Startup founders and product and engineering leaders building clinic software will find a decision table, the main stack options, and an update process that clinics and their IT teams can accept.

    When does a clinic need a desktop app instead of a web app?

    A clinic needs a desktop app when the software must talk to local hardware or files that a browser cannot reach reliably, keep working when the network drops, or start with the workstation. If the devices work over the network or a supported browser API, a web app is usually simpler to deploy and update.

    Connecting clinic workstations to devices?

    We build the desktop or web client, the device layer and the update process around your hardware.

    Agnotic Technologies builds both kinds of client for clinics. The choice usually comes down to a short list of device and network questions, not a preference for one framework.

    Which device needs push a clinic toward desktop?

    Device needs push a clinic toward desktop when the hardware only offers a native driver or SDK, when capture must run without a person present, or when printing and kiosk behaviour must be controlled exactly.

    Web app or desktop app, by device need
    NeedWeb appDesktop app
    Serial or USB device on the workstationPossible in browsers that support Web Serial or WebUSB, after a user promptDirect access through the operating system and vendor drivers
    Vendor SDK shipped only as a Windows libraryNot usable from the browserCalled directly from the app or a local service
    Label or wristband printerBrowser print dialog, with limited control over layoutDirect printing to a named printer without a dialog
    Work during a network outageLimited to what the browser has cachedLocal storage and a queue that syncs later
    Folder of analyzer or scanner outputA user must pick each fileThe app watches the folder and imports files as they arrive
    Start on login or kiosk modeNeeds browser kiosk settings managed by ITStarts with the workstation and can lock to one screen

    Google's Chrome documentation says the Web Serial API lets websites read from and write to a serial device with JavaScript, and that it is available on all desktop platforms (ChromeOS, Linux, macOS and Windows) from Chrome 89. A site requests a port in response to a user gesture, and the user must select the device.

    That makes the browser a real option for simple serial devices, but only in browsers that support the API and only with a person present to approve the port. Unattended capture, such as an analyzer sending results while nobody is at the desk, still needs software installed on the machine.

    Which technologies do teams use for clinic desktop apps?

    Teams use one of four families for clinic desktop apps, chosen mostly by the devices and by the skills of the team that will maintain the app.

    Desktop app technology options for clinics
    OptionFits whenWatch for
    .NET with WPF or WinUIWorkstations run Windows only and device SDKs are .NET or COM librariesWindows only; plan which .NET runtime version locked-down machines will have
    Qt with C++The app must run on Windows and Linux, or work closely with hardwareA smaller hiring pool; check the licence terms for your use
    ElectronThe team already builds the web app in TypeScript and wants to share UI codeLarger installs; native device modules must be rebuilt for each Electron version
    TauriA web UI with a smaller footprint and a Rust layer for device accessA younger ecosystem; Rust skills needed for the native side

    A pattern that often works is a split: a small local service handles the devices, and the user interface stays the web app the rest of the organization already uses. Only that small service has to be installed and updated on each workstation.

    Lock the local service down. Bind it to the loopback address, check the calling origin and require a token, or any web page open on that workstation could talk to the devices.

    How should a clinic desktop app update safely?

    A clinic desktop app updates safely when every package is signed, each release reaches a small group of workstations first, and any release can be rolled back without a site visit.

    Electron's autoUpdater documentation says an application must be signed for automatic updates on macOS, and that there is no built-in auto-updater support on Linux, where it recommends updating through the distribution's package manager.

    The lesson holds for any stack. Unsigned updates are a gap an attacker can use, and many managed workstations will refuse them anyway. Sign every build in the pipeline and verify the signature before installing.

    • Step 1, sign: code-sign each build in the pipeline with a key kept off developers' laptops.
    • Step 2, publish to a pilot ring: a few workstations at one site, chosen with the clinic manager.
    • Step 3, watch: crash reports, device connection errors and support calls from the pilot ring.
    • Step 4, widen: move the release to the remaining rings, site by site.
    • Step 5, hold or roll back: pause the rollout, or reinstall the previous version, if errors rise.

    Testing against real clinic workstations

    Testing against real clinic workstations catches the problems a developer laptop hides: locked-down permissions, antivirus rules, old drivers and shared logins.

    • Workstation image: test on a copy of the image IT actually deploys, with the same user rights.
    • Hardware matrix: every device model and firmware version in use, not just the newest one.
    • Shared accounts: front desks often use one Windows login for several staff, which changes how the app stores settings.
    • Upgrade paths: install the previous version, then update, rather than only testing clean installs.

    Keep a small rack of the real devices in the test lab. Simulators are useful for automated tests, but a label printer's driver or a scanner's keyboard emulation only misbehaves on the real thing.

    Who controls updates, the vendor or the clinic's IT team?

    In most clinics the IT team or a managed service provider controls what is installed, so the app must fit their tools rather than update itself behind their backs.

    • Packaging: provide an MSI or MSIX package that IT can deploy with its management tools.
    • Self-update switch: let IT turn automatic updates off and push versions themselves.
    • Timing: never restart the app during a patient interaction; wait for idle time or the end of the day.
    • Version reporting: each install reports its version, so support can see which sites are behind.

    When a device or the network fails

    The app should show the failure to the user, keep what it already has, and never pretend a reading was captured.

    • Device disconnected: show it on screen and block the step that depends on the device, rather than accepting a blank value.
    • Network down: store results locally with the time and device ID, and send them in order when the network returns.
    • Partial reading: reject it, ask for a repeat and keep the raw data for support.
    • Driver error after an update: report the driver and app versions, so the rollout can pause.

    Logging without patient data on shared workstations

    The app should log enough to diagnose device and update problems without copying patient data into files on shared workstations.

    • Device details: model, firmware, driver version and connection port.
    • App events: version, update downloads, installs and rollbacks.
    • Errors: connection failures and rejected readings, with timestamps.
    • No patient data: names, identifiers and results stay out of local log files.

    Send logs to a central service so support can compare sites. A failure that appears on every workstation with one driver version points to the rollout, not the user.

    What are the common mistakes with desktop apps in clinics?

    The common mistakes with desktop apps in clinics come from choosing desktop for the wrong screens and from treating updates as an afterthought.

    • Desktop for everything: screens that need no device access end up harder to update than a web page.
    • Unsigned builds: updates fail on managed machines or open a path for tampering.
    • Updating every site at once: one bad driver release stops every front desk on the same morning.
    • An open local API: any website can talk to the device service on the workstation.
    • Testing on developer laptops only: the clinic's locked-down image, antivirus and old drivers behave differently.

    What does the choice mean for your build plan?

    The desktop or web choice shapes the build plan through the device list, the packaging work and the test environment.

    • List every device, how it connects and which SDK or protocol it uses.
    • Decide which screens need a device and keep the rest in the web app.
    • Plan signing, packaging and update rings before the first release, not after it.
    • Get a copy of a real clinic workstation image and the actual hardware for testing.
    • Agree with each clinic group who approves releases and who can pause a rollout.

    If the answer is a split between a web app and a small local service, plan the local API as a product in its own right, with a version, a changelog and tests, because every clinic workstation depends on it.

    How can Agnotic help with clinic desktop apps?

    Agnotic builds the device layer, the desktop or web client and the signed update pipeline, and tests them on your clinics' workstation images and hardware before the first pilot site goes live.

    Devices that connect, updates that land safely

    We plan the client, the device layer and the rollout together.

    Sources

    Frequently Asked Questions

    Founders and product and engineering leaders whose software must work with printers, scanners, analyzers or other hardware on clinic workstations. It also matters to teams supporting sites with unreliable networks.

    Talk to an engineer about your project

    Send us your device list and how your clinics' workstations are managed. We will recommend desktop, web or a split, and plan the update process.

    Go deeper

    Services and solutions on this topic