Commands for installing ScreenMirror 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 Inukollu.ScreenMirror -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Inukollu.ScreenMirror -e --silentwinget uninstall --id Inukollu.ScreenMirror -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i ScreenMirror-0.2.1-win-x64.msi /qn /norestartWrite a log
msiexec /i ScreenMirror-0.2.1-win-x64.msi /qn /norestart /l*v "%TEMP%\screenmirror-install.log"Uninstall
msiexec /x {2ACA78C7-F780-5181-A5BE-47D22F67C8F2} /qn /norestart- MSI product code
- {2ACA78C7-F780-5181-A5BE-47D22F67C8F2}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2ACA78C7-F780-5181-A5BE-47D22F67C8F2}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-screenmirror.ps1
$url = 'https://github.com/Inukollu/screenmirror-site/releases/download/v0.2.1/ScreenMirror-0.2.1-win-x64.msi'
$sha256 = '85355E89E1A0D33475D12B123257D7D660FD98F67EB63B007DB4E00E6896FEF5'
$file = Join-Path $env:TEMP 'ScreenMirror-0.2.1-win-x64.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