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