Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Issue 2754263002: Retrieve Visual Studio 2017 installation location from registry (Closed)

Created:
3 years, 9 months ago by jobor
Modified:
3 years, 8 months ago
Reviewers:
refack, brucedawson
CC:
chromium-reviews, apardoe_microsoft.com
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Retrieve Visual Studio 2017 installation location from registry Remove the hard-coded path that was needed for VS 15 Preview. Since VS 2017 RC Microsoft provides a way to read the installation location from the registry like it was possible with older VS versions. Luckily, the same code path can be used for all VS versions. Below HKLM\Software\Wow6432Node\Microsoft\VisualStudio\SxS\VS7 are keys per VS version that contain the installation path. That path does not have the "\Common7\IDE" suffix, thus the code that removed it can go. BUG=

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -18 lines) Patch
M build/vs_toolchain.py View 1 chunk +8 lines, -18 lines 0 comments Download

Messages

Total messages: 28 (3 generated)
jobor
3 years, 9 months ago (2017-03-17 14:49:06 UTC) #3
brucedawson
lgtm with two CL description changes: - Add this bug number: 683729. You should never ...
3 years, 9 months ago (2017-03-20 22:37:18 UTC) #4
refack
I'm sure the issue that the registry "HKLM\Software\Microsoft\VisualStudio\SxS\VS7" is not supported by Microsoft (https://blogs.msdn.microsoft.com/heaths/2016/09/15/changes-to-visual-studio-15-setup/) This ...
3 years, 9 months ago (2017-03-20 23:34:41 UTC) #6
refack
Andrew, what's MS's take?
3 years, 9 months ago (2017-03-20 23:41:08 UTC) #7
brucedawson
On 2017/03/20 23:41:08, refack wrote: > Andrew, what's MS's take? One option would be to ...
3 years, 9 months ago (2017-03-20 23:44:43 UTC) #8
chromium-reviews
Refack/Bruce, thanks for looping me! This is a Heath issue. Adding him. From: brucedawson@chromium.org [mailto:brucedawson@chromium.org] ...
3 years, 9 months ago (2017-03-20 23:48:26 UTC) #9
refack
On 2017/03/20 23:48:26, chromium-reviews wrote: > Refack/Bruce, thanks for looping me! > > This is ...
3 years, 9 months ago (2017-03-20 23:53:12 UTC) #10
refack
> > One option would be to leave in the override: > > > > ...
3 years, 9 months ago (2017-03-20 23:56:59 UTC) #11
jobor
Right, Visual C++ Build Tools can be supported by reading yet another registry key like ...
3 years, 9 months ago (2017-03-21 10:29:27 UTC) #12
refack
On 2017/03/21 10:29:27, jobor wrote: > Right, Visual C++ Build Tools can be supported by ...
3 years, 9 months ago (2017-03-21 16:15:42 UTC) #13
andrew.pardoe
On 2017/03/21 16:15:42, refack wrote: > P.P.S. there is an Official MS exe (https://github.com/Microsoft/vswhere) to ...
3 years, 9 months ago (2017-03-21 16:53:58 UTC) #14
jobor
Allright, the official, non-registry-reading way is apparently the more future proof way to go. And ...
3 years, 9 months ago (2017-03-21 19:20:33 UTC) #15
brucedawson
On 2017/03/21 16:53:58, andrew.pardoe wrote: > On 2017/03/21 16:15:42, refack wrote: > > > P.P.S. ...
3 years, 9 months ago (2017-03-21 23:55:21 UTC) #16
andrew.pardoe
On 2017/03/21 23:55:21, brucedawson wrote: > Our current solution in Chromium is "Assume the default ...
3 years, 9 months ago (2017-03-22 00:06:03 UTC) #17
refack
From the people who brought you: gclient, depot-tools, GYP, gn... Yes a ~300 line tool ...
3 years, 9 months ago (2017-03-22 00:37:33 UTC) #18
refack
On 2017/03/22 00:37:33, refack wrote: > From the people who brought you: gclient, depot-tools, GYP, ...
3 years, 9 months ago (2017-03-22 00:42:57 UTC) #19
brucedawson
On 2017/03/22 00:42:57, refack wrote: > On 2017/03/22 00:37:33, refack wrote: > > From the ...
3 years, 9 months ago (2017-03-22 00:57:42 UTC) #20
refack
Back to VS2017, way don't you just set `%VS150COMNTOOLS%` (for the multiple instance use-case you ...
3 years, 9 months ago (2017-03-24 16:32:31 UTC) #21
refack
On 2017/03/24 16:32:31, refack wrote: > Back to VS2017, way don't you just set `%VS150COMNTOOLS%` ...
3 years, 9 months ago (2017-03-24 16:33:02 UTC) #22
andrew.pardoe
On 2017/03/24 16:33:02, refack wrote: > On 2017/03/24 16:32:31, refack wrote: > > Back to ...
3 years, 9 months ago (2017-03-24 16:50:23 UTC) #23
refack
​Will do. I urge everyone else to up vote this at https://developercommunity.visualstudio.com/content/problem/35325/missing-vs150comntools.html > I've made ...
3 years, 9 months ago (2017-03-24 17:50:11 UTC) #24
jobor
Closed this change. We will just set the vs2017_install environment variable in QtWebEngine's build system. ...
3 years, 9 months ago (2017-03-27 10:54:56 UTC) #25
refack
On 2017/03/22 00:57:42, brucedawson wrote: > On 2017/03/22 00:42:57, refack wrote: > > On 2017/03/22 ...
3 years, 9 months ago (2017-03-27 12:01:37 UTC) #26
refack
On 2017/03/27 10:54:56, jobor wrote: > Closed this change. We will just set the vs2017_install ...
3 years, 9 months ago (2017-03-27 12:02:34 UTC) #27
andrew.pardoe
3 years, 8 months ago (2017-04-20 22:28:44 UTC) #28
Message was sent while issue was closed.
On 2017/03/27 12:02:34, refack wrote:
> On 2017/03/27 10:54:56, jobor wrote:
> > Closed this change. We will just set the vs2017_install environment variable
> in
> > QtWebEngine's build system.
> > 
> > I will add my two cents to the VS issue refack opened. This COM nonsense
needs
> > to end.
> 
> @jobor like we used to say; GG!

The officially supported vswhere tool is now available as part of the install
starting today with Visual Studio 15.2 preview 2:
https://blogs.msdn.microsoft.com/heaths/2017/04/21/vswhere-is-now-installed-w....
This doesn't fix all the existing installs of VS 2017 but going forward you can
now detect the VS install locations and whether C++ tools are available from a
scripted environment.

Powered by Google App Engine
This is Rietveld 408576698