- Corrected autohotkey/choco install script, added setup for powershell

This commit is contained in:
Ben Reaves
2020-06-19 19:03:06 -07:00
parent 065dad7ce3
commit da22daf1f3
2 changed files with 3 additions and 3 deletions

View File

@@ -1,10 +1,9 @@
$testchoco = powershell choco -v
if(-not($testchoco)){
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'))
}
else{
Write-Output "Chocolatey Version $testchoco is already installed"
Write-Output "Chocolatey is already installed"
}
if(-not(test-path "C:\Program Files\AutoHotkey\AutoHotkey.exe")){