Closed JAK1047 closed 1 month ago
That would be a great addition!
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.
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.