Skip to content

Improve windows install experience #118

@shouze

Description

@shouze

What is the problem this feature would solve?

At the momment, when we execute:

powershell -c "irm https://raw.githubusercontent.com/fulll/github-code-search/main/install.ps1 | iex"

Then the user is asked for a confirmation with a script execution warning:

Detecting latest release...

Avertissement de sécurité : risque d'exécution de script
Invoke-WebRequest analyse le contenu de la page web. Il se peut que le code de script de la page web s'exécute lors de
l'analyse de la page.
      ACTION RECOMMANDÉE :
      Utilisez le commutateur -UseBasicParsing pour éviter l'exécution du code de script.

      Voulez-vous continuer ?

[O] Oui  [T] Oui pour tout  [N] Non  [U] Non pour tout  [S] Suspendre  [?] Aide (la valeur par défaut est « N ») : O
Installing github-code-search v1.9.0 (windows/x64-modern)...
################################################################################################################ 100.0%

  Added C:\Users\remidufour\.github-code-search\bin to user PATH.

  github-code-search v1.9.0 installed successfully!
  Binary: C:\Users\remidufour\.github-code-search\bin\github-code-search.exe
  Version: 1.9.0 (f9b0fb9 ┬À windows/x64-modern)

  Remember to set your GitHub token:
  $env:GITHUB_TOKEN = "ghp_your_token_here"

What is the feature you are proposing to solve the problem?

This message may cause fear in the user and lead them to abandon the installation.

What alternatives have you considered?

No idead, should check if an alternative exist that don't display such warning message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions