Kommandon för att installera L'Math utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id RoniLehto.LMath -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RoniLehto.LMath -e --silentwinget uninstall --id RoniLehto.LMath -e --silentPer installationsfil
32-bitars · EXE (Inno Setup) · Alla användare · fi-FI
Tyst installation
LMath_Windows_r1.10.15-release.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
LMath_Windows_r1.10.15-release.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\lmath"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{8F340A1F-0C10-4AB7-8F66-C190078F3102}}_is1
- Installationsmapp
- %ProgramFiles%\LMath
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-lmath.ps1
$url = 'https://github.com/lehtoroni/lmath-issues/releases/download/v1.10.15/LMath_Windows_r1.10.15-release.exe'
$sha256 = 'EA46802C7D56DB3050FEC8C9C89630A376BDD7988D7DD429511C46879B0C60E1'
$file = Join-Path $env:TEMP 'LMath_Windows_r1.10.15-release.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 /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait