metacall / install

Cross-platform set of script to install MetaCall infrastructure.
https://metacall.io
Apache License 2.0
12 stars 12 forks source link

Permanently modifying PATH not working in install.ps1 without admin rights #10

Closed viferga closed 2 years ago

viferga commented 2 years ago

I've tried to modify this: https://github.com/metacall/install/blob/844b618a35293b46a0cea0dbe1272ee607990f05/install.ps1#L218

By using this snippet from stackoveflow: https://stackoverflow.com/a/51032306

..but it's not working at all. We should review this properly.

roysti10 commented 2 years ago
> powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.Securmetacall/install/master/install.ps1')))"
Collecting pip
  Using cached pip-22.1.2-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Successfully installed pip-22.1.2
WARNING: You are using pip version 21.2.3; however, version 22.1.2 is available.
You should consider upgrading via the 'C:\Users\tauro\AppData\Local\MetaCall\metacall\runtimes\python\python.exe -m pip install --upgrade pip' command.
Exception calling "SetEnvironmentVariable" with "3" argument(s): "Requested registry access is not allowed."
At line:1 char:82
+ ... pe]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsi ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : SecurityException

The error in question