Commands for installing MasterAgent 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 JinweiZhiguang.MasterAgent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id JinweiZhiguang.MasterAgent -e --silentwinget uninstall --id JinweiZhiguang.MasterAgent -e --silentBy installer
64-bit · EXE (NSIS) · All users
Silent install
MasterAgentInstall-0.6.5.exe /SCustom folder
MasterAgentInstall-0.6.5.exe /S /D=C:\Apps\masteragentPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-masteragent.ps1
$url = 'https://static.mastergo.com/plugins/master-agent/windows/MasterAgentInstall-0.6.5.exe'
$sha256 = '7F27C4A5E452A00CD72BF8F7460481D9EEDE80DF2BBEB147C25FC83F4D46E0C1'
$file = Join-Path $env:TEMP 'MasterAgentInstall-0.6.5.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