Can I install Visual Studio without Admin rights?

50k Views Asked by At

I use a machine where I don't have administrator rights. I've been able to run programs without admin rights by extracting the program's .zip file to a directory I have created on my desktop. However, I can't find such a .zip file for Visual Studio.

Is there a way to install Visual Studio Community Edition without administrator rights?

5

There are 5 best solutions below

0
On

Despite the previous responses, you can install the Visual Studio Build Tools and Visual Studio so long as you have the executable installer.

For example, given a school computer administered profile "p3", and the file "C:\Users\p3\Downloads\vs_BuildTools.exe", open a terminal and run:

PS C:\Users\p3\Downloads> .\vs_BuildTools.exe --layout PATH/TO/INSTALL

The --layout option lets you specify an install directory. Whereas running the executable without this flag will attempt to install your program in a privileged directory, you can provide a path owned by your account to avoid admin interaction.

Edit: I wanted to install the MSVC build toolchain and only that component to build a Rust project with said target triple. If you seek only the build tools as well, check out this handy python script.

0
On

Basically, youre going to need to download an iso of windows, then download QEMU, and run it as invoker by doing that batch file thing (https://techcult.com/how-to-install-software-without-admin-rights/). Set it to anywhere, and then figure out how to boot it to QEMU cause I have absolutely no idea how (ive only done it with Kali Linux). and just install VC on there. Sorry about being so vague.

0
On

There is no way to install or use Visual Studio on Windows without admin rights. You can either use a different program to write your code in and then compile using a different compiler. Or use qemu (since it does not require admin rights) to run a windows virtual machine.

3
On

Practically no. Visual Studio (Express and above, excluding VS Code) consists of multiple components that must be installed as admin, and will be required for the app you're debugging to be available as system-wide component. It might be possible to use ThinApp or its equivalent, but ThinApp can't even work with VS 2010 and it was by far the best of its class.

A (resource intensive) alternative to get VS on any PC will be packaging a VM with VS installed, either creating one yourself or get a ready-made ones. VirtuaBox is available as portable fork if you can't even get Hyper-V tools installed. But this still require kernel drivers installation, which means at least one-time admin access. Depending on your internet connection & budget, it might be more practical to setup a VPS with VS installed, then remote there.

1
On

Starting with Visual Studio 17.7, standard users can update or modify their installation if a proper policy is set by an administrator.

This still doesn't permit fresh installations without admin rights, but once Visual Studio is installed with admin privileges and the AllowStandardUserControl policy is set (by adding a simple registry key value), subsequent updates or modifications won't need admin rights.

More details: https://devblogs.microsoft.com/visualstudio/standard-user-update/