title: running jboss7 as service on windows, wrong JBOSS_HOME
body: <p>I'm triing to run jboss7 as service in windows.</p>
  
  <p>If i run the server with .\bin\standalone.bat it works OK</p>
  
  <p>But when I run it via windows services (I have succesfuly installed the service)  the wrong JBOSS_HOME is called which was not pointing to the correct foudler. I have removed the JBOSS_HOME from the environment variables because I will have multiple Jboss instances on the same machine. </p>
  
  <p>The problem is that when I run it via the service it gets the value of JBOSS_HOME that was set before in "env variables"</p>
  
  <p>It looks like it is caching the value somwhere. Do I nead to restart something? Maybe the whole windows?</p>