/windows/autohotkey.ps1

https://github.com/rbreaves/kinto · Powershell · 22 lines · 21 code · 1 blank · 0 comment · 0 complexity · 55e25963a7361023a693fb1331a2fff9 MD5 · raw file

  1. if(-not(Get-Command "choco" -errorAction SilentlyContinue)){
  2. Write-Output "Seems Chocolatey is not installed, installing now"
  3. Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  4. refreshenv
  5. }
  6. else{
  7. Write-Output "Chocolatey is already installed"
  8. }
  9. if(-not(test-path "C:\Program Files\AutoHotkey\AutoHotkey.exe")){
  10. choco install autohotkey.install
  11. }
  12. else{
  13. Write-Output "Autohotkey is already installed"
  14. }
  15. if(-not(test-path "C:\Strawberry\")){
  16. choco install strawberryperl
  17. refreshenv
  18. }
  19. else{
  20. Write-Output "Perl is already installed"
  21. }