Kommandon för att installera Node.js 8 utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id OpenJS.NodeJS.8 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenJS.NodeJS.8 -e --silentwinget uninstall --id OpenJS.NodeJS.8 -e --silentPer installationsfil
64-bitars · MSI · Alla användare
Tyst installation
msiexec /i node-v8.11.3-x64.msi /qn /norestartSkriv en logg
msiexec /i node-v8.11.3-x64.msi /qn /norestart /l*v "%TEMP%\node-js-8-install.log"Avinstallation
msiexec /x {D453BC74-B405-4241-9095-808419A77FB3} /qn /norestart- MSI-produktkod
- {D453BC74-B405-4241-9095-808419A77FB3}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D453BC74-B405-4241-9095-808419A77FB3}
- Installationsmapp
- %ProgramFiles%\nodejs
64-bitars · ZIP
Kräver ingen installation (portabel)
32-bitars · MSI · Alla användare
Tyst installation
msiexec /i node-v8.11.3-x86.msi /qn /norestartSkriv en logg
msiexec /i node-v8.11.3-x86.msi /qn /norestart /l*v "%TEMP%\node-js-8-install.log"Avinstallation
msiexec /x {B4A49706-61E4-4BAF-BFA8-F97321FF3708} /qn /norestart- MSI-produktkod
- {B4A49706-61E4-4BAF-BFA8-F97321FF3708}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{B4A49706-61E4-4BAF-BFA8-F97321FF3708}
- Installationsmapp
- %ProgramFiles(x86)%\nodejs
32-bitars · ZIP
Kräver ingen installation (portabel)
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-node-js-8.ps1
$url = 'https://nodejs.org/dist/v8.11.3/node-v8.11.3-x64.msi'
$sha256 = 'D7E3057E921803159266FF1340283420A3E5053BAD0C3FF951D8946A8F9AA66B'
$file = Join-Path $env:TEMP 'node-v8.11.3-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-8.ps1
$url = 'https://nodejs.org/dist/v8.11.3/node-v8.11.3-x86.msi'
$sha256 = '66D1750F03F9319312843E8E80764625C8157600C1ADD99CBA92C783CF9FF02A'
$file = Join-Path $env:TEMP 'node-v8.11.3-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