Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the advantages of installing programs in AppData like Google Chrome?

I just noticed that Chromium was installed in AppData in both Vista and XP. If Google does that and if other applications does this, than is that becuase there is some form of protection? Should we write installers that does the same thing as Google?

like image 666
Ravi Chhabra Avatar asked Sep 06 '08 16:09

Ravi Chhabra


People also ask

Why do programs install to AppData?

The user has to have at least Modify permissions on their AppData folder in order for basic account functionality to work. By installing into AppData/Local these applications get around the requirement to have an administrator or UAC prompt authorise the installation. Google Chrome is a good example of this.

Should you install to AppData?

You should use AppData for any configuration, or program files that will change with the program.

What does Chrome installer do?

The Google installer communicates with the main Google servers and automatically downloads updated versions of Google software, such as Google Earth or Google Chrome.

Does Python need AppData?

By default the Python installer for Windows places its executables in the user's AppData directory, so that it doesn't require administrative permissions. If you're the only user on the system, you might want to place Python in a higher-level directory (e.g. C:\Python3. 7 ) to make it easier to find.


1 Answers

Windows still lacks a convention for per-user installation.

  • When an installer asks whether to install for the current user or all users, it really only refers to shortcut placement (Start Menu; Desktop). The actual application files still go in the system-wide %PROGRAMFILES%.
  • Microsoft's own ClickOnce works around this by creating a completely non-standard %USERPROFILE%\Local Settings\Apps (%USERPROFILE%\AppData\Roaming on Vista / Server 2008) directory, with both program files and configuration data in there.

(I'm at a loss why Microsoft couldn't add a per-user Program Files directory in Vista. For example, in OS X, you can create a ~/Applications, and the Finder will give it an appropriate icon. Apps like CrossOver and Adobe AIR automatically use that, defaulting to per-user apps. Thus, no permissions issues.)

What you probably should do: if the user is not an admin, install in the user directory; if they do, give them both options.

like image 167
Sören Kuklau Avatar answered Nov 16 '22 00:11

Sören Kuklau