Setup instructions for Windows 10. All scripts are
PowerShell.
In PowerShell as Administrator:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachineThis will allow you to execute PowerShell scripts locally on your machine.
In PowerShell as Administrator:
Set-ExecutionPolicy AllSigned
Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))Close and reopen PowerShell after that.
In PowerShell as Administrator:
choco config set cacheLocation C:/ChocoCachechoco upgrade chocolateyThis is needed for the C++ compiler. Install Visual Studio 2022 Community Edition.
During installation select C++ desktop development and latest Windows 10 SDK.
After installation open Visual Studio and check for updates. Install the latest 2022 version that is available.
Install via Chocolatey. In PowerShell as Administrator:
choco uninstall cmake
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'Install via Chocolatey. In PowerShell as Administrator:
choco install ninjaUpdate $env:PSModulePath so that you can use PowerShell modules.
In PowerShell as Administrator:
[Environment]::SetEnvironmentVariable("PSModulePath", "$HOME/Documents/WindowsPowerShell/Modules;" + $env:PSModulePath, "Machine")In PowerShell as Administrator:
Install-Module VSSetup -Scope CurrentUserTest. Close and reopen PowerShell:
Get-VSSetupInstance `
| Select-VSSetupInstance -Version '[17.0,18.0]' `
| Select-Object -ExpandProperty InstallationPathThis finds the installation path for Visual Studio 2022.
Download and install from Visual Studio Code site.
Open Visual Studio Code and press Ctrl + Shift + p. Select Shell Command: Install 'code' command in PATH.