Skip to content

Skip launching UI if running unattended#1740

Merged
derrickstolee merged 3 commits into
microsoft:masterfrom
winstliu:patch-1
Jul 4, 2021
Merged

Skip launching UI if running unattended#1740
derrickstolee merged 3 commits into
microsoft:masterfrom
winstliu:patch-1

Conversation

@winstliu
Copy link
Copy Markdown
Member

@winstliu winstliu commented Jun 9, 2021

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

Note, this is my first ever time editing an Inno Setup script or working with Pascal, so I may have gotten some things wrong :).

Fixes #1739.

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
```
@derrickstolee
Copy link
Copy Markdown
Contributor

Hi, @50Wliu. Thanks for the contribution. We are having some build troubles due to an environment change and @mjcheetham is working on an update of our build system. When that is complete, we will circle back to this and get you some green builds and a careful review and test of your change.

@winstliu
Copy link
Copy Markdown
Member Author

winstliu commented Jul 1, 2021

@derrickstolee I downloaded the installer from the CI run and confirmed that:

  • Start-Process -Wait with GVFS_UNATTENDED=1 now works!
  • GVFS.Service.UI.exe is still launched when GVFS_UNATTENDED is unset

(Note: I'm testing this in Windows Sandbox, and the installer eventually fails when trying to set up the Windows Projected File System. But I assume that's unrelated to the changes in this PR.)

@derrickstolee derrickstolee merged commit 22d187f into microsoft:master Jul 4, 2021
@winstliu winstliu deleted the patch-1 branch July 6, 2021 19:02
derrickstolee added a commit that referenced this pull request Jul 15, 2021
Major Updates
----------------

* Comes with `microsoft/git` v2.32.0.vfs.0.4.
* This release will be available via `winget`.
* The `gvfs upgrade` verb is deprecated. Any future updates will be taken via `winget`.
* This version of Git has an upgrade mechanism that can advance independently of VFS for Git. Run `git update-microsoft-git` to update your Git version.
* The build system has been updated to use a more recent version of .NET.
* All macOS and POSIX code has been removed to simplify the build system.
* A FastFetch bug around deleting files has been fixed.
* A prefetch bug around downloading a small number of files has been fixed.

Special thanks to contributors @ldennington, @tyrielv, @50Wliu, and @SteveBenz.

Pull Requests
---------------

* #1738: Bumping version of update-winget action
* #1747: UpgradeVerb: write deprecation notice
* #1745: do not exit early if no blobs found for a period when prefetching
* #1740: Skip launching UI if running unattended
* #1737: Update Git to v2.32.0
* #1746: Delete custom upgrader
* #1741: Fix winget tag specification
* #1744: Overhaul build and project systems and drop Mac/POSIX code
* #1736: Update Git to v2.31.1.vfs.0.3
* #1735: Bumping winget action version
* #1734: Adding winget workflow
* #1733: Update Git to include 2.31.1
* #1730: Fix an issue with FastFetch when deleting files
* #1732: Use one NuGet feed
* #1726: Config: commitGraph.generationVersion=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unattended install hangs on GVFS.Service.UI.exe

2 participants