İçeriğe geç
Rhino Türkiye

Wiki

PowerShell Örnek: Start-Process msiexec -ArgumentList '/i rhino.msi /quiet'

PowerShell script ile Rhino kurulumu - Modern script örneği.

PowerShell, Batch'ten daha güçlü ve modern bir scripting dilidir. Hata kontrolü, loglama ve advanced işlemler için idealdir.

Basit PowerShell Script

  • $msiPath = '\\server\rhino\rhino.msi'
  • $args = '/i $msiPath /quiet /norestart'
  • Start-Process msiexec -ArgumentList $args -Wait
  • Write-Host 'Kurulum tamamlandı!'

Advanced Features

  • -Wait: Kurulum bitene kadar bekle
  • -NoNewWindow: Ayrı pencere açma
  • -PassThru: Process object döndür
  • Exit code kontrolü: $LASTEXITCODE

Error Handling

  • try { Start-Process... } catch { Write-Error $_ }
  • if ($LASTEXITCODE -ne 0) { ... }
  • Log dosyasına hata yaz
  • Email notification gönder