WinProgramSuiteを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id NalleBerg.WinProgramSuite -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NalleBerg.WinProgramSuite -e --silentwinget uninstall --id NalleBerg.WinProgramSuite -e --silentインストーラー別
64ビット · MSI
サイレントインストール
msiexec /i WinProgramSuiteSetup2006.03.26.07.msi /qn /norestartログを出力
msiexec /i WinProgramSuiteSetup2006.03.26.07.msi /qn /norestart /l*v "%TEMP%\winprogramsuite-install.log"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-winprogramsuite.ps1
$url = 'https://prog.nalle.no/user/data/apps/WinProgramSuiteSetup2006.03.26.07.msi'
$sha256 = 'FA45431D4ECBCDF6BEC342025C0485DC902047D0B9987FCB6B5CDD08EBBE8A71'
$file = Join-Path $env:TEMP 'WinProgramSuiteSetup2006.03.26.07.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait