How to install Node.js in custom folder silently on Windows?

Viewed 14093

I create a script to auto install all my dev stack on Windows.

I have a problem with Node.js

What's the command line to install node-v0.10.23-x64.msi in C:\Tools silently?

Thanks.

4 Answers

To expand a little on foozar's answer, which works.

msiexec.exe /i node-v0.10.23-x64.msi INSTALLDIR="C:\Tools\NodeJS" /quiet

Note that /quiet may be better replaced with /passive:

  • Passive shows the status bar, and more importantly, prompts the user for the admin password if needed.
  • Quiet mode will just fail if the installer doesn't have privileges.
Related