Erlang upgrade / Removing a package from appveyor

Daniel K's Avatar

Daniel K

18 Dec, 2017 02:12 PM

Hey people,

how would I go about removing erl8.3 from the build environment?
I need to upgrade it to erl9.0

Thanks!

  1. 1 Posted by Daniel K on 18 Dec, 2017 02:26 PM

    Daniel K's Avatar

    Got it:

    - SET PATH=%PATH:C:\Program Files\erl8.3\bin;=%

  2. Support Staff 2 Posted by Feodor Fitsner on 18 Dec, 2017 06:53 PM

    Feodor Fitsner's Avatar

    Hi Daniel,

    You can use this PS script to install Erlang 9.1 during the build:

    Write-Host "Installing Erlang..." -ForegroundColor Cyan
    
    Write-Host "Downloading..."
    $exePath = "$env:TEMP\otp_win64_20.1.exe"
    (New-Object Net.WebClient).DownloadFile('http://erlang.org/download/otp_win64_20.1.exe', $exePath)
    
    Write-Host "Installing..."
    cmd /c start /wait $exePath /S
    
    $env:path = "C:\Program Files\erl9.1\bin;$env:path"
    [Environment]::SetEnvironmentVariable('ERLANG_HOME', 'C:\Program Files\erl9.1', 'Machine')
    
    Write-Host "Installed Erlang" -ForegroundColor Green
    

    We added an issue to update it on the image: https://github.com/appveyor/ci/issues/1987

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac