Commands for installing PolyMC 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 PolyMC.PolyMC -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PolyMC.PolyMC -e --silentwinget uninstall --id PolyMC.PolyMC -e --silentBy installer
64-bit · EXE (NSIS) · Current user · en-US
Silent install
PolyMC-Windows-Setup-amd64-8.1.exe /SCustom folder
PolyMC-Windows-Setup-amd64-8.1.exe /S /D=C:\Apps\polymc- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PolyMC
- Install folder
- %LocalAppData%\Programs\PolyMC
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-polymc.ps1
$url = 'https://github.com/PolyMC/PolyMC/releases/download/8.1/PolyMC-Windows-Setup-amd64-8.1.exe'
$sha256 = '51C2E3D69A446111D356F2E2953D3BAA8B9563D3F4E7F630C1524ECF1735ED63'
$file = Join-Path $env:TEMP 'PolyMC-Windows-Setup-amd64-8.1.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