Why can some programs be installed without administrator privileges?

8

4

I have a Windows XP computer at work, which does not have administrator privileges. Normally the IT department has to give me permission every time I want to install a program, but today I was able to install JabRef on my own.

As a beginner, I don't really understand how that could work, but I am quite curious! Can anybody explain why some programs can be installed without administrator privileges?

larkasc

Posted 2013-08-27T14:37:14.893

Reputation: 91

Answers

5

A program "installation" consists of writing some files and perhaps writing some Registry entries. If those writes are made to locations in your user folders and your user Registry hive, there is no need for administrative access. A program's executable files can be located anywhere.

kreemoweet

Posted 2013-08-27T14:37:14.893

Reputation: 3 884

9

As kreemoweet and Andrew mentioned, the most common cause is a program's install location.

Programs installed to system folders like Program Files or Program Files (x86) will always require Administrator rights when installing. Programs installed to user-specific folders like AppData usually won't require administrator rights.

Pro tip: If a program's installer requests admin rights, try seeing if a portable version is available, or change the install path to a folder that isn't Program Files.


While install location is the most common reason a program may require admin rights, it is not the only reason.

Requires Admin rights

  • Installing to system-level directories.
    • Program Files, Program Files (x86), Windows
  • Modifying system-wide registry entries under HKEY_LOCAL_MACHINE
  • Installing device drivers
  • Installing ActiveX controls
  • Configuring Windows Updates
  • Viewing or changing another user's folders or files

Does not require Admin rights

  • Installing to user-level directories
  • Modifying HKEY_CURRENT_USER in Registry

As an interesting aside, Google Chrome gets around these restrictions by installing to Program Files by default, but falls back to AppData if the user does not have Administrator rights.


Sources

Stevoisiak

Posted 2013-08-27T14:37:14.893

Reputation: 8 152

4

Certain directories and programs are protected by the system to that they can only be written to by users with a certain level of permission (e.g. Administrators).

It's possible that your program did not write to such a directory (e.g. C:\Program Files) or invoke such a program (e.g. regedit, to modify your registry).

It's also possible - if you are on an Active Directory environment - your IT department has allowed certain programs to install or allowed you to install programs in certain circumstances - either intentionally or by mistake. The policies set by your IT department are pushed out to your machine invisibly, so you wouldn't be aware anything had changed.

Your best bet is to contact your IT department and notify them. Not only will they likely be able to explain it, but if you've found a security risk they can likely identify and fix it.

Andrew White

Posted 2013-08-27T14:37:14.893

Reputation: 527

0

There are many different examples of this in Windows OS. If the program doesn't evoke the administrator, or the administrator group then it will not need to be installed by an admin. If the program doesn't make changes to the system in anyway. The other possibility is that, the IT department forgot to remove your permissions to install software.

nate

Posted 2013-08-27T14:37:14.893

Reputation: 1 082

There is no UAC in Windows XP, so it's irrelevant. – kreemoweet – 2013-08-27T16:26:15.510

@kreemoweet good point – nate – 2013-08-27T18:58:48.097