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