On Windows N and KN editions and on Windows Server, the installer of MFormats SDK or MPlatform SDK can stop with a message that a module failed to register: Windows Installer error 1904, often with HRESULT -2147024770 (module not found).
Cause
The SDK uses Windows Media Foundation (mfplat.dll and related libraries). The SDK's decoders and previews use it, and so does its FFmpeg library avcodec-63.dll. When the installer registers the SDK's COM libraries, Windows loads them together with these dependencies. Windows N and KN editions do not include Media Foundation, and Windows Server does not install it by default, so the libraries cannot load.
Windows 10 and Windows 11, N and KN editions
- Open Settings and find Optional features.
- Select Add a feature (View features on Windows 11).
- Find Media Feature Pack and install it.
Windows Server
Install the Media Foundation feature. In Server Manager, select Manage > Add Roles and Features and select Media Foundation on the Features page. Or run PowerShell as administrator:
Install-WindowsFeature Server-Media-Foundation
Then
Restart the computer and run the SDK installer again.
Computers where your application runs need Media Foundation too, so install it there in the same way.
Still have questions?
Tell us what didn’t work or what you’d like clarified.