libnspr4.dll Error in Windows 10 and 11: NSPR platform runtime errors

An app fails at launch after moving its installation, and the Windows error identifies libnspr4.dll.
What this DLL does
MSYS2 Windows builds provide libnspr4.dll as part of Netscape Portable Runtime, used by compatible applications for platform services.
Start with this check
Check whether the program belongs to a specific MSYS2 environment or a publisher’s self-contained release. Compare the faulting path and architecture to the intended package.
Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.
Some software builds use a different filename or bundle the functionality internally. Use the evidence from the actual failing executable.
Choose the repair that fits
Restore the matching NSPR package for that environment, or reinstall the vendor’s entire supported release. Keep its companion libraries together.
Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.
Verify the repair
Start the original app from its documented launch method and repeat the action that previously stopped startup.
For a related check, see nss3.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: MSYS2’s Windows NSPR package manifest.