Commands for installing HSEmulate 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 MorganZWest.HSEmulate -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MorganZWest.HSEmulate -e --silentwinget uninstall --id MorganZWest.HSEmulate -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user · en-US
Silent install
hsemulate-0.4.1-windows-x64-installer.exe /VERYSILENT /NORESTARTCustom folder
hsemulate-0.4.1-windows-x64-installer.exe /VERYSILENT /NORESTART /DIR="C:\Apps\hsemulate"PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-hsemulate.ps1
$url = 'https://github.com/morganzwest/hsemulator/releases/download/v0.4.1/hsemulate-0.4.1-windows-x64-installer.exe'
$sha256 = '9577D2DFD4E4285BA2163C1B02D4F654AEC115AF0F31CBE6D2D5303AFAC46F83'
$file = Join-Path $env:TEMP 'hsemulate-0.4.1-windows-x64-installer.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 '/VERYSILENT /NORESTART' -Wait