Because it runs as SYSTEM outside the MSIX package activation context, the Win32 path resolution fails — the MSIX virtual filesystem is not mounted for SYSTEM, so GetModuleFileName or equivalent ...