Visual Studio Integration Failed - VS2015 & CUDA 10.0

I tried to install CUDA 10.0 on my Windows 7 64Bit machine. It failed with the well known “Visual Studio Integration Failed”.

I tried following:
https://devtalk.nvidia.com/default/topic/1033111/cuda-setup-and-installation/cuda-9-1-cannot-install-due-to-failed-visual-studio-integration/post/5259359/#5259359
With no success.

Log Files:
LOG.RunDll32.EXE.log

0.561 |     INFO: [system] 472@Nvidia::Logging::Logger::Logger : 2018-Sep-21 14:56:21 :  Logging init OK. Using configuration from HKLM for DefaultProcess, for the RunDll32.EXE. 
      0.562 |    DEBUG: [NVI2.DeferredDelete] 521@DeferredDeleteW : Waiting for D:\Data\Users\sebas-th\Downloads\cuda_10.0.130_411.31_windows\setup.exe 3392 to exit. 
      0.625 |    DEBUG: [NVI2.DeferredDelete] 592@DeferredDeleteW : Deferred delete started. 
      0.837 |  WARNING: [NVI2.CEngineCache] 1010@CEngineCache::PreserveGoldPath : Installer uninstall entry not found, will not preserve engine cache folder. 
      3.538 |    DEBUG: [NVI2.CEngineCache] 388@CEngineCache::CleanupStrippedPackages : Stripped registry key does not exist to perform clean up process. 
      3.547 |     INFO: [NVI2.CEngineCache] 492@CEngineCache::CleanupCache : No subpackages left, remaining installer data will be removed. 
      3.560 |     INFO: [NVI2.DeferredDelete] 604@DeferredDeleteW : Deleting self as running deferred delete via C:\Users\sebas-th\AppData\Local\Temp\NVI2_29.DLL. 
      3.566 |    DEBUG: [NVI2.DeferredDelete] 611@DeferredDeleteW : Deferred delete completed.

Last Lines of LOG.setup.exe.log

306.949 |    DEBUG: [NVI2.NVExtension] 201@CNVExtension::InternalUnload : Unloading "D:\Data\Users\sebas-th\Downloads\cuda_10.0.130_411.31_windows\ShadowPlay\ShadowPlayExt.DLL". 
    306.949 |    DEBUG: [NVI2.NVExtension] 205@CNVExtension::InternalUnload : Unloaded "D:\Data\Users\sebas-th\Downloads\cuda_10.0.130_411.31_windows\ShadowPlay\ShadowPlayExt.DLL". 
    306.949 |    DEBUG: [NVI2.NVExtension] 201@CNVExtension::InternalUnload : Unloading "D:\Data\Users\sebas-th\Downloads\cuda_10.0.130_411.31_windows\ShadowPlay\ShadowPlayExt.DLL". 
    306.949 |    DEBUG: [NVI2.NVExtension] 205@CNVExtension::InternalUnload : Unloaded "D:\Data\Users\sebas-th\Downloads\cuda_10.0.130_411.31_windows\ShadowPlay\ShadowPlayExt.DLL". 
    306.950 |    DEBUG: [NVI2.NVExtension] 201@CNVExtension::InternalUnload : Unloading "C:\Program Files\NVIDIA Corporation\Installer2\CoreTemp.{D42C8627-1EB2-47F3-BFDF-9B143CA4B2DB}\NVI2UI.DLL". 
    306.950 |  WARNING: [NVI2.NVExtension] 209@CNVExtension::InternalUnload : Aborted unload of "C:\Program Files\NVIDIA Corporation\Installer2\CoreTemp.{D42C8627-1EB2-47F3-BFDF-9B143CA4B2DB}\NVI2UI.DLL" - in use. 
    306.950 |    DEBUG: [NVI2.NVExtension] 201@CNVExtension::InternalUnload : Unloading "C:\Program Files\NVIDIA Corporation\Installer2\CoreTemp.{D42C8627-1EB2-47F3-BFDF-9B143CA4B2DB}\NVI2UI.DLL". 
    306.950 |  WARNING: [NVI2.NVExtension] 209@CNVExtension::InternalUnload : Aborted unload of "C:\Program Files\NVIDIA Corporation\Installer2\CoreTemp.{D42C8627-1EB2-47F3-BFDF-9B143CA4B2DB}\NVI2UI.DLL" - in use. 
    306.950 |    DEBUG: [NVI2.NVExtension] 201@CNVExtension::InternalUnload : Unloading "C:\Program Files\NVIDIA Corporation\Installer2\CoreTemp.{D42C8627-1EB2-47F3-BFDF-9B143CA4B2DB}\NVI2UI.DLL". 
    306.950 |  WARNING: [NVI2.NVExtension] 209@CNVExtension::InternalUnload : Aborted unload of "C:\Program Files\NVIDIA Corporation\Installer2\CoreTemp.{D42C8627-1EB2-47F3-BFDF-9B143CA4B2DB}\NVI2UI.DLL" - in use.

I also stopped all Nvidia Services in Windows Services. Does anyone see where I am wrong?
Thanks in advance!

So, I fixed it on my own. Maybe it can help somebody.

After doing as said here: [url]CUDA 9.1 cannot install due to failed Visual Studio Integration - CUDA Setup and Installation - NVIDIA Developer Forums

I was still unable to install CUDA 10.0 due to failed NVidia Integration.

So, after cleaning the system, I installed the newest nvidia driver from the website. After that step, I was finaly able to install CUDA 10.0 successfully, with driver installation option unchecked.

You can also try Deleting C:\Program Files\NVIDIA Corporation\Installer2 and then try to install once again.

I had the same issue on my laptop (Geforce 1060).

Nothing helped. I got rid of all NVIDIA registry settings, I installed everything dozends of times, in different orders. No success. After one week of trying I looked into the CUDA installer.
Here my final proposal for getting rid of the visual integration error:

  1. Get the cleanest system possible
    [url]CUDA 9.1 cannot install due to failed Visual Studio Integration - CUDA Setup and Installation - NVIDIA Developer Forums

  2. Install latest Geforce Driver

  3. Install CUDA without Visual Studio Integration
    [url]https://devtalk.nvidia.com/default/topic/1024655/cuda-setup-and-installation/cuda-9-0-176-installer-fails-every-time/post/5256371/#5256371[/url]

  4. Go to cuda_x.x.xx_winx\CUDAVisualStudioIntegration

  5. Execute NVIDIA_Nsight_Visual_Studio_Edition_Win64_xxx.msi

  6. Kill all processes preventing the installation

  7. Copy all files in “…cuda_10.0.130_411.31_win10\CUDAVisualStudioIntegration\extras\visual_studio_integration\MSBuildExtensions” to “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations”

This did it for me, I hope this helps someone.

@Rick Rakete
6. Kill all processes preventing the installation
What processes did you kill? NVIDIA_Nsight_Visual_Studio_Edition keeps rolling back. I see error status 1603 in the msi log. Thanks!

I had the same issue on my laptop
Nothing helped,

Finally I just downloaded the local version and it installed without any problem.