43

For a lot of questions here on TeX.SE and on other fora regarding MiKTeX, it turns out that the underlying problem actually lies in the not understood distinction between administrative and user modes. So let me ask these questions:

What’s the difference between administrative and user mode in MiKTeX, and in which situation should I use either one of these modes?

0

2 Answers 2

30

The administrative mode is meant for a multi user system, where one user with (usually) administration rights is responsible for updates and installation of new packages etc., but apart from the admin installation users can add their own local TeXMF tree. The big caveat and source of most problems is: From this moment on, where a user refreshes his filename database (FNDB) in user mode, he will not see any update done by the administrator, until he does once again an own refresh – also if he didn’t add an own installation path!

For the admin mode you have to add the switch --admin to the commandline instructions or on the Start Menu you must use the Administrator Setup.

Constrastingly the user mode is thought for a single user environment or for users with low rights in a multi user system (but also users with installation rights could use this mode); users with low rights can install MiKTeX only into the user profile, I would suggest %APPDATA% – MiKTeX adds later anyway under %APPDATA%\MiKTeX\<version>\ configuration files and also all packages installed by “installation on the fly”, cf. Changing the location of auto-installed packages in MiKTeX.
In this mode every user has just to take care about one installation, the refresh is much more simple (local TeXMF trees can be added as well).

Therefore if you are the only MiKTeX user on your system, I strongly recommend to choose the user mode installation.

(See also Ulrike Fischer’s answer to the question What is the preferable setup for MiKTeX to keep all packages up-to-date easily?)

How to change from admin to user mode? (Or vice versa.)
As far as I see only by re-installation (admin mode is only possible after “installation for all users”, respectively “installation only for me” lets you automatically work in user mode), but you can use the already installed package files, for this purpose see my own answer to the question Relocate MiKTeX 2.9? (for user mode don’t forget to leave out the --admin switch). If you switch from multi to one user installation, you should also delete the folder %ALLUSERSPROFILE%\MiKTeX (since Windows Vista) or %ALLUSERSPROFILE%\<Application Data>\MiKTeX (until Windows XP, the string <Application Data> is language dependent), but make a safety copy first e.g. with a file archiver, especially if you had made manual changes before.

4
  • 1
    No, admin and user mode are both important concepts of a multi user installation. In admin mode you are trying to do something (eg set a default or install a package) for all users. In user mode only for the current user account. Commented Aug 18, 2012 at 22:35
  • Seems, I also didn't fully understand the concept. If you would provide a better answer, I would delete mine.
    – Speravir
    Commented Aug 19, 2012 at 22:25
  • No, you are still mixing "multi user installation versus single user installation" and "admin mode versus user mode". In a single user installation there is only one user and only one mode to do things. Only in a multi user installation you have to decide if you want to change files or a configuration for all users or only for one user - and if you do both which setting should "win": E.g. the admin did set up a default start page for the browser, user A did change it locally, now the admin change the default. Which setting is used for user A and which for user B? Commented Aug 26, 2012 at 10:54
  • Regarding the first part of your latest comment I think you misread my edited answer, but after some further editing I hope it’s even clearer. Regarding the question, who wins: I don’t know. If you do, please write an own answer or edit mine.
    – Speravir
    Commented Aug 26, 2012 at 18:32
0

I installed the admin version (at least I think I did). Anyway, the end result is that the admin package manager installs packages in the old location, which for me is C:\Program Files\MiKTeX 2.9, and the plain package manager installs packages in C:\Users\John\AppData\Roaming\MiKTeX\2.9 (you need to show hidden files to find it).

Now TeXnic Center uses the plain package locations for everything, which is fine except I couldn't find the documentation. In fact, it appears that the documentation doesn't show up in the AppData location at all, most of the time.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .