Snap does not exit properly when updating in windows from PowerShell

I’m a sysadmin at the Department of Geography at the University of Zurich and we use SNAP on our course room NUCs and on RDS for some courses.

We deploy SNAP as a PSADT package on the course infrastructure (NUCs) and on the RDS. So we have to package the application and update SNAP from PowerShell:

When updating from PowerShell, the installer does not exit, so the installation and PSADT installer hang forever:

I found a thread for a Linux fix and converted it to Powershell:

& "C:\Program Files\snap\bin\snap64.exe" --nosplash --nogui --modules --update-all 2>&1 | ForEach-Object {
  $line = $_
  if ($line -eq "updates=0") {
     Start-Sleep -Seconds 2
     Get-Process | Where-Object { $_.Path -like "*snap\jre\jre\bin\java*" } | Stop-Process -Force

This works most of the time, but we would like to have an update that works properly.

Thank you,


Thank you for reporting this issue.
JIRA ticket SNAP-3585 created.