Kommandon för att installera FileCommand 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 BigHatGroup.FileCommand -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BigHatGroup.FileCommand -e --silentwinget uninstall --id BigHatGroup.FileCommand -e --silentPer installationsfil
64-bitars · EXE (WiX Burn) · Aktuell användare
Tyst installation
FileCommandSetup.exe /quiet64-bitars · EXE (WiX Burn) · Alla användare
Tyst installation
FileCommandSetup.exe /quiet InstallScope=perMachinePowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-filecommand.ps1
$url = 'https://github.com/kkaminsk/FileCommand/releases/download/v0.1.5/FileCommandSetup.exe'
$sha256 = '0476AE3B535BD868F7B97C2D845C0339F6E09C5964C60CED3EE0E1C1744604B8'
$file = Join-Path $env:TEMP 'FileCommandSetup.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 '/quiet' -Wait install-filecommand.ps1
$url = 'https://github.com/kkaminsk/FileCommand/releases/download/v0.1.5/FileCommandSetup.exe'
$sha256 = '0476AE3B535BD868F7B97C2D845C0339F6E09C5964C60CED3EE0E1C1744604B8'
$file = Join-Path $env:TEMP 'FileCommandSetup.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 '/quiet InstallScope=perMachine' -Wait