@KaderkovaViktori I don't think you're necessarily doing anything wrong. The error points to a location in your computer's registry, but it's not clear whether the registry entry is corrupt or just can't be used by your computer. Since deleting registry entries is a dicey prospect, it's better to approach from the other angle first.
Click the Windows key, write cmd in the search bar, and Command Prompt should appear. Choose the "Run as administrator" option. In the window that appears, copy and paste msiexec and enter. Normally, a window will appear with the header "Windows Installer." If it appears, restart your computer and try again to install the VC++ runtimes. If it doesn't appear, enter these commands in the Command prompt window, one at a time:
msiexec /unregister
msiexec /regserver
Then enter msiexec again, and you should see the installer window. (Let me know if it doesn't appear.) Then restart and try to install the runtimes again.
If you still can't install the runtimes, make sure the Windows Installer is running. Hit Windows key-R and enter services.msc in the run box. In the window that appears, scroll down to Windows Installer, right-click and select Properties, and make sure the "Startup type" is Manual. The installer itself can be stopped, that's fine, but if it says "Deactivated," let me know. Otherwise, click Start or Restart, make sure its services status says "Running," then try to install the VC++ runtimes, this time without restarting your computer first.
Whenever installing the runtimes, be sure to try both the installers you downloaded from Microsoft and the ones in the Sims 4 program files.