Skip to main content

mii Lite on Windows

mii Lite on Windows is one self-extracting file. It installs one Windows service called MakeIntelligent with the Console, an embedded PostgreSQL, the historian and one built-in Site Runtime. It needs no internet, Docker, WSL or virtual machine.

Preview

The Windows package is a preview until it is code-signed. Windows may show a SmartScreen warning.

Before you start​

  • Windows 10 or later, or Windows Server 2012 R2 or later, 64-bit (x64). Windows Server 2019 or later is recommended for new installs.
  • 4 cores, 8 GB RAM, 40 GB free SSD.
  • Local administrator rights.
  • The PC must reach your PLCs. Other PCs must reach TCP 8080.

Install​

  1. Open PowerShell as Administrator.
  2. Download the installer from https://makeitintelligent.com/downloads/.
  3. Compare its hash with the SHA-256 shown next to the file on the downloads page (all hashes are also in https://makeitintelligent.com/downloads/files/SHA256SUMS):
    (Get-FileHash .\mii-lite-4.0.1-windows-amd64.exe).Hash
  4. Install:
    .\mii-lite-4.0.1-windows-amd64.exe install
  5. Wait one to two minutes, then check:
    & "C:\Program Files\MakeIntelligent\mii.exe" status
    Expect RUNNING and a 200 OK health line. "Unreachable" during the first minute is normal.
  6. Open http://localhost:8080. Read the login in C:\ProgramData\MakeIntelligent\FIRST-LOGIN.txt (First login).

The file name can include the version, for example mii-lite-<version>-windows-amd64.exe.

What install does​

ActionDetail
Copies the programC:\Program Files\MakeIntelligent\mii.exe, payload under <install>\app\<version>\
Creates data folders and secretsC:\ProgramData\MakeIntelligent\
Registers the serviceName MakeIntelligent, display name "MakeIntelligent Lite", start type Automatic (Delayed Start)
Sets recoveryRestart three times after 60 seconds. The failure count resets after 24 hours.
Registers the Event Log sourceMakeIntelligent
Adds a firewall ruleMakeIntelligent Lite (8080): inbound TCP 8080, all profiles
Starts the servicePrints the Console URL and the FIRST-LOGIN.txt path

Only port 8080 is opened. To use the public MQTT or PostgreSQL access, add your own firewall rules for TCP 1883 and 5433.

Folders​

PathContent
C:\Program Files\MakeIntelligent\Program and payload (the current and the previous version are kept)
C:\ProgramData\MakeIntelligent\config\mii.envSettings
...\secrets\Generated secrets, restricted to SYSTEM and Administrators
...\data\pg\, data\buffer\, data\ot\, data\stream\Database, buffer, OT and rules data
...\logs\mii.log, one log per component, health.jsonl
...\backups\Backups
...\FIRST-LOGIN.txt, DATA-ACCESS.txtLogins

Each log rotates at 10 MB and keeps 5 files.

Commands​

Run them from an Administrator PowerShell as & "C:\Program Files\MakeIntelligent\mii.exe" <command>.

CommandWhat it does
statusService state and the Console health result
healthMemory, handle, thread and restart counters per component
stop / startStop or start the service (stop waits up to 60 seconds)
backup [--out file]Full backup while running
restore <file> [--yes] [--allow-unknown-version]Restore. The service must be stopped. You type RESTORE.
rollback [--yes]Return to the previous version using the pre-upgrade backup
uninstall [--purge [--yes]]Remove the service. --purge also deletes C:\ProgramData\MakeIntelligent after you type DELETE.
versionPrint the version

Settings you may change​

Edit C:\ProgramData\MakeIntelligent\config\mii.env, then restart the service.

KeyDefaultMeaning
MI_CONSOLE_LISTEN:8080Console listen address
MI_ADMIN_USERNAMEadminFirst administrator name
MI_LOG_LEVELinfodebug, info, warn or error
MI_LITE_PG_PORT5433Embedded PostgreSQL port
MI_LITE_MQTT_PUBLIC_LISTENoffFor example 0.0.0.0:1883 opens read-only MQTT
MI_LITE_PG_PUBLICoffon opens read-only PostgreSQL

Full list: Configuration reference.

Upgrade and uninstall​

  • Upgrade: run the new installer with install. Your data stays. Migrations run at start and mii makes an automatic backup before upgrading. If the start fails, run mii rollback.
  • Uninstall: mii.exe uninstall keeps your data. Add --purge to delete it.

Troubleshooting​

SymptomCauseFix
status says unreachableFirst minute, still startingWait two minutes and try again.
Cannot open http://<pc>:8080 from another PCFirewall or networkCheck the rule MakeIntelligent Lite (8080) and the network profile.
Service stops after installPort in use or a port collision in mii.envRead logs\mii.log; fix the port; restart.
Windows event log shows "degraded"A component restarted more than expectedCheck the component log in logs\.
Recent errorsSelect-String C:\ProgramData\MakeIntelligent\logs\*.log -Pattern "ERROR"