Guides
Collector on Windows: the MSI installer
Install the collector on a Windows server with no internet and no Python: one MSI, interactive or silent, with updates and a clean uninstall.
The MSI installs the collector as a Windows service with everything it needs inside: its own Python and the packages of every source type. Nothing is downloaded during the install, so it suits a closed network. It needs an administrator.
What it installs
| Where | What |
|---|---|
C:\Program Files\Kymoscope Collector | The program: Python 3.13 from python.org and the collector with its packages. Only administrators can change it. |
C:\ProgramData\KymoscopeCollector | Your configuration: collector.yaml, tags.csv, api_key.txt. Only administrators can change it; the service can read it. |
C:\ProgramData\KymoscopeService | The service's own state: certificates, stream keys, data waiting to be sent, and logs\collector.log. |
| The service | Kymoscope collector (KymoscopeCollector). It starts with Windows (delayed) and restarts after a failure. It runs as its own account, NT SERVICE\KymoscopeCollector, not as SYSTEM, and without the right to act as another account. |
kymoscope-collector | The command line, on the system PATH for consoles opened after the install. |
Install
- Get the MSI. On Kymoscope Site it is at
https://kymoscope.customer.local/downloads/; otherwise we send it with each collector release, with its SHA-256. - Check the file:
Get-FileHash .\kymoscope-collector-2.12.0-x64.msiprints the SHA-256 to compare. - Make a folder with your
collector.yamland the files it names (tags.csv,api_key.txt). A bundle from the assistant, unpacked, is such a folder. See Site collector for the file itself. - In an administrator console, install it with that folder:
msiexec /i kymoscope-collector-2.12.0-x64.msi CONFIG="D:\kymoscope\collector"The installer copies the folder's files (not its subfolders) to C:\ProgramData\KymoscopeCollector, installs the service and starts it. Within a minute the stream shows in Kymoscope. Afterwards, delete the folder you made: the API key is in it.
Without CONFIG, the installer writes a starting collector.yaml there, and the service stays stopped until you change it (see Change the configuration). A double-click on the MSI installs this way.
Install silently on many machines
For a script, a software deployment tool or a GPO startup script:
msiexec /i \\fileserver\kymoscope\kymoscope-collector-2.12.0-x64.msi /qn /norestart CONFIG="\\fileserver\kymoscope\line-3" /l*v C:\Windows\Temp\kymoscope-msi.log| Option | What it does |
|---|---|
CONFIG | A full path to a collector.yaml, or to a folder holding one: its files are copied in, replacing those already there. Leave it out to keep the configuration already on the machine. |
/qn | No windows. The exit code is 0 when it worked; 1603 means it failed, and the log says why. |
/l*v file | A full log of the install, with the output of the step that sets up the service. |
The account running msiexec (often SYSTEM, for a deployment tool) must be able to read the CONFIG path. Give each machine its own folder when the streams differ.
Change the configuration
- Edit
C:\ProgramData\KymoscopeCollector\collector.yamlin an editor run as administrator. - Try a source without sending anything:
kymoscope-collector check --config C:\ProgramData\KymoscopeCollector\collector.yaml --source "Customer A DCS" - Restart the service:
Restart-Service KymoscopeCollector(orStart-Service, the first time). - If the stream doesn't appear, read
C:\ProgramData\KymoscopeService\logs\collector.log.
The service's account reads only its own folders. Give it modify rights on a folder it watches, and read rights on anything else it reads:
icacls D:\cycler\export /grant "NT SERVICE\KymoscopeCollector:(OI)(CI)M"Update
Install the newer MSI the same way; no CONFIG is needed. The old version is removed first, and the configuration and the service's state stay, so the collector keeps its identity and sends what it buffered. An MSI older than the one installed is refused.
Uninstall
Use Settings, Apps (Kymoscope collector), or the same MSI file. The service and the program go; the configuration and the state stay, in case you install it again:
msiexec /x kymoscope-collector-2.12.0-x64.msi /qn
# also delete the configuration, the API key and any data not sent yet
msiexec /x kymoscope-collector-2.12.0-x64.msi /qn REMOVEDATA=1If this machine won't send again, revoke its API key in the app (Account, API & Real-time streaming).
SmartScreen and application control
The MSI is not code-signed yet. Until it is, Windows treats it as coming from an unknown publisher:
- SmartScreen: a double-click on a downloaded copy shows "Windows protected your PC". Check its SHA-256 first, then choose More info, Run anyway. Or, once checked, remove the download mark:
Unblock-File .\kymoscope-collector-2.12.0-x64.msi. Copies from a file share or a USB drive, andmsiexecrun from a script, are usually not stopped. - AppLocker: allow the MSI by its hash, in a GPO (Computer Configuration, Windows Settings, Security Settings, Application Control Policies, AppLocker, Windows Installer Rules) or from PowerShell:
Get-AppLockerFileInformation -Path .\kymoscope-collector-2.12.0-x64.msi |
New-AppLockerPolicy -RuleType Hash -User Everyone -Xml > kymoscope-msi.xml
# then import kymoscope-msi.xml into the GPO (AppLocker, Import Policy), or on this machine:
Set-AppLockerPolicy -XmlPolicy kymoscope-msi.xml -Merge- App Control for Business (WDAC): Python is signed by the Python Software Foundation, but some of the files that run the service are not. After a first install on a test machine, make a hash policy for the program folder and merge it into yours:
New-CIPolicy -ScanPath "C:\Program Files\Kymoscope Collector" -Level Hash -UserPEs -FilePath kymoscope-collector.xmlEach release has new hashes, so make these rules again for each version. Smart App Control (on Windows 11 PCs, not on servers) has no allow list: with it on, an unsigned installer can't run. Once the installer is signed, one rule by publisher replaces the hash rules.