I had a struggle getting Delphi installed on a new laptop with Windows 10. The usual steps just didn't want to work. First make sure all the updates are done for the operating system. Below was the first error while trying to install Delphi 2010
The administrator account was disabled by default. Even though the user I created was an administrator account I needed to set the password and then enable the account. To do this go to the search menu and search for Run. Enter lusrmgr.msc and hit enter. This will take you to the user accounts. Open Users and see if the administrator account has been enabled before. If it is disabled, right click on Administrators and set the password. Then click on Account is disabled to deselect the checkbox. If the user you are currently logged in with is an administrator you should be able to continue with the steps below without logging out.
I had to download and install J# 2.0 from the Microsoft website.
You also want to check that NetFrameWork has the correct settings as the picture below. To get to these settings go to Control Panel > Programs and Features > Turn Windows Features On or Off.
You should be able to install Delphi 2010 now.
I found that the IDE Fix caused the error below once you open Delphi and I had to uninstall it. To uninstall you run the IDE fix where there is an uninstall option.