There are few instances where users are failing to install MongoDB on Windows (e.g. win10) with a setup error message setup wizard ended prematurely
The general solution seems to just uncheck MongoDB Compass installation. This is likely to be caused by one or more of:
- Firewall/Antivirus blocking access to https://compass.mongodb.com/api/v2/download/latest
- Server has no access to the Internet
- PowerShell execution policy Set ExecutionPolicy preventing the script to be executed.