Open PhoenixxClaw opened 5 days ago
This is weird, I will investigate.
Just out of curiosity if you add the Powershell 7 path to your user path environment variable instead of your system one (or vice versa depending on your current setup) does UniGetUI find it then? "Where" just searches the current directory and falls back on %PATH% and while the user path is supposed to be appended to the system path I have seen situations where processes fail to refresh the environment variables.
I suppose as an enhancement the UniGetUI could also check the App Paths regkey as a last ditch effort to get it if it's missing from %PATH% for any reason, i.e., the where.exe check fails.
https://learn.microsoft.com/en-us/windows/win32/shell/app-registration
Microsoft's purpose was for developers to use this instead of %PATH% to begin with since modify %PATH% is risky. Doubt all the managers conform to that but I do see at least the Powershell's are in mine.
I guess could also just toss in a simple File.Exists check with the common default install paths on these since it would just be a fallback.
Please confirm these before moving forward
UniGetUI Version
3.1.2
Windows version, edition, and architecture
Windows 11 Education - Version 23H2 (Build 22631.4391) - x64
Describe your issue
I am getting the Error Message
PowerShell 7.x was not found! You may need to install PowerShell 7.x in order to use it with UniGetUl.
, when opening up the Settings for the PowerShell 7.x package manager.Steps to reproduce the issue
Open UniGetUI > Settings > Scroll down to
Package Managers
> Scroll down in that section toPowerShell 7.x
> Open the drop down to notice the error at the bottom.UniGetUI Log
Package Managers Logs
Relevant information
The Manager for Version 5.x works fine and has the correct path and command listed in it's settings. The Manager for Version 7.x only lists
-NoProfile -Command
in it's path.. PATH Variables are set correctly andwhere.exe pwsh.exe
, ran from a default cmd, shows the correct path as result. (screenshot below) UniGetUI itself even shows Powershell 7.4.5 as being installed in it's package list..compared to #2774 a reinstall did not help. Even uninstalling with revo uninstaller and manually clearing any leftover registry keys that have the Powershell 7 path in them, plus having reboots inbetween each action did not help resolving this.
Screenshots and videos
Powershell 7.4.5 installed and running
Powershell 7.4.5 shown as installed in UniGetUI
where.exe pwsh.exe
Result in a default cmd