MicroDicom Shell Extensionを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id MicroDicom.ShellExtension -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MicroDicom.ShellExtension -e --silentwinget uninstall --id MicroDicom.ShellExtension -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
MicroDicomShellExtensionSetup-6.1.0.exe /Sインストール先を指定
MicroDicomShellExtensionSetup-6.1.0.exe /S /D=C:\Apps\microdicom-shell-extension- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MicroDicom Shell Extension
32ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
MicroDicomShellExtensionSetup-6.1.0.exe /Sインストール先を指定
MicroDicomShellExtensionSetup-6.1.0.exe /S /D=C:\Apps\microdicom-shell-extension- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\MicroDicom Shell Extension
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-microdicom-shell-extension.ps1
$url = 'https://www.microdicom.com/downloads/Software/MicroDicomShellExtensionSetup-6.1.0.exe'
$sha256 = '6D4B8E8C8775C8AE54C82A5BF47CAF728C1775D4B494A077FF892A4C4A050584'
$file = Join-Path $env:TEMP 'MicroDicomShellExtensionSetup-6.1.0.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 '/S' -Wait install-microdicom-shell-extension.ps1
$url = 'https://www.microdicom.com/downloads/Software/MicroDicomShellExtensionSetup-6.1.0.exe'
$sha256 = '6D4B8E8C8775C8AE54C82A5BF47CAF728C1775D4B494A077FF892A4C4A050584'
$file = Join-Path $env:TEMP 'MicroDicomShellExtensionSetup-6.1.0.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 '/S' -Wait