Nsight Installation 5.5.0.18041 fails when VS2017 build tools or alternate installation are installed

I seeing this installer issue where it immediately fails and results in “NVIDIA Nsight Visual Studio Edition 5.5.0.18014 Setup Wizard ended prematurely” and “NVIDIA Nsight Visual Studio Edition 5.5.0.18014 Setup wizard ended prematurely because of an error. Your system has not been modified. To install this program at a later time, run Setup Wizard again. Click the Finish button to exit the Setup Wizard.”.

I’m running Windows 7 Enterprise x64 and Visual Studio 2017 15.5.6.

Looks to me like it’s failing because it can’t figure out how to install into Visual Studio 2017 instances it found. One instance is “Visual Studio Professional 2017” and the other is “Visual Studio Build Tools 2017 (2)”.

Please note the application event log:

- System 

  - Provider 

   [ Name]  MsiInstaller 
 
  - EventID 11708 

   [ Qualifiers]  0 
 
   Level 4 
 
   Task 0 
 
   Keywords 0x80000000000000 
 
  - TimeCreated 

   [ SystemTime]  2018-02-22T19:22:11.000000000Z 
 
   EventRecordID 155770 
 
   Channel Application 
 
   Computer AAAAAA
 
  - Security 

   [ UserID]  BBBBBB
 

- EventData 

   Product: NVIDIA Nsight Visual Studio Edition 5.5.0.18014 -- Installation failed. 
   (NULL) 
   (NULL) 
   (NULL) 
   (NULL) 
   (NULL) 
    
   7B30314544434136392D333838342D343130412D423135412D3646433745304532433543457D 


--------------------------------------------------------------------------------

Binary data:


In Words

0000: 4531307B 36414344 38332D39 342D3438 
0008: 2D413031 41353142 4346362D 45304537 
0010: 43354332 7D45   


In Bytes

0000: 7B 30 31 45 44 43 41 36   {01EDCA6
0008: 39 2D 33 38 38 34 2D 34   9-3884-4
0010: 31 30 41 2D 42 31 35 41   10A-B15A
0018: 2D 36 46 43 37 45 30 45   -6FC7E0E
0020: 32 43 35 43 45 7D         2C5CE}

Also this:

- System 

  - Provider 

   [ Name]  MsiInstaller 
 
  - EventID 1033 

   [ Qualifiers]  0 
 
   Level 4 
 
   Task 0 
 
   Keywords 0x80000000000000 
 
  - TimeCreated 

   [ SystemTime]  2018-02-22T19:22:11.000000000Z 
 
   EventRecordID 155771 
 
   Channel Application 
 
   Computer AAAAAAA 
 
  - Security 

   [ UserID]  BBBBBB 
 

- EventData 

   NVIDIA Nsight Visual Studio Edition 5.5.0.18014 
   5.5.0.18014 
   1033 
   1603 
   NVIDIA Corporation 
   (NULL) 
    
   7B30314544434136392D333838342D343130412D423135412D3646433745304532433543457D3030303032393637353639643930626338663136633936633233363934393536366637313030303030393034 


--------------------------------------------------------------------------------

Binary data:


In Words

0000: 4531307B 36414344 38332D39 342D3438 
0008: 2D413031 41353142 4346362D 45304537 
0010: 43354332 30307D45 39323030 36353736 
0018: 30396439 66386362 39633631 33326336 
0020: 39343936 66363635 30303137 39303030 
0028: 3430    


In Bytes

0000: 7B 30 31 45 44 43 41 36   {01EDCA6
0008: 39 2D 33 38 38 34 2D 34   9-3884-4
0010: 31 30 41 2D 42 31 35 41   10A-B15A
0018: 2D 36 46 43 37 45 30 45   -6FC7E0E
0020: 32 43 35 43 45 7D 30 30   2C5CE}00
0028: 30 30 32 39 36 37 35 36   00296756
0030: 39 64 39 30 62 63 38 66   9d90bc8f
0038: 31 36 63 39 36 63 32 33   16c96c23
0040: 36 39 34 39 35 36 36 66   6949566f
0048: 37 31 30 30 30 30 30 39   71000009
0050: 30 34                     04

MSI log – verbose

=== Verbose logging started: 2/22/2018  13:48:48  Build type: SHIP UNICODE 5.00.7601.00  Calling process: C:\windows\System32\msiexec.exe ===
MSI (c) (7C:34) [13:48:48:365]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

MSI (c) (7C:34) [13:48:48:365]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

MSI (c) (7C:8C) [13:48:48:373]: Resetting cached policy values
MSI (c) (7C:8C) [13:48:48:373]: Machine policy value 'Debug' is 0
MSI (c) (7C:8C) [13:48:48:373]: ******* RunEngine:
           ******* Product: C:\Users\xxxxxx\Downloads\NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi
           ******* Action: 
           ******* CommandLine: **********
MSI (c) (7C:8C) [13:48:48:374]: Machine policy value 'DisableUserInstalls' is 0
MSI (c) (7C:8C) [13:48:48:486]: SOFTWARE RESTRICTION POLICY: Verifying package --> 'C:\Users\xxxxxx\Downloads\NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi' against software restriction policy
MSI (c) (7C:8C) [13:48:48:486]: SOFTWARE RESTRICTION POLICY: C:\Users\xxxxxx\Downloads\NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi has a digital signature
MSI (c) (7C:8C) [13:48:51:045]: SOFTWARE RESTRICTION POLICY: C:\Users\xxxxxx\Downloads\NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi is permitted to run at the 'unrestricted' authorization level.
MSI (c) (7C:8C) [13:48:51:051]: Cloaking enabled.
MSI (c) (7C:8C) [13:48:51:051]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (7C:8C) [13:48:51:054]: End dialog not enabled
MSI (c) (7C:8C) [13:48:51:054]: Original package ==> C:\Users\xxxxxx\Downloads\NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi
MSI (c) (7C:8C) [13:48:51:054]: Package we're running from ==> C:\Users\xxxxxx\Downloads\NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi
MSI (c) (7C:8C) [13:48:51:060]: APPCOMPAT: Compatibility mode property overrides found.
MSI (c) (7C:8C) [13:48:51:061]: APPCOMPAT: looking for appcompat database entry with ProductCode '{01EDCA69-3884-410A-B15A-6FC7E0E2C5CE}'.
MSI (c) (7C:8C) [13:48:51:061]: APPCOMPAT: no matching ProductCode found in database.
MSI (c) (7C:8C) [13:48:51:065]: MSCOREE not loaded loading copy from system32
MSI (c) (7C:8C) [13:48:51:069]: Machine policy value 'TransformsSecure' is 0
MSI (c) (7C:8C) [13:48:51:069]: User policy value 'TransformsAtSource' is 0
MSI (c) (7C:8C) [13:48:51:069]: Machine policy value 'DisablePatch' is 0
MSI (c) (7C:8C) [13:48:51:070]: Machine policy value 'AllowLockdownPatch' is 0
MSI (c) (7C:8C) [13:48:51:070]: Machine policy value 'DisableMsi' is 0
MSI (c) (7C:8C) [13:48:51:070]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (c) (7C:8C) [13:48:51:070]: User policy value 'AlwaysInstallElevated' is 0
MSI (c) (7C:8C) [13:48:51:070]: Running product '{01EDCA69-3884-410A-B15A-6FC7E0E2C5CE}' with user privileges: It's not assigned.
MSI (c) (7C:8C) [13:48:51:070]: Machine policy value 'DisableLUAPatching' is 0
MSI (c) (7C:8C) [13:48:51:070]: Machine policy value 'DisableFlyWeightPatching' is 1
MSI (c) (7C:8C) [13:48:51:070]: Enabling baseline caching for this transaction since all active patches are MSI 3.0 style MSPs or at least one MSI 3.0 minor update patch is active
MSI (c) (7C:8C) [13:48:51:070]: APPCOMPAT: looking for appcompat database entry with ProductCode '{01EDCA69-3884-410A-B15A-6FC7E0E2C5CE}'.
MSI (c) (7C:8C) [13:48:51:071]: APPCOMPAT: no matching ProductCode found in database.
MSI (c) (7C:8C) [13:48:51:071]: Transforms are not secure.
MSI (c) (7C:8C) [13:48:51:071]: PROPERTY CHANGE: Adding MsiLogFileLocation property. Its value is 'C:\Users\xxxxxx\AppData\Local\Temp\MSI36e69.LOG'.
MSI (c) (7C:8C) [13:48:51:071]: Command Line: CURRENTDIRECTORY=C:\Users\xxxxxx\Downloads CLIENTUILEVEL=0 CLIENTPROCESSID=18300 
MSI (c) (7C:8C) [13:48:51:071]: PROPERTY CHANGE: Adding PackageCode property. Its value is '{27677B56-CE53-42A9-8138-EC83B371F33B}'.
MSI (c) (7C:8C) [13:48:51:071]: Product Code passed to Engine.Initialize:           ''
MSI (c) (7C:8C) [13:48:51:071]: Product Code from property table before transforms: '{01EDCA69-3884-410A-B15A-6FC7E0E2C5CE}'
MSI (c) (7C:8C) [13:48:51:071]: Product Code from property table after transforms:  '{01EDCA69-3884-410A-B15A-6FC7E0E2C5CE}'
MSI (c) (7C:8C) [13:48:51:071]: Product not registered: beginning first-time install
MSI (c) (7C:8C) [13:48:51:071]: PROPERTY CHANGE: Adding ProductState property. Its value is '-1'.
MSI (c) (7C:8C) [13:48:51:071]: Entering CMsiConfigurationManager::SetLastUsedSource.
MSI (c) (7C:8C) [13:48:51:071]: User policy value 'SearchOrder' is 'nmu'
MSI (c) (7C:8C) [13:48:51:071]: Adding new sources is allowed.
MSI (c) (7C:8C) [13:48:51:071]: PROPERTY CHANGE: Adding PackagecodeChanging property. Its value is '1'.
MSI (c) (7C:8C) [13:48:51:071]: Package name extracted from package path: 'NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi'
MSI (c) (7C:8C) [13:48:51:071]: Package to be registered: 'NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi'
MSI (c) (7C:8C) [13:48:51:072]: Note: 1: 2262 2: AdminProperties 3: -2147287038 
MSI (c) (7C:8C) [13:48:51:072]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (c) (7C:8C) [13:48:51:072]: User policy value 'AlwaysInstallElevated' is 0
MSI (c) (7C:8C) [13:48:51:072]: Running product '{01EDCA69-3884-410A-B15A-6FC7E0E2C5CE}' with user privileges: It's not assigned.
MSI (c) (7C:8C) [13:48:51:072]: PROPERTY CHANGE: Adding CURRENTDIRECTORY property. Its value is 'C:\Users\xxxxxx\Downloads'.
MSI (c) (7C:8C) [13:48:51:072]: PROPERTY CHANGE: Adding CLIENTUILEVEL property. Its value is '0'.
MSI (c) (7C:8C) [13:48:51:072]: PROPERTY CHANGE: Adding CLIENTPROCESSID property. Its value is '18300'.
MSI (c) (7C:8C) [13:48:51:072]: TRANSFORMS property is now: 
MSI (c) (7C:8C) [13:48:51:072]: PROPERTY CHANGE: Adding VersionDatabase property. Its value is '405'.
MSI (c) (7C:8C) [13:48:51:072]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\AppData\Roaming
MSI (c) (7C:8C) [13:48:51:073]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\Favorites
MSI (c) (7C:8C) [13:48:51:073]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\Network Shortcuts
MSI (c) (7C:8C) [13:48:51:073]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\Documents
MSI (c) (7C:8C) [13:48:51:074]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
MSI (c) (7C:8C) [13:48:51:074]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\Recent
MSI (c) (7C:8C) [13:48:51:074]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\SendTo
MSI (c) (7C:8C) [13:48:51:074]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\Templates
MSI (c) (7C:8C) [13:48:51:075]: SHELL32::SHGetFolderPath returned: C:\ProgramData
MSI (c) (7C:8C) [13:48:51:075]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\AppData\Local
MSI (c) (7C:8C) [13:48:51:075]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\Pictures
MSI (c) (7C:8C) [13:48:51:076]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
MSI (c) (7C:8C) [13:48:51:076]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
MSI (c) (7C:8C) [13:48:51:076]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs
MSI (c) (7C:8C) [13:48:51:076]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu
MSI (c) (7C:8C) [13:48:51:077]: SHELL32::SHGetFolderPath returned: C:\Users\Public\Desktop
MSI (c) (7C:8C) [13:48:51:077]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
MSI (c) (7C:8C) [13:48:51:077]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
MSI (c) (7C:8C) [13:48:51:078]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
MSI (c) (7C:8C) [13:48:51:078]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\Start Menu
MSI (c) (7C:8C) [13:48:51:078]: SHELL32::SHGetFolderPath returned: C:\Users\xxxxxx\Desktop
MSI (c) (7C:8C) [13:48:51:079]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Templates
MSI (c) (7C:8C) [13:48:51:080]: SHELL32::SHGetFolderPath returned: C:\windows\Fonts
MSI (c) (7C:8C) [13:48:51:081]: Note: 1: 2898 2: MS Sans Serif 3: MS Sans Serif 4: 0 5: 20 
MSI (c) (7C:8C) [13:48:51:085]: MSI_LUA: Setting AdminUser property to 1 because this is the client or the user has already permitted elevation
MSI (c) (7C:8C) [13:48:51:085]: PROPERTY CHANGE: Adding AdminUser property. Its value is '1'.
MSI (c) (7C:8C) [13:48:51:085]: PROPERTY CHANGE: Adding Privileged property. Its value is '1'.
MSI (c) (7C:8C) [13:48:51:086]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2 
MSI (c) (7C:8C) [13:48:51:086]: PROPERTY CHANGE: Adding USERNAME property. Its value is 'Windows User'.
MSI (c) (7C:8C) [13:48:51:086]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2 
MSI (c) (7C:8C) [13:48:51:086]: PROPERTY CHANGE: Adding COMPANYNAME property. Its value is 'xxxxx'.
MSI (c) (7C:8C) [13:48:51:086]: PROPERTY CHANGE: Adding DATABASE property. Its value is 'C:\Users\xxxxxx\Downloads\NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi'.
MSI (c) (7C:8C) [13:48:51:086]: PROPERTY CHANGE: Adding OriginalDatabase property. Its value is 'C:\Users\xxxxxx\Downloads\NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi'.
MSI (c) (7C:8C) [13:48:51:086]: Machine policy value 'MsiDisableEmbeddedUI' is 0
MSI (c) (7C:8C) [13:48:51:086]: PROPERTY CHANGE: Adding SourceDir property. Its value is 'C:\Users\xxxxxx\Downloads.
MSI (c) (7C:8C) [13:48:51:086]: PROPERTY CHANGE: Adding SOURCEDIR property. Its value is 'C:\Users\xxxxxx\Downloads.
MSI (c) (7C:34) [13:48:51:086]: PROPERTY CHANGE: Adding VersionHandler property. Its value is '5.00'.
=== Logging started: 2/22/2018  13:48:51 ===
MSI (c) (7C:8C) [13:48:51:092]: Note: 1: 2205 2:  3: PatchPackage 
MSI (c) (7C:8C) [13:48:51:092]: Machine policy value 'DisableRollback' is 0
MSI (c) (7C:8C) [13:48:51:092]: User policy value 'DisableRollback' is 0
MSI (c) (7C:8C) [13:48:51:092]: PROPERTY CHANGE: Adding UILevel property. Its value is '5'.
MSI (c) (7C:8C) [13:48:51:093]: PROPERTY CHANGE: Adding ACTION property. Its value is 'INSTALL'.
MSI (c) (7C:8C) [13:48:51:093]: Doing action: INSTALL
Action 13:48:51: INSTALL. 
Action start 13:48:51: INSTALL.
MSI (c) (7C:8C) [13:48:51:093]: UI Sequence table 'InstallUISequence' is present and populated.
MSI (c) (7C:8C) [13:48:51:093]: Running UISequence
MSI (c) (7C:8C) [13:48:51:093]: PROPERTY CHANGE: Adding EXECUTEACTION property. Its value is 'INSTALL'.
MSI (c) (7C:8C) [13:48:51:093]: Doing action: ProgramMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A
Action 13:48:51: ProgramMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A. 
Action start 13:48:51: ProgramMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A.
MSI (c) (7C:8C) [13:48:51:093]: PROPERTY CHANGE: Adding ProgramMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A property. Its value is 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs.
Action ended 13:48:51: ProgramMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A. Return value 1.
MSI (c) (7C:8C) [13:48:51:093]: Doing action: ProgramFilesFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A
Action 13:48:51: ProgramFilesFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A. 
Action start 13:48:51: ProgramFilesFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A.
MSI (c) (7C:8C) [13:48:51:093]: PROPERTY CHANGE: Adding ProgramFilesFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A property. Its value is 'C:\Program Files (x86).
Action ended 13:48:51: ProgramFilesFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A. Return value 1.
MSI (c) (7C:8C) [13:48:51:093]: Doing action: ProgramFiles64Folder.998C53D5_36AE_41E2_AF7B_38D475B8114A
Action 13:48:51: ProgramFiles64Folder.998C53D5_36AE_41E2_AF7B_38D475B8114A. 
Action start 13:48:51: ProgramFiles64Folder.998C53D5_36AE_41E2_AF7B_38D475B8114A.
MSI (c) (7C:8C) [13:48:51:093]: PROPERTY CHANGE: Adding ProgramFiles64Folder.998C53D5_36AE_41E2_AF7B_38D475B8114A property. Its value is 'C:\Program Files.
Action ended 13:48:51: ProgramFiles64Folder.998C53D5_36AE_41E2_AF7B_38D475B8114A. Return value 1.
MSI (c) (7C:8C) [13:48:51:093]: Doing action: StartMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A
Action 13:48:51: StartMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A. 
Action start 13:48:51: StartMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A.
MSI (c) (7C:8C) [13:48:51:094]: PROPERTY CHANGE: Adding StartMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A property. Its value is 'C:\ProgramData\Microsoft\Windows\Start Menu.
Action ended 13:48:51: StartMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A. Return value 1.
MSI (c) (7C:8C) [13:48:51:094]: Doing action: DesktopFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A
Action 13:48:51: DesktopFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A. 
Action start 13:48:51: DesktopFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A.
MSI (c) (7C:8C) [13:48:51:094]: PROPERTY CHANGE: Adding DesktopFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A property. Its value is 'C:\Users\Public\Desktop.
Action ended 13:48:51: DesktopFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A. Return value 1.
MSI (c) (7C:8C) [13:48:51:095]: Doing action: SystemFolder_x86_VC.194841A2_D0F2_3B96_9F71_05BA91BEA0FA
Action 13:48:51: SystemFolder_x86_VC.194841A2_D0F2_3B96_9F71_05BA91BEA0FA. 
Action start 13:48:51: SystemFolder_x86_VC.194841A2_D0F2_3B96_9F71_05BA91BEA0FA.
MSI (c) (7C:8C) [13:48:51:095]: PROPERTY CHANGE: Adding SystemFolder_x86_VC.194841A2_D0F2_3B96_9F71_05BA91BEA0FA property. Its value is 'C:\windows\SysWOW64.
Action ended 13:48:51: SystemFolder_x86_VC.194841A2_D0F2_3B96_9F71_05BA91BEA0FA. Return value 1.
MSI (c) (7C:8C) [13:48:51:095]: Doing action: System64Folder_amd64_VC.05F0B5F5_44A8_3793_976B_A4F17AECF92C
Action 13:48:51: System64Folder_amd64_VC.05F0B5F5_44A8_3793_976B_A4F17AECF92C. 
Action start 13:48:51: System64Folder_amd64_VC.05F0B5F5_44A8_3793_976B_A4F17AECF92C.
MSI (c) (7C:8C) [13:48:51:095]: PROPERTY CHANGE: Adding System64Folder_amd64_VC.05F0B5F5_44A8_3793_976B_A4F17AECF92C property. Its value is 'C:\windows\system32.
Action ended 13:48:51: System64Folder_amd64_VC.05F0B5F5_44A8_3793_976B_A4F17AECF92C. Return value 1.
MSI (c) (7C:8C) [13:48:51:095]: Doing action: FindRelatedProducts
Action 13:48:51: FindRelatedProducts. Searching for related applications
Action start 13:48:51: FindRelatedProducts.
FindRelatedProducts: Found application: {33A1FAD1-C15E-4B4F-8CD9-06CD577433AA}
MSI (c) (7C:8C) [13:48:51:096]: PROPERTY CHANGE: Adding PREVIOUSVERSIONSINSTALLED property. Its value is '{33A1FAD1-C15E-4B4F-8CD9-06CD577433AA}'.
MSI (c) (7C:8C) [13:48:51:096]: PROPERTY CHANGE: Adding MIGRATE property. Its value is '{33A1FAD1-C15E-4B4F-8CD9-06CD577433AA}'.
Action ended 13:48:51: FindRelatedProducts. Return value 1.
MSI (c) (7C:8C) [13:48:51:096]: Doing action: get_VISUALSTUDIO2017LOCATION
Action 13:48:51: get_VISUALSTUDIO2017LOCATION. 
Action start 13:48:51: get_VISUALSTUDIO2017LOCATION.
MSI (c) (7C:8C) [13:48:51:098]: Creating MSIHANDLE (1) of type 790542 for thread 10636
MSI (c) (7C:34) [13:48:51:098]: Invoking remote custom action. DLL: C:\Users\xxxxxx\AppData\Local\Temp\MSI7923.tmp, Entrypoint: InitializeVS2017Properties
MSI (c) (7C:A8) [13:48:51:100]: Cloaking enabled.
MSI (c) (7C:A8) [13:48:51:100]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (7C:A8) [13:48:51:100]: Connected to service for CA interface.
MSI (c) (7C!0C) [13:48:51:212]: Creating MSIHANDLE (2) of type 790531 for thread 1292
SFXCA: Extracting custom action to temporary directory: C:\Users\xxxxxx\AppData\Local\Temp\MSI7923.tmp-\
MSI (c) (7C!0C) [13:48:51:213]: Closing MSIHANDLE (2) of type 790531 for thread 1292
MSI (c) (7C!0C) [13:48:51:229]: Creating MSIHANDLE (3) of type 790531 for thread 1292
SFXCA: Binding to CLR version v4.0.30319
MSI (c) (7C!0C) [13:48:51:231]: Closing MSIHANDLE (3) of type 790531 for thread 1292
MSI (c) (7C!0C) [13:48:51:277]: Creating MSIHANDLE (4) of type 790531 for thread 1292
Calling custom action VSInstanceFinder!VSInstanceFinder.CustomActions.InitializeVS2017Properties
MSI (c) (7C!0C) [13:48:51:280]: Closing MSIHANDLE (4) of type 790531 for thread 1292
MSI (c) (7C!0C) [13:48:51:322]: Creating MSIHANDLE (5) of type 790531 for thread 1292
starting custom action FindAnyVS2017Location()
MSI (c) (7C!0C) [13:48:51:323]: Closing MSIHANDLE (5) of type 790531 for thread 1292
MSI (c) (7C!0C) [13:48:51:326]: PROPERTY CHANGE: Adding VISUALSTUDIO2017INSTANCES property. Its value is '2'.
MSI (c) (7C!0C) [13:48:51:326]: PROPERTY CHANGE: Adding VISUALSTUDIO2017INSTANCECOUNT property. Its value is '2 instances'.
MSI (c) (7C!0C) [13:48:51:326]: Creating MSIHANDLE (6) of type 790531 for thread 1292
Considering VS2017 instance rooted at C:\Program Files (x86)\Microsoft Visual Studio017\BuildTools
MSI (c) (7C!0C) [13:48:51:327]: Closing MSIHANDLE (6) of type 790531 for thread 1292
MSI (c) (7C!0C) [13:48:51:327]: Creating MSIHANDLE (7) of type 790531 for thread 1292
Error: Expected to find "C:\Program Files (x86)\Microsoft Visual Studio017\BuildTools\Common7\IDE\devenv.com" but did not
MSI (c) (7C!0C) [13:48:51:327]: Closing MSIHANDLE (7) of type 790531 for thread 1292
CustomAction get_VISUALSTUDIO2017LOCATION returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (c) (7C:34) [13:48:51:334]: Closing MSIHANDLE (1) of type 790542 for thread 10636
Action ended 13:48:51: get_VISUALSTUDIO2017LOCATION. Return value 3.
MSI (c) (7C:8C) [13:48:51:335]: Doing action: FatalErrorCustom
Action 13:48:51: FatalErrorCustom. 
Action start 13:48:51: FatalErrorCustom.
Info 2898. For WixUI_Font_Normal textstyle, the system created a 'Tahoma' font, in 0 character set, of 16 pixels height.
Info 2898. For WixUI_Font_Bigger textstyle, the system created a 'Tahoma' font, in 0 character set, of 24 pixels height.
Action 13:48:51: FatalErrorCustom. Dialog created
MSI (c) (7C:BC) [13:48:51:345]: Note: 1: 2731 2: 0 
Action ended 13:48:54: FatalErrorCustom. Return value 2.
Action ended 13:48:54: INSTALL. Return value 3.
MSI (c) (7C:8C) [13:48:54:883]: Destroying RemoteAPI object.
MSI (c) (7C:A8) [13:48:54:884]: Custom Action Manager thread ending.
Property(C): DiskPrompt = NVIDIA Nsight Visual Studio Edition 5.5.0.18014 Installation
Property(C): UpgradeCode = {5C0261A2-00D2-45C8-8F45-71A1AF7586B3}
Property(C): ARPNOMODIFY = 1
Property(C): ARPNOREPAIR = 1
Property(C): ALLUSERS = 1
Property(C): HOSTREQUIREMENTSPASSED = false
Property(C): MONITORREQUIREMENTSPASSED = false
Property(C): DOTNETFRAMEWORK4EXISTS = false
Property(C): DOTNETFRAMEWORK4REQUIREMENTSPASS = false
Property(C): VISUALSTUDIO2010REQUIREMENTSPASS = false
Property(C): VISUALSTUDIO2012REQUIREMENTSPASS = false
Property(C): VISUALSTUDIO2013REQUIREMENTSPASS = false
Property(C): VISUALSTUDIO2015REQUIREMENTSPASS = false
Property(C): VISUALSTUDIO2017REQUIREMENTSPASS = false
Property(C): INSTALL_VS2017 = no
Property(C): UNINSTALL_VS2017 = no
Property(C): ProgramFilesFolder = C:\Program Files (x86)\
Property(C): SystemFolder = C:\windows\SysWOW64\
Property(C): ProgramFiles64Folder = C:\Program Files\
Property(C): System64Folder = C:\windows\system32\
Property(C): AppDataFolder = C:\Users\xxxxxx\AppData\Roaming\
Property(C): CommonAppDataFolder = C:\ProgramData\
Property(C): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
Property(C): StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\
Property(C): DesktopFolder = C:\Users\Public\Desktop\
Property(C): SourceDir = C:\Users\xxxxxx\Downloads\
Property(C): Privileged = 1
Property(C): Manufacturer = NVIDIA Corporation
Property(C): ProductCode = {01EDCA69-3884-410A-B15A-6FC7E0E2C5CE}
Property(C): ProductLanguage = 1033
Property(C): ProductName = NVIDIA Nsight Visual Studio Edition 5.5.0.18014
Property(C): ProductVersion = 5.5.0.18014
Property(C): PLATFORM = (VersionNT >= 601)
Property(C): HOSTALLOWED = true
Property(C): MONITORALLOWED = true
Property(C): VISUALSTUDIO2010 = VISUALSTUDIO2010KEY
Property(C): VS2017EXTENSIONSDIR = Extensions\NVIDIA\Nsight Visual Studio Edition.5\
Property(C): ARPPRODUCTICON = ProductIcon
Property(C): ARPHELPLINK = http://developer.nvidia.com
Property(C): ARPURLINFOABOUT = http://developer.nvidia.com
Property(C): UXTPRODUCTTRACKINGID = UA-59254929-1
Property(C): UXTPRODUCTNAME = Nsight
Property(C): UXTPRODUCTVERSIONCD = cd1
Property(C): UXTPRODUCTVERSIONCM = cm1
Property(C): UXTHOSTPLATFORMCD = cd2
Property(C): UXTHOSTPLATFORMCM = cm2
Property(C): UXTDOMAINCD = cd4
Property(C): UXTDOMAINCM = cm4
Property(C): UXTSESSIONCD = cd12
Property(C): UXTSESSIONCM = cm17
Property(C): UXTFEATURECD = cd13
Property(C): UXTFEATURECM = cm18
Property(C): UXTROLECD = cd30
Property(C): UXTROLECM = cm31
Property(C): SIPOPTINVALUE = True
Property(C): PrivacyPolicyURL = http://www.nvidia.com/object/privacy_policy.html
Property(C): DefaultUIFont = WixUI_Font_Normal
Property(C): InstallNsightURL = http://developer.nvidia.com/install-nsight-visual-studio-edition
Property(C): SIPUSERFILE = {4751b8b4-531d-4be6-919e-ffe9bf95dc01}.nvsettings
Property(C): SIPDEFAULTFILE = Vsip.Tracking.nvmodel.xaml
Property(C): INSTALLSUMMARY_FILENAME = Nsight_5.5.0.18014_InstallSummary.xml
Property(C): ErrorDialog = ErrorDlg
Property(C): SecureCustomProperties = DEVENV2010FILEEXISTS;DEVENV2012FILEEXISTS;DEVENV2013FILEEXISTS;DEVENV2015FILEEXISTS;DOTNETFRAMEWORK40CLIENT;DOTNETFRAMEWORK40FULL;DOTNETFRAMEWORK4EXISTS;DOTNETFRAMEWORK4KEY;DOTNETFRAMEWORK4REQUIREMENTSPASS;HOSTALLOWED;HOSTREQUIREMENTSPASSED;INSTALL_VS2017;KB971512KEY;MONITORALLOWED;MONITORREQUIREMENTSPASSED;MSDIA11064REGISTERED;MSDIA110REGISTERED;PREVIOUSVERSIONSINSTALLED;SIPOPTINVALUE;UNINSTALL_VS2017;UXTDOMAINCD;UXTDOMAINCM;UXTFEATURECD;UXTFEATURECM;UXTHOSTPLATFORMCD;UXTHOSTPLATFORMCM;UXTPRODUCTNAME;UXTPRODUCTTRACKINGID;UXTPRODUCTVERSION;UXTPRODUCTVERSIONCD;UXTPRODUCTVERSIONCM;UXTPRODUCTVERSIONREG;UXTROLECD;UXTROLECM;UXTSELECTEDFEATURES;UXTSESSIONCD;UXTSESSIONCM;VISUALSTUDIO2010;VISUALSTUDIO2010FOLDER;VISUALSTUDIO2010KEY;VISUALSTUDIO2010LOCATION;VISUALSTUDIO2010REQUIREMENTSPASS;VISUALSTUDIO2012FOLDER;VISUALSTUDIO2012KEY;VISUALSTUDIO2012LOCATION;VISUALSTUDIO2012REQUIREMENTSPASS;VISUALSTUDIO2013FOLDER;VISUALSTUDIO2013KEY;VISUALSTUDIO2013LOCATION;VISUALSTUDIO2013REQUIREMENTSPASS;VISUALSTUDIO2015FOLDER;VISUALSTUDIO2015KEY;VISUALSTUDIO2015LOCATION;VISUALSTUDIO2015REQUIREMENTSPASS;VISUALSTUDIO2017REQUIREMENTSPASS;VS2017EXTENSIONSDIR
Property(C): PREVIOUSVERSIONSINSTALLED = {33A1FAD1-C15E-4B4F-8CD9-06CD577433AA}
Property(C): System64Folder_amd64_VC.05F0B5F5_44A8_3793_976B_A4F17AECF92C = C:\windows\system32\
Property(C): DirectoryTable100_amd64.05F0B5F5_44A8_3793_976B_A4F17AECF92C = DirectoryTable
Property(C): SystemFolder_x86_VC.194841A2_D0F2_3B96_9F71_05BA91BEA0FA = C:\windows\SysWOW64\
Property(C): DirectoryTable100_x86.194841A2_D0F2_3B96_9F71_05BA91BEA0FA = DirectoryTable
Property(C): ProgramMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
Property(C): ProgramFilesFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A = C:\Program Files (x86)\
Property(C): ProgramFiles64Folder.998C53D5_36AE_41E2_AF7B_38D475B8114A = C:\Program Files\
Property(C): StartMenuFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A = C:\ProgramData\Microsoft\Windows\Start Menu\
Property(C): DesktopFolder.998C53D5_36AE_41E2_AF7B_38D475B8114A = C:\Users\Public\Desktop\
Property(C): ARPPRODUCTICON.998C53D5_36AE_41E2_AF7B_38D475B8114A = ProductIcon
Property(C): ARPURLINFOABOUT.998C53D5_36AE_41E2_AF7B_38D475B8114A = http://developer.nvidia.com
Property(C): MsiLogFileLocation = C:\Users\xxxxxx\AppData\Local\Temp\MSI36e69.LOG
Property(C): PackageCode = {27677B56-CE53-42A9-8138-EC83B371F33B}
Property(C): ProductState = -1
Property(C): PackagecodeChanging = 1
Property(C): CURRENTDIRECTORY = C:\Users\xxxxxx\Downloads
Property(C): CLIENTUILEVEL = 0
Property(C): CLIENTPROCESSID = 18300
Property(C): VersionDatabase = 405
Property(C): VersionMsi = 5.00
Property(C): VersionNT = 601
Property(C): VersionNT64 = 601
Property(C): WindowsBuild = 7601
Property(C): ServicePackLevel = 1
Property(C): ServicePackLevelMinor = 0
Property(C): MsiNTProductType = 1
Property(C): WindowsFolder = C:\windows\
Property(C): WindowsVolume = C:\
Property(C): RemoteAdminTS = 1
Property(C): TempFolder = C:\Users\xxxxxx\AppData\Local\Temp\
Property(C): CommonFilesFolder = C:\Program Files (x86)\Common Files\
Property(C): CommonFiles64Folder = C:\Program Files\Common Files\
Property(C): FavoritesFolder = C:\Users\xxxxxx\Favorites\
Property(C): NetHoodFolder = C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
Property(C): PersonalFolder = C:\Users\xxxxxx\Documents\
Property(C): PrintHoodFolder = C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
Property(C): RecentFolder = C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\Recent\
Property(C): SendToFolder = C:\Users\xxxxxx\AppData\Roaming\Microsoft\Windows\SendTo\
Property(C): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\
Property(C): LocalAppDataFolder = C:\Users\xxxxxx\AppData\Local\
Property(C): MyPicturesFolder = C:\Users\xxxxxx\Pictures\
Property(C): AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
Property(C): StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
Property(C): FontsFolder = C:\windows\Fonts\
Property(C): GPTSupport = 1
Property(C): OLEAdvtSupport = 1
Property(C): ShellAdvtSupport = 1
Property(C): MsiAMD64 = 6
Property(C): Msix64 = 6
Property(C): Intel = 6
Property(C): PhysicalMemory = 16216
Property(C): VirtualMemory = 25190
Property(C): LogonUser = XXXXX
Property(C): UserSID = S-1-5-21-907112402-3766131179-2979934366-493207
Property(C): UserLanguageID = 1033
Property(C): ComputerName = U701N11X876
Property(C): SystemLanguageID = 1033
Property(C): ScreenX = 1920
Property(C): ScreenY = 1200
Property(C): CaptionHeight = 27
Property(C): BorderTop = 1
Property(C): BorderSide = 1
Property(C): TextHeight = 20
Property(C): TextInternalLeading = 4
Property(C): ColorBits = 32
Property(C): TTCSupport = 1
Property(C): Time = 13:48:54
Property(C): Date = 2/22/2018
Property(C): MsiNetAssemblySupport = 4.7.2558.0
Property(C): MsiWin32AssemblySupport = 6.1.7601.17514
Property(C): RedirectedDllSupport = 2
Property(C): AdminUser = 1
Property(C): USERNAME = Windows User
Property(C): COMPANYNAME = xxxxx
Property(C): DATABASE = C:\Users\xxxxxx\Downloads\NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi
Property(C): OriginalDatabase = C:\Users\xxxxxx\Downloads\NVIDIA_Nsight_Visual_Studio_Edition_Win64_5.5.0.18014.msi
Property(C): SOURCEDIR = C:\Users\xxxxxx\Downloads\
Property(C): VersionHandler = 5.00
Property(C): UILevel = 5
Property(C): ACTION = INSTALL
Property(C): EXECUTEACTION = INSTALL
Property(C): MIGRATE = {33A1FAD1-C15E-4B4F-8CD9-06CD577433AA}
Property(C): VISUALSTUDIO2017INSTANCES = 2
Property(C): VISUALSTUDIO2017INSTANCECOUNT = 2 instances
=== Logging stopped: 2/22/2018  13:48:54 ===
MSI (c) (7C:8C) [13:48:54:906]: Note: 1: 1708 
MSI (c) (7C:8C) [13:48:54:906]: Product: NVIDIA Nsight Visual Studio Edition 5.5.0.18014 -- Installation failed.

