# Deploying NetSpeedTray For admins and power users installing NetSpeedTray on more than one PC. Everyday users want the [Install section of the README](README.md#install) instead. ## What you can install | Package | What it is | |---|---| | `NetSpeedTray--x64-Setup.exe` | Inno Setup installer. **Per-machine**: installs to `C:\Program Files\NetSpeedTray` by default and needs admin. 64-bit Windows only; on Windows 11 on ARM it installs the x64 build, which runs under Windows' x64 emulation. | | `NetSpeedTray-Portable-.zip` | The same app, no installer, no admin. Updates itself in its folder when it can; otherwise it saves the new version to Downloads for you to copy over. | | WinGet `erez-c137.NetSpeedTray` | Installs the Setup.exe above, so it asks for admin too. | | Microsoft Store `XP9MHWQZJPLQM8` | A Win32 listing that runs the same Setup.exe silently. | There is no per-user install, MSI or MSIX. Each release also has a `checksums.txt` with SHA-256 hashes. **Per-machine binaries, per-user data.** The program files are shared; each Windows user gets their own settings, history and startup entry (see [Where things live](#where-things-live)), and runs their own copy: one instance per user, so several users on one machine (including Remote Desktop sessions) each run their own. ## Silent install ``` NetSpeedTray--x64-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART ``` These are the switches the in-app updater and the Microsoft Store submission use. The in-app updater also adds `/LOG=""`. Other standard Inno Setup switches (for example `/DIR=`) work too; see [Inno Setup's command-line reference](https://jrsoftware.org/ishelp/index.php?topic=setupcmdline). - **Upgrades install into the existing folder**, wherever it is. If that folder was on a local drive that no longer exists, Setup falls back to the default folder and logs it; a network location is kept. - **A running NetSpeedTray is closed first.** Setup asks the copies running in its own session to quit cleanly and waits up to 30 seconds, then ends any that remain - including other signed-in users' copies, which it cannot ask - with `taskkill /F /IM NetSpeedTray.exe`. Versions up to 2.1.7 can't receive the request, so upgrading from them always force-closes the app once. Under `/SUPPRESSMSGBOXES` the "close the app?" prompt takes its default answer (close it). - **After a silent install** Setup starts the app through the signed-in user's Explorer, so it runs as that user, not elevated. It does **not** start the app when Setup runs as SYSTEM or in session 0 (for example from Intune or Configuration Manager), when Setup runs as a different account from the signed-in user, or when no Explorer shell is running. On a fresh deployment the app then starts the first time the user opens it from the Start menu; after that, its own startup entry (on by default) starts it at sign-in. ## Detecting an install - **Uninstall key:** `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D3A32B89-C533-4F2C-9F87-23B2395B5B89}_is1` (Inno Setup's standard key for this AppId; `DisplayVersion` holds the version, e.g. `2.2.0`). - **File version** of `NetSpeedTray.exe`: a final release is `X.Y.Z.10000` (2.2.0 is `2.2.0.10000`); a prerelease has a lower fourth number (`2.2.0-rc.2` is `2.2.0.2002`), so a final always ranks above its betas and release candidates. - Exit codes are Inno Setup's standard ones (0 = success). ## Uninstall ``` "C:\Program Files\NetSpeedTray\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES ``` - A **silent** uninstall **keeps** user data. Add `/PURGE=true` to delete `%APPDATA%\NetSpeedTray` as well; that removes the data of the account running the uninstaller only. - An **interactive** uninstall asks whether to delete settings, history and logs. - Uninstall removes the `NetSpeedTray` value from the `HKCU\...\Run` key of the account running it, and the desktop shortcut. ## Where things live | What | Where | |---|---| | Program | `C:\Program Files\NetSpeedTray\` (or the folder chosen at first install) | | Settings | `%APPDATA%\NetSpeedTray\NetSpeedTray_Config.json` (Roaming) | | History | `%APPDATA%\NetSpeedTray\speed_history.db` (SQLite, with `-wal` / `-shm` while running) | | Upgrade backups | `%APPDATA%\NetSpeedTray\speed_history.db.bak.v7__