Installation script issue on Windows from PowerShell

Hi all,

Fresh Windows 11 installation and getting the error below when attempting to install Elixir via PowerShell script. Pretty sure I missed
PS C:\installs> .\install.bat elixir@1.17.3 otp@27.1.2
checking OTP… Could not load module C:\Users\wojtek\otp\erts-15.1.2\bin\erlexec.dll.

I have no such user “wojtek” on my system. @wojtekmach :slight_smile:

Thanks! :smiley:

Cannot reproduce, works on my machine!

You downloaded the script from elixir-lang.org right? Any change you have previously used elixir-install.org?

I bet you have a %USERPROFILE%\.elixir-installs\installs\otp\27.1.2\bin\erl.ini file that SHOULD NOT be there and it might have been a leftover from previous attempts at this. Remove it and it should work. If you only ever used the latest install script that’s a problem.

1 Like

Nailed it. I knew I missed something silly like that so now I know. Thanks.

Did you run the Phoenix single file script installer thing by any chance? If so, that’d be the culprit.

If you could remove %USERPROFILE%\.elixir-install\installs\otp and run that script again and verify it works it would be a huge help.

This looks related to the problem I faced while getting phoenix to work on windows.

Please see this thread
not-being-able-to-compile-telemetry-dependency