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