cannot install visual studio 2022 or 2019

André LEFEVER 21 Reputation points
2023-01-03T15:49:18.377+00:00

get error :
PackageId:Microsoft.Build.FileTracker.Msi;PackageAction:Install;ReturnCode:1320;

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,595 questions
{count} votes

Accepted answer
  1. Michael Taylor 47,806 Reputation points
    2023-01-03T16:16:03.987+00:00

    Error 1320 indicates that the file path is too long. VS has a heavily nested structure. Ensure you are installing it to a directory like C:\PRogram FIles or similar. Do not attempt to install it into a long path as this will cause problems. Additionally, while unlikely, make sure you are installing to an NTFS drive and that you are running the latest OS version. Windows long path support was added a while back.

    0 comments No comments

9 additional answers

Sort by: Most helpful
  1. André LEFEVER 21 Reputation points
    2023-01-12T07:06:09.09+00:00
    0 comments No comments

  2. André LEFEVER 21 Reputation points
    2023-01-12T07:07:00.97+00:00
    0 comments No comments

  3. André LEFEVER 21 Reputation points
    2023-01-12T15:55:36.8933333+00:00

    ok, I did a lot of research...

    about the ps1 file on https://gist.github.com/heaths/77fbe0b44496960fab25c2eb0b9e8475

    it did not work on powershell

    so I found that ServerManager was not on my PC ( I converted windows 10 to windows11 )

    I installed it ... then I had to install NETUI0.dll

    I then used the ps1 file (see above) in powershell and it worked.

    I tried to intall visual studio 2022 and the result can be found in the attached file sorry.jpg


  4. André LEFEVER 21 Reputation points
    2023-01-13T13:26:20.26+00:00

    Ok found the problem ... => missing file dsref80.dll

    so I don't have this problem any more.

    now the installation is blocking on

    microsoft.visualstudio.community.shared.msi

    and when i go to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib{7C0FFAB0-CD84-11D0-949A-00A0C91110ED}

    I see that the full control = TrustedInstaller

    who is that TrustedInstaller ????