# Cannot install the complete VS2019 build tools through chocolatey

**URL:** <https://travis-ci.community/t/cannot-install-the-complete-vs2019-build-tools-through-chocolatey/5684>\
**Category:** Windows\
**Created:** [October 26, 2019, 6:28pm UTC](https://travis-ci.community/t/cannot-install-the-complete-vs2019-build-tools-through-chocolatey/5684 "2019-10-26T18:28:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubenvb](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/rubenvb/32/1942_2.png) [@rubenvb](https://travis-ci.community/u/rubenvb)\
**Post date:** [October 26, 2019, 6:28pm UTC](https://travis-ci.community/t/cannot-install-the-complete-vs2019-build-tools-through-chocolatey/5684/1 "2019-10-26T18:28:37Z")

</div>

I am trying to set up a job compiling with VS2019.  
For that I am using chocolatey to install VS2019 build tools using the example install command shown on the package’s info page: [https://chocolatey.org/packages/visualstudio2019buildtools](https://chocolatey.org/packages/visualstudio2019buildtools)

It fails for some reason although no detailed failure is reported. I am totally unfamiliar with chocolatey so I have no idea how to find the log file it is talking about.

[https://travis-ci.org/skui-org/3rdparty/jobs/603300240](https://travis-ci.org/skui-org/3rdparty/jobs/603300240)

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [October 26, 2019, 7:15pm UTC](https://travis-ci.community/t/cannot-install-the-complete-vs2019-build-tools-through-chocolatey/5684/2 "2019-10-26T19:15:53Z")

</div>

It says

> See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log)

---

<div class="post-metadata">

**Author:** ![phoe](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/phoe/32/3000_2.png) [@phoe](https://travis-ci.community/u/phoe)\
**Post date:** [October 26, 2019, 9:14pm UTC](https://travis-ci.community/t/cannot-install-the-complete-vs2019-build-tools-through-chocolatey/5684/3 "2019-10-26T21:14:43Z")

</div>

Try putting the following as the last build step and run the job again. Let’s see what is inside that log file.

```auto
- cat C:\ProgramData\chocolatey\logs\chocolatey.log

```

---

<div class="post-metadata">

**Author:** ![kdesnos](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kdesnos/32/3079_2.png) [@kdesnos](https://travis-ci.community/u/kdesnos)\
**Post date:** [November 7, 2019, 7:49pm UTC](https://travis-ci.community/t/cannot-install-the-complete-vs2019-build-tools-through-chocolatey/5684/4 "2019-11-07T19:49:03Z")

</div>

I managed to use VS 2019 using the following commands:

```auto
before_install:
    - choco install visualstudio2019buildtools --package-parameters "--includeRecommended --includeOptional"
    - choco install visualstudio2019-workload-vctools

```

I hope it helps.
