title: Windows x64 RabbitMQ install error with Erlang environment var (ERLANG_HOME)
body: <p>I'm ask/answering this question because it hung me up &amp; it's likely someone else will have the same problem.</p>
  
  <p>Install of RabbitMQ x64 v2.8.6 on Windows Server 2008 x64. </p>
  
  <p>After Erlang install using default install location to C:\Program Files\erl5.9.2, I'm attempting to start the server via running the rabbitmq-service.bat. Fail:</p>
  
  <pre><code>Please either set ERLANG_HOME to point to your Erlang installation 
  or place the RabbitMQ server distribution in the Erlang lib folder.
  </code></pre>
  
  <p>Problem is the .bat file does not have the correct subpath. with 5.9.2 (R15B02) version of erlang. My ERLANG_HOME directory is set correctly, but the script does not use it correctly for this version of Erlang, which, it appears to this Erlang noob to have a new subdirectory called "erts-5.9.2" which is causing the problems. Maybe someone intimate with these scripts can describe how to make this work correctly without the hack workaround I'm about to describe?</p>