Menu

#2435 --admin option of MPM is broken

5900
fixed
2016-05-15
2016-02-08
Uwe
No

With the current MiKTeX (fresh installation using basic installer 2.9.5872) it is impossible to mpm with the --admin option.
So
mpm --list
works
while
mpm --admin --list
does not work.

I checked all possible options and all work, but as soon as the --admin option is used nothing is executed.

(I need the --admin option because I bundle MikteX with the LyX installer and for users who install MiKTeX as admin for all users of a PC TeX packages must be installed as --admin to be visible for all users.)

Discussion

  • Uwe

    Uwe - 2016-02-08

    Hmm, it is in general no longer possible to start the admin version of the MPM:

    • when one tries
      mpm --admin
      one gets this error:
      "Sorry, but "MiKTeX Package Manager" did not succeed for the following reason:
      Option --admin requires administrator privileges."
      But I am logged in with my admin account and this did not happen with former MPM versions.

    • when I run a console explicitly with admin permissions and then execute
      mpm --admin
      in it or via a batch file only the normal MPM starts and not the admin version.

     
  • Uwe

    Uwe - 2016-02-08

    initexmf is also affected:

    initexmf --update-fndb

    works while

    initexmf --admin --update-fndb

    does not work, no matter how I execute this.

     
  • Christian Schenk

    • labels: MPM --> mpm, initexmf
    • status: open --> in-the-works
    • assigned_to: Christian Schenk
     
  • Christian Schenk

    All programs with option --admin are affected. This option does not make sense if the program is not started from an elevated parent process (e.g., admin command window) or if the MiKTeX setup is not shared (i.e., MiKTeX installed for all users). The programs must check these conditions and disable --admin when necessary. This will be fixed with one of the next updates.

     
    • Uwe

      Uwe - 2016-02-09

      This option does not make sense if the program is not started from an elevated parent process (e.g., admin command window) or if the MiKTeX setup is not shared

      But the problem I wanted to report is that
      I have admin permissions
      MiKTeX was installed using the --shared option (for all users)
      * I explicitly run cmd.exe with elevated permissions

      But --admin fails always. --admin worked in previous MiKTeX versions.

       
  • Christian Schenk

    Okay, this is the real issue: mpm --admin does not start the admin variant of the GUI. This will fixed as well.

     
  • Christian Schenk

    Btw, mpm --list --admin works for me.

     
  • Christian Schenk

    • Milestone: --> 5900
     
  • Christian Schenk

    • status: in-the-works --> fixed
     
  • Uwe

    Uwe - 2016-05-15

    in-the-works --> fixed

    Many thanks! But to benefit from the fix I need a new Basic-miktex installer. At the moment there:
    http://miktex.org/download
    is still the affected 2.9.5872 offered.

     
  • Christian Schenk

    The updated installer will be available in the coming week.