#2297 kpsewhich: on-the-fly installation crashes

kpsewhich (1)

I have set the on-the-fly to "ask me first". If I query with kpsewhich a package which is not installed on my system, eg. bg.sty from the backammon package with

 kpsewhich bg.sty

then the on-the-fly-installation dialog pops up and asks me if I want to install the package. That's a problem if kpsewhich is used in scripts to get the location of files. Imho kspewhich should not by default start the on-the-fly installation.

(I know that kpsewhich is not the official tool to find files, but it makes life easier if you have to write scripts meant for texlive and miktex).

Ulrike Fischer


  • Christian Schenk

    • labels: --> kpsewhich
    • assigned_to: Christian Schenk
  • Christian Schenk

    It should be possible to disable the auto-installer as follows:


    In the future I will add a MiKTeX specific option to disable the auto installer.

  • U_Fischer

    U_Fischer - 2013-11-07

    I added the environment variable to my settings and it works fine. Thank you.

    Ulrike Fischer

  • tudscr

    tudscr - 2015-07-01

    Actually, for me the on-the-fly installation is quite nice. But if it's set to install without request ("Install missing packages on-the-fly: Yes"), there's an error message after an automatic installation:

    "Standalone path lookup and variable expansion for Kpathsea funktioniert nicht mehr"

      Problemereignisname:  APPCRASH
      Anwendungsname:   kpsewhich.exe
      Anwendungsversion:    2.9.4199.0
      Anwendungszeitstempel:    51c4b7e6
      Fehlermodulname:  MiKTeX209-packagemanager.dll
      Fehlermodulversion:   2.9.4919.0
      Fehlermodulzeitstempel:   51c4b5aa
      Ausnahmecode: c0000005
      Ausnahmeoffset:   00065a62
      Betriebsystemversion: 6.1.7600.
      Gebietsschema-ID: 1031
      Zusatzinformation 1:  0a9e
      Zusatzinformation 2:  0a9e372d3b4ad19135b953a78882e789
      Zusatzinformation 3:  0a9e
      Zusatzinformation 4:  0a9e372d3b4ad19135b953a78882e789
  • Christian Schenk

    • Status: open --> attic
  • Christian Schenk

    • status: attic --> open
    • Milestone: --> None
  • Christian Schenk

    • summary: kpsewhich triggers the on-the-fly installation. --> kpsewhich: on-the-fly installation crashes
    • status: open --> in-the-works
    • Milestone: None --> 5900
  • Christian Schenk

    I will not change the MiKTeX program invariant:

    files will always be found if the installer is not disabled

    I will fix the application crash reported by mrpiggi.

  • Christian Schenk

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

Log in to post a comment.