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?
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.
You should use AppData for any configuration, or program files that will change with the program.
The Google installer communicates with the main Google servers and automatically downloads updated versions of Google software, such as Google Earth or Google Chrome.
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.
Windows still lacks a convention for per-user installation.
%PROGRAMFILES%
.%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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With