Last active
October 10, 2019 13:41
-
-
Save iarovyi/f41d046c991cda42a45b183080251d13 to your computer and use it in GitHub Desktop.
Install base software for .NET developer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Installs basic software for .NET developer | |
.PARAMETER IncludePaid | |
Install paied software that requires specifying license afterwards | |
.Example | |
.\InstallDefaults.ps1 -IncludePaid | |
#> | |
[CmdletBinding()] | |
param ( | |
[switch]$IncludePaid | |
) | |
function Install-Chocolatey | |
{ | |
Set-ExecutionPolicy Bypass -Scope Process -Force; | |
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
} | |
function Disable-Service | |
{ | |
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory = $true)] | |
[ValidateNotNullOrEmpty()] | |
[string]$Name | |
) | |
Get-Service -Name $Name | ?{ $_.Status -eq "Running" } | % { $_.Stop(); } | |
Get-Service -Name $Name | ?{ $_.StartType -eq "Automatic" } | | |
% { Set-Service -Name $_.Name -StartupType Manual; } | |
} | |
$stopwatch = [system.diagnostics.stopwatch]::StartNew() | |
Install-Chocolatey | |
choco install -y googlechrome | |
choco install -y vscode | |
choco install -y notepadplusplus | |
choco install -y sourcetree | |
choco install -y git.install | |
choco install -y conemu | |
choco install -y 7zip | |
choco install -y docker-desktop | |
choco install -y visualstudio2019community | |
choco install -y dotpeek | |
choco install -y sql-server-express #"Server=.\SQLEXPRESS;Trusted_Connection=True; | |
choco install -y sql-server-management-studio | |
Disable-Service "*SQL*" | |
choco install -y thunderbird | |
if ($IncludePaid.IsPresent){ | |
choco install -y resharper | |
choco install -y webstorm | |
} | |
Write-Output "Installion completed in $([math]::Round($stopwatch.Elapsed.TotalMinutes,0)) minutes" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment