CUDA installation failed on 1050ti

I tried to install cuda 2.1 than cuda 9 and cuda 6 for msi 1050ti every time I got installation failed massage at the end of installation. I also tried in custom installatin but failed ??

Check my response here:
[url]https://devtalk.nvidia.com/default/topic/1036657/visual-studio-2017-15-7-4/?offset=10#5268404[/url]

Also check the similar thread here for advice:
https://devtalk.nvidia.com/default/topic/1035794/cuda-setup-and-installation/cuda-9-2-quot-nvidia-installer-failed-quot-/

Edit: Another relevant thread:
https://devtalk.nvidia.com/default/topic/1033111/cuda-setup-and-installation/cuda-9-1-cannot-install-due-to-failed-visual-studio-integration/

Basically you will have to check the CUDA installer logs and see what is failing to try to fix the issue.