From 51021c5920991b4842371dde070dbaa0753d382d Mon Sep 17 00:00:00 2001 From: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com> Date: Tue, 23 Jul 2024 06:54:25 -0400 Subject: [PATCH 1/2] tools: make choco install script readable --- tools/msvs/install_tools/install_tools.bat | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tools/msvs/install_tools/install_tools.bat b/tools/msvs/install_tools/install_tools.bat index 18f92a981003f2..f5f6032e4b1e59 100644 --- a/tools/msvs/install_tools/install_tools.bat +++ b/tools/msvs/install_tools/install_tools.bat @@ -52,4 +52,15 @@ pause cls -"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command Start-Process '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1'')); choco upgrade -y python visualstudio2019-workload-vctools; Read-Host ''Type ENTER to exit'' ' -Verb RunAs +"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" ` +-NoProfile ` +-InputFormat None ` +-ExecutionPolicy Bypass ` +-Command Start-Process ` + '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' ` + -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command ` + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ` + iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1'')); ` + choco upgrade -y python visualstudio2019-workload-vctools; ` + Read-Host ''Type ENTER to exit'' ' ` + -Verb RunAs From 8c1254bc53001adb851c8ccad1fb00b0742c9ff9 Mon Sep 17 00:00:00 2001 From: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com> Date: Tue, 20 Aug 2024 20:16:05 -0400 Subject: [PATCH 2/2] fix backticks Co-Authored-By: sepehrst --- tools/msvs/install_tools/install_tools.bat | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tools/msvs/install_tools/install_tools.bat b/tools/msvs/install_tools/install_tools.bat index f5f6032e4b1e59..4b2bdec0f31c44 100644 --- a/tools/msvs/install_tools/install_tools.bat +++ b/tools/msvs/install_tools/install_tools.bat @@ -52,15 +52,15 @@ pause cls -"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" ` --NoProfile ` --InputFormat None ` --ExecutionPolicy Bypass ` --Command Start-Process ` - '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' ` - -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command ` - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ` - iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1'')); ` - choco upgrade -y python visualstudio2019-workload-vctools; ` - Read-Host ''Type ENTER to exit'' ' ` +"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" ^ +-NoProfile ^ +-InputFormat None ^ +-ExecutionPolicy Bypass ^ +-Command Start-Process ^ + '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' ^ + -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command ^ + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ^ + iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1'')); ^ + choco upgrade -y python visualstudio2019-workload-vctools; ^ + Read-Host ''Type ENTER to exit'' ' ^ -Verb RunAs