Running miktexsetup --portable with elevated permissions fails
Running the distributed installation script with administrator permission propagates the --admin flag to initexmf even though --portable is specified. This causes the following error:
updating package definition directory (C:\ProgramData\TexTest_127\miktex\install\texmfs/install\tpm\packages)...
installed 3405 package definition files
visiting repository C:\Projekte\DYNA4Source\Produkt-Build\Wix-Installer\MikTex\repo...
repository type: local package repository
loading lightweight database...
77 [0x0000487c] INFO initexmf null - starting: MiKTeX Configuration Utility 2.9.6634 (MiKTeX 2.9.6630 64-bit)
77 [0x0000487c] INFO initexmf null - Operating on the shared (system-wide) MiKTeX setup
77 [0x0000487c] INFO initexmf null - starting with command line: initexmf --portable=C:\ProgramData\TexTest_127\miktex\install\texmfs/install --admin --log-file=C:\ProgramData\TexTest_127\miktex\install\texmfs/install\miktex/config\uninst.log --disable-installer --verbose
80 [0x0000487c] INFO initexmf null - finishing with exit code 0
log4cxx: No appender could be found for logger (mpmcli).
log4cxx: Please initialize the log4cxx system properly.
Sorry, but "MiKTeX Package Manager" did not succeed for the following reason:
Option --admin only makes sense for a shared MiKTeX setup.
You may want to visit the MiKTeX project page, if you need help.
miktexsetup-2.9.6637-x64.exe: The executed process did not succeed.
miktexsetup-2.9.6637-x64.exe: Data: fileName="C:\ProgramData\TexTest_127\miktex\install\texmfs/install\miktex/bin/x64\mpm.exe", exitCode="1"
I think this could easily be fixed by setting the admin flag to 0 if the portable flag is present or does this have more implications?
@edocevoli Would you be interested in a Pull Request that solves this issue or is this something I should only fix locally?
Do you think just setting the admin flag to false if --portable is specified solves it or do I have to watch out for some other stuff?
Any help would be appreciated. Thanks in advance!
This has been fixed with miktexsetup 2.9.6672.