feat(install): Add PIXI_NO_PATH_UPDATE
for PATH update suppression
#692
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close #686
The PR mainly adds the option of using a
PIXI_NO_PATH_UPDATE
environment variable to suppress PATH update, when installing pixi from install script.Besides the option added, since the PR is about environment variable, the way of updating PATH in the PowerShell install script has also been modified from using
[Environment]::SetEnvironmentVariable
to set environment variable to get and update environment variable from Windows registry.This change doesn't affect pixi installation directly and is primarily to address a potential issue that
SetEnvironmentVariable
expands all environment variables and this behavior may not be welcomed in some cases.Related code are copied from ScoopInstaller/Install I'm maintaining.