Node.js Silent Install (How-To Guide)

Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a browser. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Node.js from the command line using the MSI installer.

How to Install Node.js Silently

Node.js 32-bit Silent Install (MSI)

  1. Navigate to: https://nodejs.org/en/download/
  2. Select the 32-bit Windows Installer (.msi)
  3. Download the node-vxx.y.z-x86.msi to a folder created at (C:\Downloads)
  4. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  5. Navigate to the C:\Downloads folder
  6. Enter the following command: MsiExec.exe /i node-vxx.y.z-x86.msi /qn
  7. Press Enter

After a few moments you should see the Node.js shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Node.js (32-bit)
Vendor:Node.js Foundation
Architecture:x86
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i node-vxx.y.z-x86.msi /qn
Silent Uninstall Switch:MsiExec.exe /x node-vxx.y.z-x86.msi /qn
Repair Command:MsiExec.exe /fa node-vxx.y.z-x86.msi /qn
Download Link:https://nodejs.org/en/download/
PowerShell Script:https://silentinstallhq.com/node-js-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-node-js-powershell/

Node.js 64-bit Silent Install (MSI)

  1. Navigate to: https://nodejs.org/en/download/
  2. Select the 64-bit Windows Installer (.msi)
  3. Download the node-vxx.y.z-x64.msi to a folder created at (C:\Downloads)
  4. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  5. Navigate to the C:\Downloads folder
  6. Enter the following command: MsiExec.exe /i node-vxx.y.z-x64.msi /qn
  7. Press Enter

After a few moments you should see the Node.js shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Node.js (64-bit)
Vendor:Node.js Foundation
Architecture:x64
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i node-vxx.y.z-x64.msi /qn
Silent Uninstall Switch:MsiExec.exe /x node-vxx.y.z-x64.msi /qn
Repair Command:MsiExec.exe /fa node-vxx.y.z-x64.msi /qn
Download Link:https://nodejs.org/en/download/
PowerShell Script:https://silentinstallhq.com/node-js-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-node-js-powershell/

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download link provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create a Node.js Installation Log File

The MSI installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.

Node.js 32-bit Silent Install with Logging

MsiExec.exe /i node-vxx.y.z-x86.msi /qn /L*v "%WINDIR%\Temp\Node.js-Install.log"

Node.js 64-bit Silent Install with Logging

MsiExec.exe /i node-vxx.y.z-x64.msi /qn /L*v "%WINDIR%\Temp\Node.js-Install.log"

Change the Node.js Default Installation Directory

You can also change the default installation directory by using the following command line parameters. In this example, I’m installing Node.js to “C:\Node.js”

Node.js 32-bit (MSI)

MsiExec.exe /i node-vxx.y.z-x86.msi INSTALLDIR=C:\Node.js /qn

Node.js 64-bit (MSI)

MsiExec.exe /i node-vxx.y.z-x64.msi INSTALLDIR=C:\Node.js /qn

How to Uninstall Node.js Silently

Check out the following posts for a scripted solution:

Node.js Install and Uninstall (PowerShell)
Node.js Silent Uninstall (PowerShell)
  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one of the following commands:

Node.js 32-bit Silent Uninstall (MSI)

MsiExec.exe /x node-vxx.y.z-x86.msi /qn

Node.js 64-bit Silent Uninstall (MSI)

MsiExec.exe /x node-vxx.y.z-x64.msi /qn

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.