Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 3.1.0 Beta 0 - PowerShell - Set-ExecutionPolicy command's fail #2351

Closed
4 tasks done
RonnyTNL opened this issue Jun 28, 2024 · 1 comment
Closed
4 tasks done
Assignees
Labels
bug Something isn't working ready-to-go

Comments

@RonnyTNL
Copy link

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

3.1.0 Beta 0

Windows version, edition and architecture

Win10 x64

Describe your issue

Inspecting the Package manager log shows PowerShell Set-ExecutionPolicy errors.

Steps to reproduce the issue

Just run the program

UniGetUI Log

Not relevant

Package Managers Logs

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is ListPackages
Subprocess executable: "powershell.exe"
Command-line arguments: ""
Process start time: 28/06/2024 10:00:47
Process end time:   28/06/2024 10:01:04

-- Process STDIN
 ...

-- Process STDOUT
 ...

-- Process STDERR
  Set-ExecutionPolicy : The term 'Set-ExecutionPolicy' is not recognized as the name of a cmdlet, function, script 
  file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct 
  and try again.
  At line:1 char:1
  + Set-ExecutionPolicy Bypass -Scope Process -Force
  + ~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Set-ExecutionPolicy:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
   

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 28/06/2024 10:00:48
Process end time:   28/06/2024 10:00:48

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is ListUpdates
Subprocess executable: "powershell.exe"
Command-line arguments: ""
Process start time: 28/06/2024 10:00:56
Process end time:   28/06/2024 10:01:05

-- Process STDIN
 ...

-- Process STDOUT
 ...

-- Process STDERR
  Set-ExecutionPolicy : The term 'Set-ExecutionPolicy' is not recognized as the name of a cmdlet, function, script 
  file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct 
  and try again.
  At line:1 char:1
  + Set-ExecutionPolicy Bypass -Scope Process -Force
  + ~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Set-ExecutionPolicy:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
   

Return code: SUCCESS (0)

——————————————————————————————————————————

Relevant information

Beware copy/pasting this from the application to notepad shows special char ZWNBSP just in front of the Set-ExecutionPolicy

Screenshots and videos

image

@RonnyTNL RonnyTNL added the bug Something isn't working label Jun 28, 2024
@marticliment marticliment added this to the Bugs milestone Jun 28, 2024
@marticliment
Copy link
Owner

Fixed!

@marticliment marticliment removed this from the Bugs milestone Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready-to-go
Projects
None yet
Development

No branches or pull requests

2 participants