MSI (c) (7C:8C) [13:48:54:907]: Windows Installer installed the product. Product Name: NVIDIA Nsight Visual Studio Edition 5.5.0.18014. Product Version: 5.5.0.18014. Product Language: 1033. Manufacturer: NVIDIA Corporation. Installation success or error status: 1603.

MSI (c) (7C:8C) [13:48:54:909]: Grabbed execution mutex.
MSI (c) (7C:8C) [13:48:54:909]: Cleaning up uninstalled install packages, if any exist
MSI (c) (7C:8C) [13:48:54:910]: MainEngineThread is returning 1603
=== Verbose logging stopped: 2/22/2018  13:48:54 ===

Hi thomas.veldhouse,

As I replied in the other thread, could you please try uninstalling BuildTools then install Nsight?

As could be inferred from the error logs above, it worked just fine with Build Tools removed. It’s quite a hassle to update (from 5.4.x) in this way, however.

On a side note, Microsoft has made referencing its tools even more difficult than it was in the past (i.e. where is msbuild.exe located!)…so it is hard to blame the author of the custom build step that is failing :). Microsoft should just leave well enough alone.

In case this helps anyone, I had the same error and resolved it by deleting a folder in the “C:\ProgramData\Microsoft\VisualStudio\Packages_Instances” folder. There were two folders in there, which I believe each represented a VS2017 installation. The two folders had meaningless names, like a short guid. One of them appears to be for VS2017RC which I determined by examining the text in a file named state.JSON. Once the folder was deleted, the installation proceeded without error.