-
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
Updater fails if not run as admin, even on a user installation #56
Comments
"D:\Program Files\MiKTeX" indicates a shared installation. And besides that, modifying the "Program Files" folder usually requires admin privileges. |
Dear Christian, "The" Program Files directory is located at C:\Program Files. The D:\Program Files directory was created by me and it's a perfectly regular directory. No admin privileges required. My installation is not a shared install. |
You haven't attach the log files (the update log is not enough), so it's difficult to get an idea about your setup. All I can say at the moment is that I cannot reproduce your problem when going the standard setup route. |
Which log file should I be looking for and where?
(The update log is the only one in the `C:\Users\Márton\AppData\Local\MiKTeX\2.9\miktex\log` folder that is changed when running the updater.)
|
The log files are in |
Which log files do you need? All 41 of them?
|
I don't know yet. It's your system. You know when it happened. You are in the position to inspect the log files. You have all the information. I have: not enough information to work on this issue effectively. |
Here's a debug trace, I hope it's useful:
|
The updater tries to write into the |
Isn't there the bug right in clear view? "The updater should never attempt to write the registry when the installation is not a system-wide install." |
Indeed the only registry key in that location is "LastAdminMaintenance." Writing that is unnecessary when the updater is not performing admin maintenance. The updater of a user installation is never performing admin maintenance. |
You are absolutely right: this is a bug. But I can't reproduce the bug because I don't know how to do it. You gave me nothing to work with (no step-by-step recipe for a dummy developer). Here is what I did:
Everything is OK. No error messages, all packages are up-to-date. On my side, there nothing I can do to fix the bug, sorry. |
Christian,
I understand your viewpoint.
However during my continued use of MiKTeX over the last 6-7 years, I’ve found that this kind of updater bug (or unusable distribution after an update) pops up once or twice every year on MiKTeX installations that have been in use for a longer time. Which is very annoying.
As a user I know nothing about how to help you in fixing these bugs. I did the exact same two steps that you did, except that step 2 was “run the updater several times over several years while using MiKTeX as intended”. I know that your time and resources are limited, but I still feel like the user experience here could be a little better:
- Please do not close issues/bug reports without verifying that you have an accurate understanding of the problem. (this also happened in https://sourceforge.net/p/miktex/bugs/2586/)
- Better error handling: instead of a meaningless exit code, initexmf could report the cause of the error back to the updater, and that could show it in a dialog to the user (or write the real cause into a log file which didn’t happen in this case)
Those are my suggestions and thank you for your hard work on MiKTeX.
|
Yeah, thank you for the suggestions. I promise to improve this. |
I have the same problem too, when i first installed it's ok, but when i want to change it to every one share to use it, and try to reinstall it again, it always failed with exit code = 1 error. |
I have solved It.!!! |
Hi @diegoguffanti : I also encounter this problem today, your solution is valid for me, thanks! |
I will try it |
Very good |
@diegoguffanti Write: regedit |
Bug report
My check list
What I tried to do
Update MiKTeX with the GUI updater
What I expected to happen
Update succeeds.
What happened instead
End of log:
Strangely if I run the updater as admin, it succeeds without error. This is weird because I don't have a system-wide MiKTeX installation, only a user installation.
The other weird thing is that no matter how many times I run the updater, it always finds these two "to be repaired" tasks:
The text was updated successfully, but these errors were encountered: