How to install Node.js in a user folder quietly on Windows?

I am creating a script to automatically install my entire dev stack on Windows.

I have a problem with Node.js

What is on the command line to install node -v0.10.23-x64.msi in C: \ Tools ?

Thanks.

+7
windows silent-installer
source share
3 answers

I found him.

This is the correct way to install Node.js on Windows in an unencrypted directory.

msiexec.exe /i node-v0.10.23-x64.msi INSTALLDIR="C:\Tools\NodeJS" /quiet 
+7
source share
 msiexec.exe /i node-v0.10.23-x64.msi /qn 
  • /i means normal installation
  • /qn means no user interface

I don't know how to set the destination, you can read the documentation here and check if this supports the msi protocol:

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

+3
source share

This will make an accurate installation, as it is done manually from the user interface.

 msiexec /i node-v6.11.2-x64.msi TARGETDIR="C:\Program Files\nodejs\" ADDLOCAL="NodePerfCtrSupport,NodeEtwSupport,DocumentationShortcuts,EnvironmentPathNode,EnvironmentPathNpmModules,npm,NodeRuntime,EnvironmentPath" /qn 
0
source share

All Articles