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