Kommandon för att installera AppSwitcher 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 ipatalas.AppSwitcher -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ipatalas.AppSwitcher -e --silentwinget uninstall --id ipatalas.AppSwitcher -e --silentPer installationsfil
Alla processorer · EXE (Inno Setup) · Alla användare
Tyst installation
AppSwitcher.SelfContained.Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
AppSwitcher.SelfContained.Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\appswitcher"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7954d19d-b9c7-42b4-882b-0c03e632e75f_is1
- Installationsmapp
- %ProgramFiles%\AppSwitcher
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-appswitcher.ps1
$url = 'https://github.com/ipatalas/app-switcher/releases/download/v1.10.4/AppSwitcher.SelfContained.Installer.exe'
$sha256 = 'D60C16561EE1788CB977D0A8BAD19950DFBF7DBBC16EB2991D3073FA4DB0C4CE'
$file = Join-Path $env:TEMP 'AppSwitcher.SelfContained.Installer.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait