diff --git a/setup.ps1 b/setup.ps1 index ea3d0e1..8679da3 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -76,12 +76,15 @@ # ----------------------------------------------------------------------------- # Step 4: IC Imaging Control SDK(手動インストール案内) # ----------------------------------------------------------------------------- -Write-Host "[Step 4] IC Imaging Control SDK のインストール案内..." -ForegroundColor Yellow -Write-Host " IC Imaging Control SDK は手動インストールが必要です." -ForegroundColor White -Write-Host " ブラウザで The Imaging Source のダウンロードページを開きます." -ForegroundColor White -Write-Host "" -$response = Read-Host " ダウンロードページを開きますか? (y/N)" -if ($response -eq "y" -or $response -eq "Y") { +Write-Host "[Step 4] IC Imaging Control SDK のインストール確認..." -ForegroundColor Yellow + +$icInstalled = Get-ItemProperty "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*" ` + -ErrorAction SilentlyContinue | Where-Object { $_.DisplayName -like "*Imaging*" -or $_.DisplayName -like "*IC Imaging*" } +if ($icInstalled) { + Write-Host " IC Imaging Control SDK はインストール済みです.スキップします." -ForegroundColor Green +} else { + Write-Host " IC Imaging Control SDK が見つかりません." -ForegroundColor White + Write-Host " ブラウザで The Imaging Source のダウンロードページを開きます." -ForegroundColor White Start-Process "https://www.theimagingsource.com/en-us/support/download/" }