Hello there,
This error usually indicates that the required files for the installation are not available or are corrupt, or The error code ‘0x800f081e’ means ‘the package is not applicable’,
lets use the .NET Framework Repair Tool
https://learn.microsoft.com/en-us/dotnet/framework/install/guide-for-developers
You can download it from the Microsoft Download Center and run it on your machine. The tool will attempt to detect and repair any problems with the .NET Framework installation.
also
please type CMD on the search bar > right click and click on run it as administrator
now type
sfc /scannow and hit enter
wait for the process and then
type
DISM /Online /Cleanup-Image /RestoreHealth
and hit enter.
Also
Please check for updates and ensure that all recommended Windows Updates are installed, reboot your PC. (Open Windows Settings (Windows + I) -> Go to Update & Security > Troubleshoot. Then select windows update and Run The windows update Troubleshooter, Which attempt to identify if any problems exist which prevent your computer from downloading and installing Windows Updates.)
And see if it helps,
Thank you
--If the reply is helpful, please Upvote and Accept as answer--