WebFortran Command Line Interfaceを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
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 --silentインストーラー別
32ビット · MSIX
サイレントインストール
Add-AppxPackage -Path WebFortran-CLI-Windows-x86-0.8.58-20240909.msixアンインストール
Get-AppxPackage -Name ApproximatrixLLC.WebFortranCLI | Remove-AppxPackage- インストール先フォルダー
- %ProgramFiles%\WindowsApps\ApproximatrixLLC.WebFortranCLI_0.8.58.0_x86__0jx8e5hdpzy06
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
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