This short blog suggests a solution if your SSDT installation keep failing. I was reinstalling the SSDT because the Script Component is not able to open the code.
If you look inside the SSDT setup log then you see something like this:
[2B70:0A94][2018-06-23T02:56:24]e000: MainViewModel.OnBundleAction: Bundle action failed: The configuration registry key could not be opened (0x800703F3)
Someone suggested to me to try https://stackoverflow.com/questions/50241405/ssdt-2017-setup-failed-the-configuration-registry-key-could-not-be-opened.
It might work.
Somehow, I reinstall the SSDT using Microsoft SQL Server Data Tools for Visual Studio 2017.
After the installation you will see Visual Studio 2017 (SSDT).
One instance “C:\Program Files (x86)\Microsoft Visual Studio\2017\SQL\Common7\IDE\ devenv.exe””. For SSDT
The original is “C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe”