-
Notifications
You must be signed in to change notification settings - Fork 95
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
microsoft.git not respecting --disable-interactivity flag in winget #595
Comments
Hi @shalinikhare27, thanks for the report! This definitely seems like a case where the installer is not behaving the way that you expect. The One thing that would help us investigate this concern is how It is important to note is that this prompt is communicating a failed installation procedure, so any integration to prevent the pop-up will still need to write an error to |
@derrickstolee - yes, ideally we want it to respect the |
I think I found the way to do it, but it will require some manual testing. |
These arguments are intended to tell the installer to be as quiet as possible. * /SUPPRESSMSGBOXES indicates that the installer should not create pop-up windows when an issue arises. Instead, the installer will fail. This will resolve microsoft/git#595. * "/enable-component windowsterminal" was added to the Git/Git manifest in microsoft#110011 to resolve microsoft#109915, which was creating some installation problems on Windows 10. Signed-off-by: Derrick Stolee <[email protected]>
@derrickstolee How can I test this on my end? |
@shalinikhare27: Sorry for the delay in updating this issue, but the There are instructions in the PR description of how to test this locally, without needing any changes to the |
* microsoft/git: add custom installer arguments These arguments are intended to tell the installer to be as quiet as possible. * /SUPPRESSMSGBOXES indicates that the installer should not create pop-up windows when an issue arises. Instead, the installer will fail. This will resolve microsoft/git#595. * "/enable-component windowsterminal" was added to the Git/Git manifest in #110011 to resolve #109915, which was creating some installation problems on Windows 10. Signed-off-by: Derrick Stolee <[email protected]> * microsoft/git: match some format for Git/Git's manifest The Git/Git manifest has some additional options that were created directly by the Winget team, as opposed to microsoft/git which was created by the Git team. Since the Winget team is likely better at this sort of thing, adopt some of the choices made over there. These are mostly innocuous, though there is one interesting difference that still remains: the Git/Git manifest has two installers with different 'Scope' values ('machine' and 'user') while microsoft/git is only available via 'machine' scope. This is purposefully left alone since there is no difference in how the installers are specified and we are not sure we want to support user-only installs of microsoft/git. Signed-off-by: Derrick Stolee <[email protected]> --------- Signed-off-by: Derrick Stolee <[email protected]>
or closed issue matching
what I'm seeing, including in the
git-for-windows/git
tracker.Setup
microsoft/git
are you using? Is it 32-bit or 64-bit?Are you using Scalar or VFS for Git?
Scalar
If VFS for Git, then what version?
to the issue you're seeing?
These operations were performed in an administrative CMD prompt.
Details
CMD
Minimal, Complete, and Verifiable example
this will help us understand the issue.
With the “—disable-interactivity” flag I expect no pop-ups.
However, since I had multiple git background processes running, it still gave me a pop-up even though I set the “—disable-interactivity” flag. The prompt was
The following process(es) use Git for Windows. Please terminate those processes and retry.
I know this is expected; however, there shouldn't be a prompt if “—disable-interactivity” flag is set.If you run
winget --help
, it mentions--disable-interactivity Disable interactive prompts
.If the problem was occurring with a specific repository, can you specify
the repository?
The text was updated successfully, but these errors were encountered: