Skip to content

Instantly share code, notes, and snippets.

@artemkozlenkov
Last active July 16, 2023 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artemkozlenkov/7f5a7ec251fe034fb4d127c9b61e58b4 to your computer and use it in GitHub Desktop.
Save artemkozlenkov/7f5a7ec251fe034fb4d127c9b61e58b4 to your computer and use it in GitHub Desktop.
@'
# Check if Chocolatey is installed, and if not, install it
if (-not (Get-Command choco -ErrorAction SilentlyContinue)) {
Write-Output "Chocolatey is not installed. Installing Chocolatey..."
Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}
# Install Git using Chocolatey
Write-Output "Installing Git..."
choco install git -y
# Verify the installation
Write-Output "Git installation completed."
Write-Output "Git version:"
git --version
'@ | Set-Content -Path "script.ps1"
& .\script.ps1
@artemkozlenkov
Copy link
Author

initial

@artemkozlenkov
Copy link
Author

add mql download

@artemkozlenkov
Copy link
Author

corect path

@artemkozlenkov
Copy link
Author

update

@artemkozlenkov
Copy link
Author

update1

@artemkozlenkov
Copy link
Author

upd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment