/windows/autohotkey.ps1
https://github.com/rbreaves/kinto · Powershell · 22 lines · 21 code · 1 blank · 0 comment · 0 complexity · 55e25963a7361023a693fb1331a2fff9 MD5 · raw file
- if(-not(Get-Command "choco" -errorAction SilentlyContinue)){
- Write-Output "Seems Chocolatey is not installed, installing now"
- Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- refreshenv
- }
- else{
- Write-Output "Chocolatey is already installed"
- }
-
- if(-not(test-path "C:\Program Files\AutoHotkey\AutoHotkey.exe")){
- choco install autohotkey.install
- }
- else{
- Write-Output "Autohotkey is already installed"
- }
- if(-not(test-path "C:\Strawberry\")){
- choco install strawberryperl
- refreshenv
- }
- else{
- Write-Output "Perl is already installed"
- }