Commands for installing MathGV 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 GregVanMullem.MathGV -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GregVanMullem.MathGV -e --silentwinget uninstall --id GregVanMullem.MathGV -e --silentBy installer
32-bit · MSI
Silent install
msiexec /i MathGV4_1_Setup.msi /qn /norestartWrite a log
msiexec /i MathGV4_1_Setup.msi /qn /norestart /l*v "%TEMP%\mathgv-install.log"Uninstall
msiexec /x {D30F78E6-2A82-48E5-94A9-D295D64501BF} /qn /norestart- MSI product code
- {D30F78E6-2A82-48E5-94A9-D295D64501BF}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{D30F78E6-2A82-48E5-94A9-D295D64501BF}
- UpgradeCode
- {367BAE9E-9560-4540-8946-824EECCB825A}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-mathgv.ps1
$url = 'http://www.mathgv.com/dfiles/MathGV4_1_Setup.msi'
$sha256 = 'BAF997174E3BB97DEFDAEECA540EA635B171EF94B7A10E1E8730CDD778DBC4E3'
$file = Join-Path $env:TEMP 'MathGV4_1_Setup.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