Re: miktexsetup.exe: MiKTeX encountered an internal error.

Jan Schulz <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <CAAc324jnst=Pjt=jWxbkNoSxWQfOOMPBDj=kjMKcT3tzp+w30A@mail.gmail.com>
Hi,

just FYI: I got my system working by

* Including batch files in .\Skripts for every *.exe in
.\Library\miktex-dir\miktex\bin which just call
`@%~dp0..\Library\miktex-dir\miktex\bin\<name>.exe` (lets hope that
there is no tool which explicitly calls `pdflatex.exe` instead of
`pdflatex`...)
* Changing the `miktexstartup.ini` from `Portable` to a regular one
(`[Auto]\nConfig=Regular`) and setting `[PATHS]` ->
`CommonInstall=..\..` (and the same for `CommonData` and
`CommonConfig`). The final miktexstartup.ini looks like this:

```
[Auto]
Config=Regular

[PATHS]
CommonInstall=..\..
CommonData=..\..
CommonConfig=..\..
```

This file makes miktex look for already installed packages and configs
in the regular "Portable" location but installs new packages in the
user directory.

The result is now a conda package which can be installed by `conda
install -c conda-forge miktex`. If someone wants to have a look: here
is the recipe: https://github.com/conda-forge/miktex-feedstock

This package now lets you install a PDF exporting jupyter notebook
server (or an other app which uses pandoc+latex to convert to pdf) via
`conda install -c conda-forge miktex pandoc notebook nbconvert`.

Kind regards,

Jan
--
web: http://www.katzien.de
Schöne Grüße aus Dresden,

Jan
--
Jan Schulz
mail: [email protected]
web: http://www.katzien.de


On 11 March 2016 at 12:08, Jan Schulz <[email protected]> wrote:
> Hi!
>
> I'm trying to repackage miktex as a conda package (which has
> `<root>\scripts` in path). For that I want to try to put it in a
> directory structure similar to
>
> <root>\script (for bin)
> <root>\miktex\<rest of the stuff>
>
> Basically the idea is to put pdflatex and friends into the path and
> put everything else cleanly somewhere else and user downloaded stuff
> into appdata.
>
> While investigating if that is possible (or how "near" I can get to
> this structure), I ran into the following error:
>
> ```
> λ miktexsetup.exe --verbose
> --local-package-repository=.\miktex-repository   --package-set=basic
> download
> [... downloads find ...]
>
> λ miktexsetup.exe --verbose
> --local-package-repository=.\miktex-repository   --use-registry=no
> --common-config=.\miktex\config   --common-data=.\miktex\data
> --common-install=.\miktex\install   --common-roots=.\miktex\root
> --modify-path=no   --user-config="<APPDATA>\MiKTeX"
> --user-data="<LOCALAPPDATA>\MiKTeX"
> --user-install="<APPDATA>\MiKTeX"   --trace   install
> initializing setup service...
> miktexsetup.exe: MiKTeX encountered an internal error.
> ```
>
> I tried to both the 32bit and 64bit variants available from the
> download page. Other versions of the same commandline also didn't
> work, even this breaks:
>
> ```
> λ miktexsetup.exe install
> miktexsetup.exe: MiKTeX encountered an internal error.
> ```
>
> I've no clue what to try next :-( Thanks for any help!
>
> Jan
> --
> Jan Schulz
> mail: [email protected]
> web: http://www.katzien.de

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.