LabPlot2を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id KDE.LabPlot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KDE.LabPlot -e --silentwinget uninstall --id KDE.LabPlot -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
labplot-2.12.1-x86_64-setup.exe /Sインストール先を指定
labplot-2.12.1-x86_64-setup.exe /S /D=C:\Apps\labplot2- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\LabPlot2
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
labplot-2.12.1-x86_64-setup.exe /Sインストール先を指定
labplot-2.12.1-x86_64-setup.exe /S /D=C:\Apps\labplot2- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\LabPlot2
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-labplot2.ps1
$url = 'https://download.kde.org/stable/labplot/labplot-2.12.1-x86_64-setup.exe'
$sha256 = '122F03B8939571E3951982376C4A7B11B6080EB8770EC35FDC4257215A4981A8'
$file = Join-Path $env:TEMP 'labplot-2.12.1-x86_64-setup.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 '/S' -Wait install-labplot2.ps1
$url = 'https://download.kde.org/stable/labplot/labplot-2.12.1-x86_64-setup.exe'
$sha256 = '122F03B8939571E3951982376C4A7B11B6080EB8770EC35FDC4257215A4981A8'
$file = Join-Path $env:TEMP 'labplot-2.12.1-x86_64-setup.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 '/S' -Wait