CSAutoを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id MurkyYT.CSAuto -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MurkyYT.CSAuto -e --silentwinget uninstall --id MurkyYT.CSAuto -e --silentインストーラー別
32ビット · EXE(Inno Setup) · 現在のユーザー · en-US
サイレントインストール
CSAuto_Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
CSAuto_Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\csauto"- アンインストール用レジストリキー
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F5E4D811-7A92-47F9-BEEC-B6751463D69B}_is1
- インストール先フォルダー
- %AppData%\CSAuto
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-csauto.ps1
$url = 'https://github.com/MurkyYT/CSAuto/releases/download/2.2.8/CSAuto_Installer.exe'
$sha256 = '94581D2810A4EC8EF098E30BAE375F3F94C92902B9904C32C19F6B0400B19E2A'
$file = Join-Path $env:TEMP 'CSAuto_Installer.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait