Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip launching UI if running unattended #1740

Merged
merged 3 commits into from
Jul 4, 2021

Conversation

winstliu
Copy link
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
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
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