Everything does not discover certain files installed by MiKTeX installer

Found a bug in "Everything"? report it here
Post Reply
sigmund
Posts: 4
Joined: Fri Aug 21, 2015 2:25 pm

Everything does not discover certain files installed by MiKTeX installer

Post by sigmund »

Everything does not discover all files installed by the MiKTeX 22.10 installer downloaded from here:
https://miktex.org/download

(This is the case for both the "Installer" and "Command-line installer".)

I am running on Windows 11 version 22H2 (OS Build 22621.963) and Everything version 1.4.1.1022 (x64).

One of the files that are not discovered is "texmfs\install\miktex\bin\x64\pdflatex.exe". If I rename the file to something else and back again, then Everything does discover it.
NotNull
Posts: 5260
Joined: Wed May 24, 2017 9:22 pm

Re: Everything does not discover certain files installed by MiKTeX installer

Post by NotNull »

First guess:

The installer extracts or copies files to a folder you have excluded in Everything.
And does the actual installatiion from this excluded folder.

This excluded folder is probably the tempfolder (%temp% or c:\users\your_name\appdata\local\temp).

Check menu:Tools => Options => Indexes => Exclude if the temp folder is excluded.
Include it if you want these files to be picked up by Everything.

A Force Rebuild (menu:Tools => Options => Indexes) should bring these files back too.


Another test to see if this theory is correct:
Choose an installation folder for miktex that is on a different drive than your temp folder.
If the files now do show up in Everything, it is because of an excluded folder.
sigmund
Posts: 4
Joined: Fri Aug 21, 2015 2:25 pm

Re: Everything does not discover certain files installed by MiKTeX installer

Post by sigmund »

It is not in an excluded folder (and if that was the case, then renaming the file to something else and then back again would not make it show up in Everything). It has something to do with how this installer works, so I think it is worth digging into.

Force Rebuild does make the files show up, so does copying the complete folder to another location.

I have run the installer a few times (and also the command-line installer), always with the same result of certain files not showing up in Everything (the same files every time).
sigmund
Posts: 4
Joined: Fri Aug 21, 2015 2:25 pm

Re: Everything does not discover certain files installed by MiKTeX installer

Post by sigmund »

I installed MiKTeX on a Windows 10 machines as well (version 21H2, OS Build 19044.2364) and the behavior is the same.

After running the installer there are 734 files in the folder
C:\Users\sigmund\AppData\Local\Programs\MiKTeX\miktex\bin\x64
, but Everything only discovers 315 of them. Renaming one of the undiscovered files makes Everything discover it. "Force Rebuild" makes Everything discover all 734 files in that folder.
therube
Posts: 4610
Joined: Thu Sep 03, 2009 6:48 pm

Re: Everything does not discover certain files installed by MiKTeX installer

Post by therube »

On my end, Win7 (& even though it does not show as supported)
I installed into c:/miktex & set it to NOT download anything further (i.e., missing "items")

I end up with 308 objects within \MiKTeX\miktex\bin\x64.

In my case, I do not have "pdflatex.exe", but I do have "miktex-pdftex.exe" (which does show up in Everything).
(I have not run the program.
Perhaps ? if I were to run the program... ? No change.)


Heh.
Odd that miktex-console.exe brings up a GUI, yet most everything else are actual command-line programs.
miktex-texworks.exe is also a GUI.
NotNull
Posts: 5260
Joined: Wed May 24, 2017 9:22 pm

Re: Everything does not discover certain files installed by MiKTeX installer

Post by NotNull »

Just tested miktex. Had to reconfigure my system, so took a little longer. All for the good cause :)

These "missing" files are hardlinks.
Running out of time, but most regulars on these forums can give you more details.
2023-01-09 22_12_54-C__Temp_miktex.deleteme_prog_ - Everything (1.5a) 1.5.0.1332a (x64).png
2023-01-09 22_12_54-C__Temp_miktex.deleteme_prog_ - Everything (1.5a) 1.5.0.1332a (x64).png (121.56 KiB) Viewed 6677 times
void
Developer
Posts: 15351
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything does not discover certain files installed by MiKTeX installer

Post by void »

Everything 1.4 will not track changes to hard links.
Force a rebuild to update all hard links from Tools -> Options -> Index -> Force Rebuild.

Everything 1.5 will track changes to hard links.
Deleted hard links are not tracked yet.

All hard links are correctly tracked in Everything 1.5 when installing MiKTeX.
Everything 1.5 and Windows Explorer report 732 files found in C:\Users\miktex\AppData\Local\Programs\MiKTeX\miktex\bin\x64

Everything 1.4 only sees 300 files for me.

basic-miktex-22.10-x64
Windows 10 1903 18362.239 x64
Everything 1.4.1.1022
Everything 1.5.0.1333a
sigmund
Posts: 4
Joined: Fri Aug 21, 2015 2:25 pm

Re: Everything does not discover certain files installed by MiKTeX installer

Post by sigmund »

Hard links, indeed! I tried Everything 1.5, looks great :D

Thank you very much for the help.
Post Reply