DirPrintOKを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id SoftwareOK.DirPrintOK -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SoftwareOK.DirPrintOK -e --silentwinget uninstall --id SoftwareOK.DirPrintOK -e --silentインストーラー別
64ビット · ZIP · 現在のユーザー
サイレントインストール
DirPrintOK_Installer_x64.zip -install /silent- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DirPrintOK
64ビット · ZIP · すべてのユーザー
サイレントインストール
DirPrintOK_Installer_x64.zip -install /silent- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DirPrintOK
32ビット · ZIP · 現在のユーザー
サイレントインストール
DirPrintOK_Installer.zip -install /silent- アンインストール用レジストリキー
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\DirPrintOK
32ビット · ZIP · すべてのユーザー
サイレントインストール
DirPrintOK_Installer.zip -install /silent- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\DirPrintOK
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-dirprintok.ps1
$url = 'https://www.softwareok.com/Download/DirPrintOK_Installer_x64.zip'
$sha256 = '4FD929BA3F7662D60548BDE6857ADA43441E10E655ED6CAB92E93CEAE3A54F3D'
$file = Join-Path $env:TEMP 'DirPrintOK_Installer_x64.zip'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '-install /silent' -Wait install-dirprintok.ps1
$url = 'https://www.softwareok.com/Download/DirPrintOK_Installer_x64.zip'
$sha256 = '4FD929BA3F7662D60548BDE6857ADA43441E10E655ED6CAB92E93CEAE3A54F3D'
$file = Join-Path $env:TEMP 'DirPrintOK_Installer_x64.zip'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '-install /silent' -Wait install-dirprintok.ps1
$url = 'https://www.softwareok.com/Download/DirPrintOK_Installer.zip'
$sha256 = '1EA10A3F91F2976637893B4A280205D751F50D1AE7A802BAFC2A29465FCD5C8B'
$file = Join-Path $env:TEMP 'DirPrintOK_Installer.zip'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '-install /silent' -Wait install-dirprintok.ps1
$url = 'https://www.softwareok.com/Download/DirPrintOK_Installer.zip'
$sha256 = '1EA10A3F91F2976637893B4A280205D751F50D1AE7A802BAFC2A29465FCD5C8B'
$file = Join-Path $env:TEMP 'DirPrintOK_Installer.zip'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '-install /silent' -Wait