Commands for installing MFA-Forge 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 wnunezc.MFA-Forge -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id wnunezc.MFA-Forge -e --silentwinget uninstall --id wnunezc.MFA-Forge -e --silentBy installer
64-bit · MSI · Current user · en-US
Silent install
msiexec /i MFA-Forge-1.0.2-x64.msi /qn /norestartWrite a log
msiexec /i MFA-Forge-1.0.2-x64.msi /qn /norestart /l*v "%TEMP%\mfa-forge-install.log"Uninstall
msiexec /x {8106F506-9C9F-4555-9FE3-65FDFF7FD08D} /qn /norestart- MSI product code
- {8106F506-9C9F-4555-9FE3-65FDFF7FD08D}
- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8106F506-9C9F-4555-9FE3-65FDFF7FD08D}
- UpgradeCode
- {622B6FF8-32E4-4580-96A7-45FC61EC7C64}
- Install folder
- %LocalAppData%\\MFA-Forge
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-mfa-forge.ps1
$url = 'https://github.com/wnunezc/MFA-Forge/releases/download/v1.0.2/MFA-Forge-1.0.2-x64.msi'
$sha256 = 'EF5E0F7549CA0F4507691B8E2ED47FE47E153DA3887AC7AB55D59A0926140A27'
$file = Join-Path $env:TEMP 'MFA-Forge-1.0.2-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