Skip launching UI if running unattended by winstliu · Pull Request #1740 · microsoft/VFSForGit (original) (raw)
In testing, we see the installer hanging until the UI is killed.
[Environment]::SetEnvironmentVariable("GVFS_UNATTENDED", "1", "Machine")
Start-Process .\SetupGVFS.1.0.21085.9.exe -ArgumentList "/VERYSILENT", "/NORESTART", "/NOCANCEL", "/SP-", "/CLOSEAPPLICATIONS", "/RESTARTAPPLICATIONS", "/LOG=gvfs.log", "/SUPPRESSMSGBOXES" -Wait
# Hangs until GVFS.Service.UI is killed