Standard component install scripts for Windows OS
Standard components to be installed:
- WinGet
- PowerShell 7
- git
What optional component will be installed is controlled by tags (space separated).
Available tags are:
- no-std: Skip installation of standard components
- terminal: Install Windows Terminal
- dotnet: Install .NET 6 SDK
- msvc22-win10: Visual Studio Build Tools 2022 Win10 (MSVC)
- vs: Install Visual Studio 2022 Pro with desktop development workload
- Copy the command below, paste it in a PowerShell (admin mode) shell.
- Edit tags before pressing enter if needed (space separated).
- After installation is complete, your email address will be asked to set it in
.gitconfig
file.
"https://github.com/redcoreit/win-core/raw/master/install.ps1" | % { $Tags = "terminal"; (New-Object Net.WebClient).DownloadString($_) | iex }
Helper script to add repo access PAT (as base64) to .gitconfig, using include file.
In case of github, use the whole PAT string, like github_pat_foo_bar
.
"https://github.com/redcoreit/win-core/raw/master/addpat64.ps1" | % { (New-Object Net.WebClient).DownloadString($_) | iex }