In Windows 10 there is a possibility that you will have difficulty installing and uninstalling a program as the program itself may refuse to install or uninstall and show an error.
When a program won't install, you should check its installation file for problems. The first move is to download a new one copy of the setup file and then run it to check if the problem was with the original setup file.
Similarly, if you cannot uninstall a program from your Windows 10 computer, you should first try to uninstall it through Safe Mode. You can also try uninstalling programs from other manufacturers, such as Ursoftware YourUnistaller etc.
When all else fails and you believe the problem may be in Windows 10, then try using the official "troubleshooting utility that prevents you from installing or uninstalling programs".
This troubleshooter can repair corrupted registry keys on 64-bit operating systems, corrupted registry keys that controln update data, problems that prevent installation of new programs, problems that prevent you from completely uninstalling or updating existing programs, and problems that prevent you from uninstalling a program through choices “Add or Remove Programs” (or “Programs and Features”) in the Control Panel
The "troubleshooting tool that prevents programs from being installed or removed" is easy to use. Download, run, and follow the on-screen instructions to correct the problems listed above.
Note that this utility is not included with Windows 10. You will need to download it from Microsoft.
Troubleshoot installation and uninstallation problems of a program in Windows 10
Step 1: Get the installation and uninstall program repair help from this Microsoft page and run it.
Step 2: At runtime and the question "how do you want to open this file" (has a .diagcab file) tell it with the "Diagnostics and Troubleshooting Guide".
Step 3: Once troubleshooting starts, click Next, and then follow the instructions on the screen.
Step 4: Choose which feature you're having trouble with.
Advice: Many software developers offer their own tool to remove their software from Windows 10. Visit the website of the software you want to uninstall and check if there is an official auxiliary uninstall program.