Skip to content

[BUG/ISSUE] ExecutionPolicy Unrestricted causes problem when installing WingetUI with Scoop enabled #370

Closed

Description

@ppvnf

Before submitting the issue

  • I have checked that the bug is not a duplicate or, if it is, it needs to be reopened
  • I have checked that I am running the latest version of WingetUI
  • I have tried resetting and reinstalling WingetUI and the issue persisted or happened again
  • I have checked the FAQ section for solutions

Describe the bug

If ExecutionPolicy is set to Unrestricted and Scoop is already installed, installing WingetUI with the option to enable Scoop will actually result in Scoop not being detected + false entries in all sections.

To Reproduce

Steps to reproduce the behaviour:

  1. Clean install Windows 11 or Windows 10
  2. Run on PShell Set-ExecutionPolicy Unrestricted -Scope CurrentUser
  3. Run irm get.scoop.sh | iex
  4. Install WingetUI with the option to enable Scoop
  5. See error

Expected behaviour

This problem doesn't happen If the ExecutionPolicy is changed to RemoteSigned, but it took me a while to figure out why some of my installs had this annoying problem...

Screenshots

Captura de tela 2022-10-31 112935
Captura de tela 2022-10-31 112749
Captura de tela 2022-10-31 112836
Captura de tela 2022-10-31 112906

The Log

log.txt

Additional context

The install Scoop script will fail:

Captura de tela 2022-10-31 113228

However, because the ExecutionPolicy is changed to RemoteSigned by the script, relaunching WingetUI will fix the problem

Activity

  1. added
    bug
    on Oct 31, 2022
  2. ppvnf commented on Dec 13, 2022

    @ppvnf
    ContributorAuthor

    This problem is mostly fixed (you just have to restart WingetUI after install to get rid of the false entries)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugneeds-further-study

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions