Commands for installing Ports Controller 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 Magicianhax.PortsController -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Magicianhax.PortsController -e --silentwinget uninstall --id Magicianhax.PortsController -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
PortsController_0.1.0_x64-setup.exe /SCustom folder
PortsController_0.1.0_x64-setup.exe /S /D=C:\Apps\ports-controllerPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-ports-controller.ps1
$url = 'https://github.com/Magicianhax/ports-controller/releases/download/v0.1.0/PortsController_0.1.0_x64-setup.exe'
$sha256 = '576DE8E77947827A2B5E585EB916876EE3A2DCD65573245844E2904DF73677BA'
$file = Join-Path $env:TEMP 'PortsController_0.1.0_x64-setup.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