Commands for installing OMP Switch without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With 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 --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
OMP-Switch-Setup-0.9.0.exe /SCustom folder
OMP-Switch-Setup-0.9.0.exe /S /D=C:\Apps\omp-switchPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
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