Commands for installing McServ 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 McServ.McServ -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id McServ.McServ -e --silentwinget uninstall --id McServ.McServ -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i mcserv-0.2.1.msi /qn /norestartWrite a log
msiexec /i mcserv-0.2.1.msi /qn /norestart /l*v "%TEMP%\mcserv-install.log"Uninstall
msiexec /x {F533613B-2F56-4E49-A8CC-EFD1BF1DD985} /qn /norestart- MSI product code
- {F533613B-2F56-4E49-A8CC-EFD1BF1DD985}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F533613B-2F56-4E49-A8CC-EFD1BF1DD985}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-mcserv.ps1
$url = 'https://github.com/DRSchlaubi/mcserv/releases/download/v0.2.1/mcserv-0.2.1.msi'
$sha256 = 'D77EFFC331240C68237F5448950351A33898DE2DB823AABC592B08E5E0F836F8'
$file = Join-Path $env:TEMP 'mcserv-0.2.1.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait