Commands for installing Node.js 7 without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id OpenJS.NodeJS.7 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenJS.NodeJS.7 -e --silentwinget uninstall --id OpenJS.NodeJS.7 -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i node-v7.1.0-x64.msi /qn /norestartWrite a log
msiexec /i node-v7.1.0-x64.msi /qn /norestart /l*v "%TEMP%\node-js-7-install.log"Uninstall
msiexec /x {11A851D1-280C-4EC7-ACB8-1F4F0F4555AB} /qn /norestart- MSI product code
- {11A851D1-280C-4EC7-ACB8-1F4F0F4555AB}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{11A851D1-280C-4EC7-ACB8-1F4F0F4555AB}
64-bit · ZIP
No installation needed (portable)
32-bit · MSI · All users
Silent install
msiexec /i node-v7.1.0-x86.msi /qn /norestartWrite a log
msiexec /i node-v7.1.0-x86.msi /qn /norestart /l*v "%TEMP%\node-js-7-install.log"Uninstall
msiexec /x {B61939BE-9A49-4C85-AC48-08519B91C0C0} /qn /norestart- MSI product code
- {B61939BE-9A49-4C85-AC48-08519B91C0C0}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{B61939BE-9A49-4C85-AC48-08519B91C0C0}
32-bit · ZIP
No installation needed (portable)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-node-js-7.ps1
$url = 'https://nodejs.org/dist/v7.1.0/node-v7.1.0-x64.msi'
$sha256 = '853936FE0AA946E16BBAB10D1C7E964BBF7A1820D12ADBFD748D7CF9F8059FA3'
$file = Join-Path $env:TEMP 'node-v7.1.0-x64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-node-js-7.ps1
$url = 'https://nodejs.org/dist/v7.1.0/node-v7.1.0-x86.msi'
$sha256 = '5D95A909788239B4ED97C5F79B2D16837EA577A1A68E34E014D0A45DE7F27B1D'
$file = Join-Path $env:TEMP 'node-v7.1.0-x86.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait