Kommandon för att installera WebFortran Command Line Interface 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 Approximatrix.WebFortran -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Approximatrix.WebFortran -e --silentwinget uninstall --id Approximatrix.WebFortran -e --silentPer installationsfil
32-bitars · MSIX
Tyst installation
Add-AppxPackage -Path WebFortran-CLI-Windows-x86-0.8.58-20240909.msixAvinstallation
Get-AppxPackage -Name ApproximatrixLLC.WebFortranCLI | Remove-AppxPackage- Installationsmapp
- %ProgramFiles%\WindowsApps\ApproximatrixLLC.WebFortranCLI_0.8.58.0_x86__0jx8e5hdpzy06
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-webfortran-command-line-interface.ps1
$url = 'https://download.simplyfortran.com/webfortran/WebFortran-CLI-Windows-x86-0.8.58-20240909.msix'
$sha256 = 'F1121B51BB10C9EA17DB341C811330228349A7CF9566FA96794BC59B8E1CD1F7'
$file = Join-Path $env:TEMP 'WebFortran-CLI-Windows-x86-0.8.58-20240909.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file