Skip to content
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

Running miktexsetup --portable with elevated permissions fails #100

Closed
yeganer opened this issue Mar 26, 2018 · 2 comments
Closed

Running miktexsetup --portable with elevated permissions fails #100

yeganer opened this issue Mar 26, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@yeganer
Copy link

yeganer commented Mar 26, 2018

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?

@yeganer
Copy link
Author

yeganer commented Apr 5, 2018

@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!

@edocevoli edocevoli self-assigned this Apr 6, 2018
@edocevoli edocevoli added this to the 2.9.6670 milestone Apr 6, 2018
@edocevoli edocevoli added bug and removed enhancement labels Apr 6, 2018
@edocevoli
Copy link
Member

This has been fixed with miktexsetup 2.9.6672.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants