title: How to install node.js in a custom directory through powershell?
body: <p>I am making a script to install NodeJS on several machines through PowerShell.
  By default NodeJS gets installed in C:\Program Files\nodejs folder. Can I define a custom directory for the installation?</p>
  
  <p>I am running this command:</p>
  
  <pre><code>msiexec.exe /i $nodejs_download_filename /L*V "logger.log" /passive | out-null
  </code></pre>
  
  <p>Is there any argument to add to this line in order to specify the target directory instead of the default one?</p>