12 lines
375 B
PowerShell
12 lines
375 B
PowerShell
## Make sure SketchUp isn't being used
|
|
If ( $(Get-Process | Where { $_.Name -like "*SketchUp*" }) )
|
|
{
|
|
Write-Output "Cannot install SketchUp because it is currently being used."
|
|
}
|
|
|
|
## Run the script to upgrade Sketchup
|
|
Else
|
|
{
|
|
Try { Start-Process -FilePath "\\va01fsx01\applications\Programs\sketchup-pro-2019\install.bat" -WindowStyle Hidden -Wait }
|
|
Catch { $_ }
|
|
} |