Commands for installing WebFortran Command Line Interface 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 Approximatrix.WebFortran -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Approximatrix.WebFortran -e --silentwinget uninstall --id Approximatrix.WebFortran -e --silentBy installer
32-bit · MSIX
Silent install
Add-AppxPackage -Path WebFortran-CLI-Windows-x86-0.8.58-20240909.msixUninstall
Get-AppxPackage -Name ApproximatrixLLC.WebFortranCLI | Remove-AppxPackage- Install folder
- %ProgramFiles%\WindowsApps\ApproximatrixLLC.WebFortranCLI_0.8.58.0_x86__0jx8e5hdpzy06
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
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