-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin mode required but not accessible #419
Comments
Seems that there are some relicts from the previous installation. To find out:
|
On this system, there were no previous installations. The HKLM keys do not exist. |
Sorry, I was a little bit confused. Please attach the relevant package manager files:
|
The config file It should be possible to manually install missing packages. This seems to be the only work-around for this broken MiKTeX installation. |
Actually, I have almost the complete CTAN installed. However, they all reside in the |
Since you said
I was under the impression that you have a pure user installation. It turns out that you once had a shared setup. Correct? Somehow the HKLM key has been deleted and now the MiKTeX installation is broken. |
Exactly. When I installed some years ago, this was a shared setup. I never deliberatly made any non-admin changes, but I suppose I at least once forgot these, so that the format files were in fact user-managed. Hence, they were not affected by my usual system-level changes. I thought I could simply remove the few user-based entries using the "Reset personal MikTeX configuration" function, but it rather looks like it deleted anything that made MikTeX know it was a shared setup in the first place. |
I will try to reproduce the issue ("Reset personal MikTeX configuration" is broken). It should be possible to restore the HKLM key. I will later post a |
There is no problem with the latest MiKTeX version: You can restore the the HKLM key as follows:
|
Great, thanks! This looks a lot better. |
After I experienced a problem that MikTeX for some reason re-built format files in user mode (though I only performed package updates in admin mode), I again selected |
If you run MiKTeX Console as MiKTeX user, it should not be possible to delete |
The Console itself has the permissions (from the OS perspective), as I don't use UAC restrictions. It is an application with administrator privileges, but runs in MikTeX user mode. |
Okay, thank you. Indeed, if you run elevated, then these |
The perhaps this is also related to another message (which I don't know whether it does any harm or not): All compilers give a warning, e.g., |
It is possible to run tools like
|
This has been fixed. |
I tried to run updates via the MikTeX console. Since the last time I updated is already past a couple of week, I believe there must be quite a few. However (as it was in pre-console times with the two-stage update process), the console reports only three of them (
miktex-harftex-bin-x64-2.9
,ifetex
andifxetex
) which are all about to be removed. All three of them have a comment in the last column:removal only possible in admin mode
. I can't check them and can't run those updates.Previously, I had a shared MikTeX installation and did every update in admin mode, but recently, I noted that updating the formats (due to this issue) did not increase the version number. I thought that this might be a shared/single user related problem and chose "Reset personal MikTeX configuration" in the Cleanup section of the console, as I really don't need a shared installation. After that, obviously my installation was set to be user-mode only, as I was never again asked to enter admin mode and indeed every packaged changed its "Installed by" entry to "User".
So now the problem is that I don't have an admin mode (starting the console with
--admin
parameter confirms this: It aborts sayingOption --admin only makes sense for a shared MiKTeX setup.
), but in order to uninstall those three packages and subsequently (I hope) being able to do updates again, I need to enter the admin mode.It looks like the "Reset personal MikTeX configuration" has somehow put my installation in an inconsistent state. Rebuilding the FNDB before the update did not help.
initexmf --report
:The text was updated successfully, but these errors were encountered: