-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: add detection of VS 2017 #227
Conversation
|
Should we be more conservative and prefer one of the older versions if multiple VS are installed? |
|
Prefer the latest. |
| ReadRegStr $0 HKLM "SOFTWARE\Microsoft\VisualStudio\SxS\VS7" "15.0" | ||
| StrCpy $1 "VC2017" | ||
| IfErrors not_vc2017 | ||
| ${LineRead} "$0\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt" "1" $2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference NSIS 2.46 Users Manual#LineRead.
| @@ -351,6 +352,15 @@ SectionGroupEnd | |||
| Function DetectVSAndSDK | |||
| ClearErrors | |||
|
|
|||
| ReadRegStr $0 HKLM "SOFTWARE\Microsoft\VisualStudio\SxS\VS7" "15.0" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have installed VS 2017 Pro and there is no key HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7.
But there is HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See answer below #227 (comment).
The installer is a 32-bit process so the key is translated to the Wow6432Node by a 64-bit OS. |
|
This should have been targeted at stable. I cherry-picked it, s.t. it's part of the 2.074.2 release ;-) |
Needs dlang/dmd#6716
See https://issues.dlang.org/show_bug.cgi?id=17280 and https://issues.dlang.org/show_bug.cgi?id=17320