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

Doc and install: avoid security issue on Windows #2864

Open
paugier opened this issue Jan 9, 2025 · 3 comments
Open

Doc and install: avoid security issue on Windows #2864

paugier opened this issue Jan 9, 2025 · 3 comments
Labels
📖 documentation Improvements or additions to documentation installation The installation of pixi itself windows Related to MS Windows

Comments

@paugier
Copy link

paugier commented Jan 9, 2025

Problem description

In https://pixi.sh/latest/, the given install command is currently

iwr -useb https://pixi.sh/install.ps1 | iex

I was not able to run this because of a security software.

However, I was able to follow the installation instructions "Install via Scoop:" in https://pipx.pypa.io/stable/installation/ for which one needs to execute:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

Therefore, I guess installation instructions for Pixi (or the script I don't know) could be improved to avoid such security blockage.

@ruben-arts
Copy link
Contributor

Thanks for the tip! Would you be able to share the command that did work for you?

@ruben-arts ruben-arts added 📖 documentation Improvements or additions to documentation installation The installation of pixi itself windows Related to MS Windows labels Jan 9, 2025
@paugier
Copy link
Author

paugier commented Jan 10, 2025

I was finally able to install Pixi with the .ps1 installer with

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
irm https://pixi.sh/install.ps1 -OutFile install-pixi.ps1
iex .\install-pixi.ps1

So it might just be that what does not like the security software is only the | iex ? However, | Invoke-Expression worked with Scoop, so I don't know.

It might be useful to improve the documentation. About this potential issue with security solftware and also not using short Powershell aliases. I guess very few people know "irm" and "iex" so it is really "copy paste this command that you don't understand". The longer version with few steps and with a local (and checkable) install-pixi.ps1 script might be better (?). Anyway, people copy/paste so Invoke-Expression could be better than iex in documentation.

@JoerivanEngelen
Copy link

JoerivanEngelen commented Jan 13, 2025

FYI: On our company's Windows laptops, we also have to set the execution policy of Powershell to install pixi. Some more info I found (for Windows 7, but still relevant on Windows 11)

On our machines, this is sufficient:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
iwr -useb https://pixi.sh/install.ps1 | iex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Improvements or additions to documentation installation The installation of pixi itself windows Related to MS Windows
Projects
None yet
Development

No branches or pull requests

3 participants