winutil icon indicating copy to clipboard operation
winutil copied to clipboard

Update to PowerShell 7 tweak doesn't work

Open DiegcD opened this issue 1 year ago • 11 comments

Describe the bug Running Script for WPFTweaksPowershell7 Powershell 7 is already installed. Settings file not found at C:\Users\DiegcD\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json However when running $PSVersionTable command it still shows PowerShell 5.

To Reproduce Steps to reproduce the behavior:

  1. Go to Tweaks Tab
  2. Click on Replace PowerShell 5 with 7
  3. Run Tweaks
  4. PowerShell is still 5

Expected behavior Running $PSVersionTable command should show PowerShell 7

Additional context Windows 11 23h2 64 bits

DiegcD avatar Jun 13 '24 01:06 DiegcD

+1 on Win10 22H2 Build 19045.4412

devCKVargas avatar Jun 13 '24 08:06 devCKVargas

Have you restarted the Terminal afterwards? The tweak doesn't uninstall Powershell 5 (mainly because it's not really possible to my knowledge), installs Powershell 7 in parallel and changes the default of the Terminal to load up a Powershell 7 profile on startup. At least that's the intended function

Marterich avatar Jun 13 '24 09:06 Marterich

Can you check if the folder path of the Windows Terminal? Please send me the correct path and I will working on a patch if possible

blusewill avatar Jun 15 '24 02:06 blusewill

This issue was marked as stale because it has been inactive for 7 days

github-actions[bot] avatar Jun 29 '24 00:06 github-actions[bot]

Can you check if the folder path of the Windows Terminal? Please send me the correct path and I will working on a patch if possible

Old PowerShell 5 path is: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

And the new installed PowerShell 7 path is: C:\Program Files\PowerShell\7\pwsh.exe

DiegcD avatar Jun 29 '24 23:06 DiegcD

No what I mean is Windows Terminal's Path

No the PowerShell Path

blusewill avatar Jun 30 '24 05:06 blusewill

No what I mean is Windows Terminal's Path

No the PowerShell Path

C:\Windows\System32\cmd.exe

DiegcD avatar Jun 30 '24 22:06 DiegcD

Are you using Windows 10?

blusewill avatar Jul 01 '24 04:07 blusewill

Are you using Windows 10?

Windows 11, PowerShell 5 is my default terminal

DiegcD avatar Jul 01 '24 05:07 DiegcD

No what I mean is Windows Terminal's Path

No the PowerShell Path

"$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe" the settings.json is inside the LocalState folder

Edit: it's declared here

devCKVargas avatar Jul 02 '24 13:07 devCKVargas

Hello @DiegcD,

Please could you check if this is fixed your end and if it is could you please close this issue.

Thanks.

Real-MullaC avatar Jul 10 '24 13:07 Real-MullaC

/close

Marterich avatar Jul 16 '24 19:07 Marterich