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

Windows: User environment variable PATH is overwritten #2

Open
AronVanAmmers opened this issue Oct 29, 2015 · 1 comment
Open

Windows: User environment variable PATH is overwritten #2

AronVanAmmers opened this issue Oct 29, 2015 · 1 comment
Assignees
Labels

Comments

@AronVanAmmers
Copy link

After running the installer (a build downloaded on 2015-10-22), I noticed I could no longer execute npm packages which were installed globally.

When debugging that, I noticed that my Path variable (System > Advanced System Settings > tab Advanced> Environment Variables > User variables for [Username]) was now as below:

%PATH%;C:\Users\Aron\AppData\Local\OpenBazaar\python27;C:\Users\Aron\AppData\Local\OpenBazaar\python27\scripts;%AppData%\npm\node_modules

Before installing it contained other paths, including the global npm path.

I believe this line overwrites that variable instead of amending it:

[Environment]::SetEnvironmentVariable("PATH", "%PATH%;$INSTDIR\python27;$INSTDIR\python27\Scripts", "User")
@hoffmabc
Copy link
Member

Interesting. I will take a look and see what's going on with that. I don't believe that line will be necessary in the updated installer build script as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants