Files
IfcOpenShell/choco/bonsai/tools/chocolateybeforemodify.ps1
T
2024-08-13 23:47:26 +10:00

12 lines
409 B
PowerShell

$processName = "blender"
$blenderIsRunning = Get-Process -Name $processName -ErrorAction SilentlyContinue
if($blenderIsRunning -eq $null) {
echo "Blender is not running ready for next action."
}
else {
Write-Warning "$processName is still running - installer cannot safely proceed to next action."
Write-Warning "Please retry after closing all running blender applications."
exit 1
}