#2297 kpsewhich triggers the on-the-fly installation.

open
kpsewhich (1)
2014-06-25
2013-11-07
U_Fischer
No

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

Discussion

    • labels: --> kpsewhich
    • assigned_to: Christian Schenk
     
  • It should be possible to disable the auto-installer as follows:

    set MIKTEX_KPSEWHICH_MPM_AUTOINSTALL=no

    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