Per-user installation

On this page 7

Per-user installation is a method of installing software only for the current user account, writing program files, settings and registrations into locations that the user owns rather than into system-wide directories. Because it touches nothing shared, it usually requires no administrator or root privileges and leaves other accounts on the same computer unaffected.

Within installation & packages, per-user installation is the counterpart of per-machine (system-wide) installation. Operating systems, installers and package managers all support it in some form, from Windows MSI packages and macOS application folders to Linux Flatpak user installs and language tools such as pip install --user.

Where a per-user installation puts files

A per-user installation works by redirecting every write to paths inside the user profile and to user-scoped configuration stores. The installer resolves these locations at run time, so the same package lands in a different folder for each account that installs it.

The following table compares typical per-user and system-wide locations on the three major desktop platforms.

PlatformPer-user locationSystem-wide location
Windows%LOCALAPPDATA%\Programs and HKCU registry hive%ProgramFiles% and HKLM registry hive
macOS~/Applications and ~/Library/Applications and /Library
Linux (XDG)~/.local/bin and ~/.local/share/usr/bin, /usr/share or /opt
Flatpak~/.local/share/flatpak/var/lib/flatpak
Python pip~/.local/lib/pythonX.Y/site-packages/usr/lib/pythonX.Y/site-packages
Typical install locations by platform

Registration follows the same rule. On Windows, a per-user installer writes file associations, uninstall entries and Start menu shortcuts under HKEY_CURRENT_USER; on Linux, desktop entries go to ~/.local/share/applications following the XDG Base Directory specification. For the program to be found from a terminal, the user-level binary folder must be on the PATH, which some distributions add automatically only when the folder already exists at login.

Per-user versus per-machine installation

The choice between the two scopes is a trade-off between autonomy and central control. A per-user install empowers the individual, while a per-machine install gives administrators one copy to patch, audit and remove.

CriterionPer-user installationPer-machine installation
Privileges neededStandard user rightsAdministrator or root
VisibilityOnly the installing accountAll accounts on the device
Disk usageOne copy per userOne shared copy
Update controlOften self-updating per userCentral patching by IT
Security protectionFiles writable by the userFiles protected from user changes
RemovalDeleted with the profileRequires an uninstaller run
Comparing installation scopes

Per-user installation should not be confused with a portable application, which runs from any folder without writing registrations at all, or with an application sandbox, which restricts what a program may access at run time. A per-user install still registers itself with the operating system; it simply does so in the user’s own scope.

How installers and package managers implement it

Most packaging formats expose installation scope as an explicit option or package property. On Windows Installer, the ALLUSERS property and MSIINSTALLPERUSER flag select the scope, and a package marked as dual-purpose can install either way depending on how it is launched. MSIX packages are registered per user by design, even when the payload is staged once per machine.

ToolPer-user optionNotes
Windows Installer (MSI)ALLUSERS=2 with MSIINSTALLPERUSER=1Dual-purpose packages only
winget–scope userDepends on the package manifest
Flatpakflatpak install –userSeparate user remote configuration
pippip install –userBlocked in some externally managed environments
npmCustom prefix in ~/.npmrcAvoids sudo for global packages
HomebrewInstallation under a user-owned prefixUnsupported prefixes lose bottle binaries
Scope options in common tools

Language ecosystems have shifted toward isolated environments rather than user-wide installs. Under PEP 668, many Linux distributions mark the system Python as externally managed, and pip then refuses even --user installs to protect distribution packages; tools such as pipx or virtual environments take their place.

When to choose a per-user installation

Per-user installation is the right default when one person needs a tool on a shared or locked-down machine. It suits developers, students in computer labs and staff whose accounts lack administrator rights, and it lets two users run different versions of the same program side by side.

  • Single-user laptops benefit from fast, prompt-free installs and silent self-updates.
  • Shared workstations benefit when each person needs a different tool set or version.
  • Managed enterprise fleets usually prefer per-machine deployment for consistent patching.
  • Servers and services should use system-wide packages, because services rarely run under a human account.

In managed environments, IT policy decides the scope. Group Policy, AppLocker or Microsoft Intune can block execution from user-writable paths, which deliberately disables per-user installers to keep software inventory under control.

Risks and common mistakes

The main risk of per-user installation is that program files remain writable by the user, so any malware running in that account can also modify the installed executables. This is why attackers favor user-writable application folders, and why security baselines often restrict execution from AppData.

ProblemCauseRemedy
Command not foundUser binary folder missing from PATHAdd the folder and restart the session
Two versions conflictSame program installed in both scopesRemove one copy and keep a single scope
Unpatched old versionCentral updates skip user profilesEnable self-update or inventory user installs
Software lost after reimagingProfile not backed upReinstall or redirect the profile folders
Disk usage multipliesEach user keeps a full copySwitch to a per-machine install
Frequent problems with per-user installs

Mixing scopes is the most common administrative mistake. When the same product exists both per user and per machine, the operating system may launch whichever copy appears first on the PATH or in file associations, which makes troubleshooting and vulnerability scanning harder than it needs to be.

The idea in brief

Installing a program per user is like putting it in your own room instead of the shared living room. You do not need permission from the owner of the house. Nobody else in the house sees it or can use it.

There is a downside. Each person who wants the same program needs their own copy. The owner of the house also cannot easily check or update every room. The key takeaway: per-user installation trades convenience for the individual against central control.

A practical scenario

A data analyst at a mid-sized company works on a Windows laptop without administrator rights. She needs a code editor and a newer Python version for a project, but the IT service desk has a two-week queue. Both tools offer per-user installers, which place the programs in %LOCALAPPDATA%\Programs and register them under her own registry hive.

The installs finish in under five minutes with no elevation prompt. Three months later, a security audit finds that the editor in her profile is two versions behind. The IT team adds user-profile scanning to its inventory tool and later moves the editor to a per-machine deployment through its endpoint management system, so updates now arrive centrally for everyone who uses it.