PostMount 1.0.28 - build for Windows Server 2012 R2 (without Microsoft Store)
============================================================================
Guide: https://postmount.app/learn/microsoft-365-email-windows-server-2012/

IMPORTANT
  Windows Server 2012 R2 no longer receives any security updates from Microsoft
  (extended support ended 10 Oct 2023, Extended Security Updates ended 13 Oct 2026).
  This build is a bridge, not a long-term solution: plan an upgrade to Windows Server
  2019/2022/2025 and then use PostMount from the Microsoft Store.

What is in this folder
  PostMount\                       the app (.NET included - nothing else to install)
  MicrosoftEdgeWebview2Setup.exe   Microsoft Edge WebView2 Runtime bootstrapper, unchanged,
                                   signed by Microsoft. Needed for the Microsoft 365 sign-in window.
  Install service.bat              installs WebView2 (if missing) and the PostMount service
  Uninstall service.bat            removes the service
  README.txt                       this file

WebView2
  On Windows Server 2012 R2 the last WebView2 Runtime is version 109 (no further updates).
  The bootstrapper downloads and installs exactly that version (internet access needed).
  The offline "Evergreen Standalone Installer" from Microsoft's site does NOT work on
  2012 R2 (error 0x80040901) - it contains a newer version.
  Offline servers: Microsoft Update Catalog, search "109.0.1518.140", package
  "Microsoft Edge-WebView2 Runtime Version 109 ... x64".
  Microsoft's page: https://developer.microsoft.com/microsoft-edge/webview2/
  Check:  reg query "HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}" /v pv

Windows service (recommended for ERP / accounting systems)
  1. Unblock the zip before extracting (PowerShell: Unblock-File <path to zip>), extract it.
  2. Run "Install service.bat" (asks for administrator rights).
     It installs WebView2 if needed, copies the app to C:\Program Files\PostMount Service\<version>\
     and creates the "PostMount" service (automatic start).
  3. Start menu -> PostMount opens the control panel: sign in to Microsoft 365, add mailboxes.
  4. In the ERP: SMTP server localhost, port 587 (mailbox address + PostMount password)
     or port 25 with the Mail gateway (no password).

Normal app instead of a service
  Run MicrosoftEdgeWebview2Setup.exe, then PostMount\PostMount.exe.

Remove the service: "Uninstall service.bat".
Logs: C:\ProgramData\PostMount\setup.log and app.log (administrators).
This build does not update itself - install a newer build the same way.
