Kommandon för att installera OMP Switch 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 skh2945932142.OMPSwitch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id skh2945932142.OMPSwitch -e --silentwinget uninstall --id skh2945932142.OMPSwitch -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
OMP-Switch-Setup-0.9.0.exe /SEgen mapp
OMP-Switch-Setup-0.9.0.exe /S /D=C:\Apps\omp-switchPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-omp-switch.ps1
$url = 'https://github.com/skh2945932142/omp-switch/releases/download/v0.9.0/OMP-Switch-Setup-0.9.0.exe'
$sha256 = 'B6F4D2DC061789319F28E1F291C17E051D606C27ACC30312F79A0CD61C227636'
$file = Join-Path $env:TEMP 'OMP-Switch-Setup-0.9.0.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