Commands for installing Node.js 6 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.6 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenJS.NodeJS.6 -e --silentwinget uninstall --id OpenJS.NodeJS.6 -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i node-v6.17.0-x64.msi /qn /norestartWrite a log
msiexec /i node-v6.17.0-x64.msi /qn /norestart /l*v "%TEMP%\node-js-6-install.log"Uninstall
msiexec /x {99D1C612-99E8-4857-86FE-13010D3FF067} /qn /norestart- MSI product code
- {99D1C612-99E8-4857-86FE-13010D3FF067}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{99D1C612-99E8-4857-86FE-13010D3FF067}
- Install folder
- %ProgramFiles%\nodejs
64-bit · ZIP
No installation needed (portable)
32-bit · MSI · All users
Silent install
msiexec /i node-v6.17.0-x86.msi /qn /norestartWrite a log
msiexec /i node-v6.17.0-x86.msi /qn /norestart /l*v "%TEMP%\node-js-6-install.log"Uninstall
msiexec /x {512D50AB-E625-4D27-9AFF-2F2FFBAC2AC3} /qn /norestart- MSI product code
- {512D50AB-E625-4D27-9AFF-2F2FFBAC2AC3}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{512D50AB-E625-4D27-9AFF-2F2FFBAC2AC3}
- Install folder
- %ProgramFiles(x86)%\nodejs
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-6.ps1
$url = 'https://nodejs.org/dist/v6.17.0/node-v6.17.0-x64.msi'
$sha256 = '3A9171AB366BA45ACCC2EC898B50390D0020797B1CF16A16E9F3E105FCFDC95A'
$file = Join-Path $env:TEMP 'node-v6.17.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-6.ps1
$url = 'https://nodejs.org/dist/v6.17.0/node-v6.17.0-x86.msi'
$sha256 = 'E3478FCF22E3395A41F34CF7E64527E6CC532C109E5A8D67AB1DE213E53F780C'
$file = Join-Path $env:TEMP 'node-v6.17.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