Kommandon för att installera WebDrive 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 SouthRiverTechnologies.WebDrive -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SouthRiverTechnologies.WebDrive -e --silentwinget uninstall --id SouthRiverTechnologies.WebDrive -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Alla användare
Tyst installation
"WebDrive Setup 1.1.18.exe" /SEgen mapp
"WebDrive Setup 1.1.18.exe" /S /D=C:\Apps\webdrive- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\2a87808c-65b5-5432-95ec-14ba90f2133d
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-webdrive.ps1
$url = 'https://srtcdnstorage.blob.core.windows.net/software/nextgen/webdrive/WebDrive%20Setup%201.1.18.exe'
$sha256 = '2A9572C8A58AEB6E4A21D5FF036E274F23E4C2C0FE710F4996E69E96BE047AD5'
$file = Join-Path $env:TEMP 'WebDrive Setup 1.1.18.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait