İçeriğe geç
Rhino Türkiye

Wiki

Multiple MSI Deployment - Loop ile

Birden fazla MSI kurulumu - Script loop ile otomasyon.

Multiple MSI deployment, tek script ile birden fazla uygulamayı sırayla kurmayı sağlar. Rhino + plugin'ler için kullanışlıdır.

PowerShell Loop Örneği

  • $msiList = @('rhino.msi', 'grasshopper_plugin.msi', 'vray.msi')
  • foreach ($msi in $msiList) {
  • $path = "\\server\apps\$msi"
  • Start-Process msiexec -ArgumentList "/i $path /quiet /norestart" -Wait
  • Write-Host "$msi kuruldu"
  • }

Error Handling Loop

  • foreach ($msi in $msiList) {
  • try {
  • # Install
  • } catch {
  • Write-Error "$msi kurulumu başarısız"
  • # Continue or stop?
  • }
  • }

Dependency Order

  • Rhino önce kurulmalı (dependency)
  • Plugin'ler sonra
  • Order matters: Prerequisites first
  • Restart: Tüm kurulumlar sonunda