Skip to content

Conversation

pmiossec
Copy link
Member

  • Check that the folder exists
  • Check that it is set to the currently running instance GE install path

Make GE config more reliable. Related to gitextensions/gitextensions.vsix#33 (comment)

Test methodology

  • Manual

Test environment(s)

  • Git Extensions 33.33.33
  • Build 5ac26f6 (Dirty)
  • Git 2.45.0.windows.1 (recommended: 2.46.0 or later)
  • Microsoft Windows NT 10.0.22631.0
  • .NET 8.0.8
  • DPI 96dpi (no scaling)
  • Portable: False
  • Microsoft.WindowsDesktop.App Versions
    Microsoft.WindowsDesktop.App 6.0.31 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 8.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


✒️ I contribute this code under The Developer Certificate of Origin.

* Check that the folder exists
* Check that it is set to the currently running instance GE install path

Make GE config more reliable. Related to gitextensions/gitextensions.vsix#33 (comment)
@@ -530,7 +530,13 @@ private bool CheckGitExtensionsInstall()
return false;
}

if (installDir.EndsWith(".exe"))
if (installDir.EndsWith(".exe") || !Directory.Exists(installDir))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be great to have some comments here explaining the checks.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, how would the user correct the incorrect setting?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@RussKie RussKie Sep 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The referenced message suggests the user will have to reinstall the app...

What happens when the user clicks on the "blue" row?

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Repair button is missing in the screenshot

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, how would the user correct the incorrect setting?

He just has to click on the line or "Repair":
image

Everything is in place to fix the issue, we just need to improve detection of the problem...

(forgot to sent the comment 2 days again...)

Copy link
Member

@gerhardol gerhardol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as I expect

@@ -530,7 +530,13 @@ private bool CheckGitExtensionsInstall()
return false;
}

if (installDir.EndsWith(".exe"))
if (installDir.EndsWith(".exe") || !Directory.Exists(installDir))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RussKie RussKie added this to the 5.0.1 milestone Sep 14, 2024
@pmiossec pmiossec merged commit c3319f5 into gitextensions:master Sep 17, 2024
4 checks passed
@pmiossec pmiossec deleted the reliability-installdir-registry-check branch September 17, 2024 07:42
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.

3 participants