Ordres per instal·lar MathGV sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
32 bits · MSI
Instal·lació silenciosa
msiexec /i MathGV4_1_Setup.msi /qn /norestartDesar un registre
msiexec /i MathGV4_1_Setup.msi /qn /norestart /l*v "%TEMP%\mathgv-install.log"Desinstal·lar
msiexec /x {D30F78E6-2A82-48E5-94A9-D295D64501BF} /qn /norestart- Codi de producte MSI
- {D30F78E6-2A82-48E5-94A9-D295D64501BF}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{D30F78E6-2A82-48E5-94A9-D295D64501BF}
- UpgradeCode
- {367BAE9E-9560-4540-8946-824EECCB825A}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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