{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/1462","repository_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs","labels_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/1462/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/1462/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/1462/events","html_url":"https://github.com/rust-lang-nursery/rustup.rs/issues/1462","id":341289127,"node_id":"MDU6SXNzdWUzNDEyODkxMjc=","number":1462,"title":"launch Visual Studio Installer to install the C++ tools","user":{"login":"ctaggart","id":80104,"node_id":"MDQ6VXNlcjgwMTA0","avatar_url":"https://avatars2.githubusercontent.com/u/80104?v=4","gravatar_id":"","url":"https://api.github.com/users/ctaggart","html_url":"https://github.com/ctaggart","followers_url":"https://api.github.com/users/ctaggart/followers","following_url":"https://api.github.com/users/ctaggart/following{/other_user}","gists_url":"https://api.github.com/users/ctaggart/gists{/gist_id}","starred_url":"https://api.github.com/users/ctaggart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctaggart/subscriptions","organizations_url":"https://api.github.com/users/ctaggart/orgs","repos_url":"https://api.github.com/users/ctaggart/repos","events_url":"https://api.github.com/users/ctaggart/events{/privacy}","received_events_url":"https://api.github.com/users/ctaggart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-15T03:33:42Z","updated_at":"2018-07-28T17:02:41Z","closed_at":null,"author_association":"NONE","body":"`rust-init.exe` does a good job at detecting for missing C++ tools. It would be even better if it detected an existing Visual Studio installation to prompt with something like: `Would you like to launch Visual Studio Installer to install the C++ tools?` and then do so.\r\n\r\nThe scenario is that I have Visual Studio 2017 installed and I want to install Rust. Currently you get this prompt https://github.com/rust-lang-nursery/rustup.rs/issues/1114#issuecomment-405064524 . It would be amazing if `rust-init.exe` launched the Visual Studio Installer to install the missing dependencies. Here is a PowerShell script that I ran as admin to get them installed:\r\n\r\n``` ps1\r\n# start the Visual Studio Installer to install Rust dependencies\r\n# current component names are:\r\n#   VC++ 2017 version 15.7 v14.14 latest v141 tools\r\n#   Windows 10 SDK (10.0.17134.0)\r\n\r\n# get the latest Visual Studio installation path\r\n$installationPath = & \"${env:ProgramFiles(x86)}\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -latest -property installationPath\r\n\r\n# launch the installer (must be admin)\r\n& \"${env:ProgramFiles(x86)}\\Microsoft Visual Studio\\Installer\\vs_installershell.exe\" modify `\r\n    --installPath $installationPath `\r\n    --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `\r\n    --add Microsoft.VisualStudio.Component.Windows10SDK\r\n```\r\n\r\nI took notes in https://github.com/ctaggart/rustup.rs/issues/1 while making this."},"comment":{"url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/comments/408621432","html_url":"https://github.com/rust-lang-nursery/rustup.rs/issues/1462#issuecomment-408621432","issue_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/1462","id":408621432,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODYyMTQzMg==","user":{"login":"Diggsey","id":451321,"node_id":"MDQ6VXNlcjQ1MTMyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/451321?v=4","gravatar_id":"","url":"https://api.github.com/users/Diggsey","html_url":"https://github.com/Diggsey","followers_url":"https://api.github.com/users/Diggsey/followers","following_url":"https://api.github.com/users/Diggsey/following{/other_user}","gists_url":"https://api.github.com/users/Diggsey/gists{/gist_id}","starred_url":"https://api.github.com/users/Diggsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diggsey/subscriptions","organizations_url":"https://api.github.com/users/Diggsey/orgs","repos_url":"https://api.github.com/users/Diggsey/repos","events_url":"https://api.github.com/users/Diggsey/events{/privacy}","received_events_url":"https://api.github.com/users/Diggsey/received_events","type":"User","site_admin":false},"created_at":"2018-07-28T17:02:41Z","updated_at":"2018-07-28T17:02:41Z","author_association":"MEMBER","body":"I would be happy to accept a PR for this, although we'd need a fallback for detecting visual studio: I have VS2017 installed and `vswhere` is not present."}}
{"actor":{"display_login":"Diggsey"}}