windows-build-tools icon indicating copy to clipboard operation
windows-build-tools copied to clipboard

Problems when user is not admin

Open peacememories opened this issue 7 years ago • 4 comments

Hi, and thanks for this invaluable tool. Correctly configuring msbuild by hand is a pain.

I've run into a problem when the developer user does not have admin permissions. To install windows-build-tools one has to start an admin cmd/powershell as the admin user (let's call it admin) Msbuild gets installed correctly this way, but the problem is, that Python gets installed in C:\Users\admin\.windows-build-tools and is owned by the admin user. The python config variable of npm is set to that path, which results in npm not finding python (even if python was installed earlier).

Would it be possible to have windows-build-tools install Python globally, so all users can access it?

peacememories avatar May 11 '18 16:05 peacememories

That's a good idea, I'm generally for that.

felixrieseberg avatar May 18 '18 17:05 felixrieseberg

Just to make sure I understand, you're saying that it's OK to require admin privileges during the installation (otherwise it shouldn't be possible to install system-wide packages), but that Python should be installed in, say, %programfiles%\Python27 (possibly only when this behavior is specified via command-line argument). So then I think we'd need to make a few changes:

This might also be a good time to investigate the problem of inadvertently uninstalling pre-existing Python installations

jacobq avatar May 18 '18 18:05 jacobq

I would definitely prefer not having to provide admin privileges at all, but the more immediate problem for us was a non-accessible Python installation.

peacememories avatar May 18 '18 18:05 peacememories

And i assumed installing msbuild without admin permissions wasn't an option. If it turns out that it is, yay :)

peacememories avatar May 18 '18 18:05 peacememories