Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 440
foozoor Avatar asked Dec 14 '13 14:12

foozoor


2 Answers

I found it.

This is the correct way to install Node.js on Windows silently in a custom directory.

msiexec.exe /i node-v0.10.23-x64.msi INSTALLDIR="C:\Tools\NodeJS" /quiet
like image 144
foozoor Avatar answered Oct 05 '22 23:10

foozoor


msiexec.exe /i node-v0.10.23-x64.msi /qn
  • /i means normal install
  • /qn means no UI

I do not known how to set the destination, you can read documentation here, and check if msi supports it:

http://www.advancedinstaller.com/user-guide/msiexec.html

like image 31
damphat Avatar answered Oct 05 '22 23:10

damphat