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.
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
- Open PowerShell as Administrator.
- Download the installer from
https://makeitintelligent.com/downloads/. - 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 - Install:
.\mii-lite-4.0.1-windows-amd64.exe install
- Wait one to two minutes, then check:
Expect& "C:\Program Files\MakeIntelligent\mii.exe" status
RUNNINGand a200 OKhealth line. "Unreachable" during the first minute is normal. - Open
http://localhost:8080. Read the login inC:\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
| Action | Detail |
|---|---|
| Copies the program | C:\Program Files\MakeIntelligent\mii.exe, payload under <install>\app\<version>\ |
| Creates data folders and secrets | C:\ProgramData\MakeIntelligent\ |
| Registers the service | Name MakeIntelligent, display name "MakeIntelligent Lite", start type Automatic (Delayed Start) |
| Sets recovery | Restart three times after 60 seconds. The failure count resets after 24 hours. |
| Registers the Event Log source | MakeIntelligent |
| Adds a firewall rule | MakeIntelligent Lite (8080): inbound TCP 8080, all profiles |
| Starts the service | Prints 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
| Path | Content |
|---|---|
C:\Program Files\MakeIntelligent\ | Program and payload (the current and the previous version are kept) |
C:\ProgramData\MakeIntelligent\config\mii.env | Settings |
...\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.txt | Logins |
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>.
| Command | What it does |
|---|---|
status | Service state and the Console health result |
health | Memory, handle, thread and restart counters per component |
stop / start | Stop 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. |
version | Print the version |
Settings you may change
Edit C:\ProgramData\MakeIntelligent\config\mii.env, then restart the service.
| Key | Default | Meaning |
|---|---|---|
MI_CONSOLE_LISTEN | :8080 | Console listen address |
MI_ADMIN_USERNAME | admin | First administrator name |
MI_LOG_LEVEL | info | debug, info, warn or error |
MI_LITE_PG_PORT | 5433 | Embedded PostgreSQL port |
MI_LITE_MQTT_PUBLIC_LISTEN | off | For example 0.0.0.0:1883 opens read-only MQTT |
MI_LITE_PG_PUBLIC | off | on 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, runmii rollback. - Uninstall:
mii.exe uninstallkeeps your data. Add--purgeto delete it.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
status says unreachable | First minute, still starting | Wait two minutes and try again. |
Cannot open http://<pc>:8080 from another PC | Firewall or network | Check the rule MakeIntelligent Lite (8080) and the network profile. |
| Service stops after install | Port in use or a port collision in mii.env | Read logs\mii.log; fix the port; restart. |
| Windows event log shows "degraded" | A component restarted more than expected | Check the component log in logs\. |
| Recent errors | Select-String C:\ProgramData\MakeIntelligent\logs\*.log -Pattern "ERROR" |
Related
- First login
- Licensing
- Backup and restore
- Lite on Docker (data access settings)