AppSwitcherを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ipatalas.AppSwitcher -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ipatalas.AppSwitcher -e --silentwinget uninstall --id ipatalas.AppSwitcher -e --silentインストーラー別
CPU共通 · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
AppSwitcher.SelfContained.Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
AppSwitcher.SelfContained.Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\appswitcher"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7954d19d-b9c7-42b4-882b-0c03e632e75f_is1
- インストール先フォルダー
- %ProgramFiles%\AppSwitcher
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-appswitcher.ps1
$url = 'https://github.com/ipatalas/app-switcher/releases/download/v1.10.4/AppSwitcher.SelfContained.Installer.exe'
$sha256 = 'D60C16561EE1788CB977D0A8BAD19950DFBF7DBBC16EB2991D3073FA4DB0C4CE'
$file = Join-Path $env:TEMP 'AppSwitcher.SelfContained.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