[Dependency Issue]: Dependency can't be found by main installer after it's installed #2939
Closed
2 tasks done
Labels
Area-Path
Issue related to path environment variable
Dependencies
Blocked by microsoft/winget-cli/issues/163 Support for Dependencies
In-PR
Issue related to a PR
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Milestone
Please confirm these before moving forward
Category of the issue
Other
Brief description of your issue
This installer has Git as a dependency. It finds Git in the Windows Path during install to register itself. But the Windows Path in most Command Prompt and PowerShell windows appears to only update at window launch. One window must be opened for the dependency install, and then another window opened for the main package install. Observed in
Similar behavior was observed in this PR - the installer completed, but validation failed as it used the same PowerShell window, and thus couldn't find Git in the Windows Path.
Steps to reproduce
For 90133 - On new system, modify the package's manifest to have Git.Git as a dependency, then install in a VM.
Actual behavior
The installer will error "Could not find Git; can not register Git LFS."
Expected behavior
Winget could help the client window to update its local Windows Path variable from the registry, so subsequent installers could install successfully, and programs run from the same window could find Git to execute successfully.
Environment
Screenshots and Logs
No response
The text was updated successfully, but these errors were encountered: