marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
11.73k stars 393 forks source link

[ENHANCEMENT] Allow Changing of the Powershell Executable #1650

Closed JAK1047 closed 1 month ago

JAK1047 commented 8 months ago

Please confirm these before moving forward

Describe the improvement

Would it be possible to have the option to change the executable of Powershell being used by WingetUI Powershell Package Manager to the current releases? 7.4, 7.3, etc. With pwsh.exe if you install modules under the AllUsers scope they install to C:\Program Files\PowerShell\Modules instead and aren't picked up by Windows Powershell. The only real update would be that the Test-GalleryModuleUpdate function would need to be changed as the MaximumRedirect parameter was modified in Powershell Core to return a terminating error (assumedly you could just swap to using Find-Module to return the latest version available).

Describe how this improvement could help users.

Many like myself only use the current releases of Powershell.

eizedev commented 8 months ago

That would be a great addition!

kplantus commented 5 months ago

This was my major reason for downloading WingetUI -- helping manage updates to my Pwsh modules. Unfortunately, I only use pwsh core. Replacing powershell.exe with pwsh.exe DOES provide the desired behavior within WingetUI -- but it's not recommended to completely replace the Windows PowerShell executable because a few things still require use within Windows Powershell.