From d1ee9ebbd98da52557a5e11b6cadfe6db5f73998 Mon Sep 17 00:00:00 2001 From: Clint Rutkas Date: Thu, 13 Aug 2020 11:32:36 -0700 Subject: [PATCH] Update readme.md (#5939) --- doc/devdocs/readme.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/devdocs/readme.md b/doc/devdocs/readme.md index e7c159d57d..9f29321f16 100644 --- a/doc/devdocs/readme.md +++ b/doc/devdocs/readme.md @@ -52,12 +52,19 @@ Various tools used by PowerToys. Includes the Visual Studio 2019 project templat 1. Windows 10 April 2018 Update (version 1803) or newer 2. Visual Studio Community/Professional/Enterprise 2019 -3. Run the command below in cmd/terminal to install all the workloads and components for VS.
-**Note:** the script assumes VS is installed and Community edition. Please update path accordingly if Professional/Enterprise. +3. Run the command below in cmd/terminal to install all the workloads and components for VS. ```shell +cd "%ProgramFiles(x86)%\Microsoft Visual Studio\2019" +SET targetFolder="\" +IF EXIST Enterprise\NUL (SET targetFolder=Enterprise) +IF EXIST Professional\NUL (SET targetFolder=Professional) +IF EXIST Community\NUL (SET targetFolder=Community) + +ECHO %targetFolder% + "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vs_installer.exe" ^ -modify --installpath "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\community" ^ +modify --installpath "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\%targetFolder%" ^ --add Microsoft.VisualStudio.Workload.NativeDesktop ^ --add Microsoft.VisualStudio.Workload.ManagedDesktop ^ --add Microsoft.VisualStudio.Workload.Universal ^