version: 1.1.0.{build}
install:
- cmd: cinst nsis -y
- cmd: RefreshEnv
- ps: Set-AppveyorBuildVariable -Name PATH -Value "%PATH%;C:\Program Files (x86)\NSIS"
- ps: |
    $url='http://download.microsoft.com/download/7/B/6/7B629E05-399A-4A92-B5BC-484C74B5124B/dotNetFx40_Client_setup.exe'
    $exe=(Split-Path $url -Leaf)
    if (Test-Path $exe) {
        Write-Output "Using cached $exe"
    } else {
        Write-Output "No cached $exe, downloading $url"
        Start-FileDownload $url
    }
assembly_info:
    patch: true
configuration:
- Debug
- Release
before_build:
- nuget restore
after_build:
- makensis /DSSH_HANDLER_VERSION=%APPVEYOR_BUILD_VERSION% /DSSH_HANDLER_CONFIGURATION=%CONFIGURATION% ssh-handler.nsi
artifacts:
- path: ssh-handler\bin\$(configuration)\ssh-handler.exe
- path: ssh-handler-*.exe
cache:
- dotNetFx40_Client_setup.exe

version: 1.1.0.{build}
install:
- cmd: cinst nsis -y
- cmd: RefreshEnv
- ps: Set-AppveyorBuildVariable -Name PATH -Value "$env:PATH;C:\Program Files (x86)\NSIS"
- ps: |
    $url='http://download.microsoft.com/download/7/B/6/7B629E05-399A-4A92-B5BC-484C74B5124B/dotNetFx40_Client_setup.exe'
    $exe=(Split-Path $url -Leaf)
    if (Test-Path $exe) {
        Write-Output "Using cached $exe"
    } else {
        Write-Output "No cached $exe, downloading $url"
        Start-FileDownload $url
    }
assembly_info:
    patch: true
configuration:
- Debug
- Release
before_build:
- nuget restore
after_build:
- makensis /DSSH_HANDLER_VERSION=%APPVEYOR_BUILD_VERSION% /DSSH_HANDLER_CONFIGURATION=%CONFIGURATION% ssh-handler.nsi
artifacts:
- path: ssh-handler\bin\$(configuration)\ssh-handler.exe
- path: ssh-handler-*.exe
cache:
- dotNetFx40_Client_setup.exe

Use correct environment variable notation for PATH
Use correct environment variable notation for PATH