From da22daf1f318c42cb1761fc4c3c06fe1d7ce8554 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Fri, 19 Jun 2020 19:03:06 -0700 Subject: [PATCH] - Corrected autohotkey/choco install script, added setup for powershell --- setup.ps1 | 1 + windows/autohotkey.ps1 | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 setup.ps1 diff --git a/setup.ps1 b/setup.ps1 new file mode 100644 index 0000000..07d5c51 --- /dev/null +++ b/setup.ps1 @@ -0,0 +1 @@ +Add-AppxPackage -register "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2241.0_x64__qbz5n2kfra8p0\AppxManifest.xml" -DisableDevelopmentMode \ No newline at end of file diff --git a/windows/autohotkey.ps1 b/windows/autohotkey.ps1 index af83f93..419b6b4 100644 --- a/windows/autohotkey.ps1 +++ b/windows/autohotkey.ps1 @@ -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")){