# Microsoft 365 Offline Image Downloader (`en-US`) A lightweight, single-file Windows desktop GUI compiled ahead-of-time to native `win-x64` machine code with **.NET 9 NativeAOT** (`true`). It checks the official Microsoft CDN (`officecdn.microsoft.com`) for the latest English (`en-US`) Microsoft 365 offline `.img` disc installers and downloads them with pause/resume support. --- ## Prebuilt `.exe` Downloads (Ready to Run) No `.NET` runtime, SDK, or external DLLs are required on Windows 10 or Windows 11 (`x64`). Grab either prebuilt executable directly from [`dist/`](dist/): | Package | Direct Download | Size | Description | | :--- | :--- | :--- | :--- | | **Portable Single-File App** *(Recommended)* | [**Download `M365IsoDownloader.exe`**](https://gitea.beyondcloud.solutions/dennii/m365-iso-downloader/raw/branch/main/dist/M365IsoDownloader.exe) | `6.85 MB` | Standalone single-file executable — run directly from any folder or USB drive with zero installation. | | **Windows Setup Installer** | [**Download `M365IsoDownloader-Setup.exe`**](https://gitea.beyondcloud.solutions/dennii/m365-iso-downloader/raw/branch/main/dist/M365IsoDownloader-Setup.exe) | `4.91 MB` | Per-user GUI installer (no UAC admin prompt required) — installs to `%LOCALAPPDATA%\Programs\M365IsoDownloader`, creates Start Menu & Desktop shortcuts, and registers an uninstaller in **Windows Installed Apps**. | *(If you cloned this repository locally, both prebuilt executables are already located in [`dist\M365IsoDownloader.exe`](dist/M365IsoDownloader.exe) and [`dist\M365IsoDownloader-Setup.exe`](dist/M365IsoDownloader-Setup.exe).)* --- ## Screenshots ### Main Application Window ![Microsoft 365 Offline Image Downloader Main Window](docs/screenshots/app-main.png) ### Optional Windows Setup Installer ![Microsoft 365 Image Downloader Setup Wizard](docs/screenshots/setup-installer.png) --- ## Supported Microsoft 365 Editions (`en-US`, 32-bit & 64-bit Combined) | Edition | Image Filename | Primary Microsoft CDN Endpoint | | :--- | :--- | :--- | | **Microsoft 365 Apps for Enterprise** *(formerly Office 365 ProPlus)* | `O365ProPlusRetail.img` | `https://officecdn.microsoft.com/db/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-US/O365ProPlusRetail.img` | | **Microsoft 365 Apps for Business** *(Office 365 Business)* | `O365BusinessRetail.img` | `https://officecdn.microsoft.com/db/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-US/O365BusinessRetail.img` | | **Microsoft 365 Personal / Family** *(Home Premium)* | `O365HomePremRetail.img` | `https://officecdn.microsoft.com/db/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-US/O365HomePremRetail.img` | --- ## Key Features - **True `.NET NativeAOT` Single-File `.exe`:** Compiled directly to native `x64` machine code with no JIT, no external DLLs, and instant startup. - **Instant Build Inspection (Zero Full Download Needed):** Sends HTTP `HEAD` + a 192 KB HTTP `Range` request (`bytes=32768-229375`) to read the ISO-9660 volume descriptor and extract the exact `16.0.xxxxx.xxxxx` build version, publish date, and file size before downloading. - **Local `.img` Build Comparison:** Reads byte `32768` of any existing `.img` files in your target save folder (including previously downloaded images) to show **Up to Date** vs. **Update Available**. - **Pause & Resume Support:** Streams via `SocketsHttpHandler` (HTTP/2 + TLS 1.3) into `.img.part` files with `ETag` verification, free-disk-space validation, live transfer speed, and ETA. - **Automatic CDN Fallback:** Uses `/db/` primary endpoints and transparently falls back to `/pr/` if unreachable. - **Crisp Windows 11 Native UI:** Hardware-composited rounded window corners, Per-Monitor v2 High-DPI scaling, modern Explorer folder picker, **Copy URL**, and **Show File** shortcuts. --- ## How to Install a Downloaded `.img` File 1. Double-click the downloaded `.img` file (e.g., `O365BusinessRetail.img`) in Windows File Explorer to mount it as a virtual DVD drive. 2. Open the `Office` folder inside the mounted drive and run `Setup64.exe` (64-bit, recommended) or `Setup32.exe` (32-bit). 3. Launch any Office app and sign in with your Microsoft 365 account to activate. --- ## Building from Source Requires the **.NET 9+ SDK** and **Visual Studio 2022 C++ Build Tools** (`MSVC` + Windows 10/11 SDK): ```powershell powershell -ExecutionPolicy Bypass -File .\build.ps1 ``` Outputs both `dist\M365IsoDownloader.exe` and `dist\M365IsoDownloader-Setup.exe`.