Option to treat .nfo as text

Discussion related to "Everything" 1.5 Alpha.
Post Reply
eswul62
Posts: 141
Joined: Wed Jul 31, 2013 6:07 am

Option to treat .nfo as text

Post by eswul62 »

Sorry ... in case I am overlooking an option that is already available.

If not, a suggestion: add an option to treat .nfo as text, so the it can be displayed in the preview.
(e.g. Options > Advanced ?)

Thanks!
NotNull
Posts: 5769
Joined: Wed May 24, 2017 9:22 pm

Re: Option to treat .nfo as text

Post by NotNull »

Will depend on your windows version.

windows 11 shows previews for .nfo files out of the box. Windows 10 doesn't.

To have these previews on Win10 too:

- Start Registry Editor (regedit.exe) as administrator
- Browse to HKEY_CLASSES_ROOT\MSInfoFile in the left pane
- Menu => Edit => New => String Value
- Name =
PerceivedType

- Value =
text

- OK


Now .nfo files will be shown as plain text in the preview pane, in Everything as well as Explorer itself.
tuska
Posts: 1159
Joined: Thu Jul 13, 2017 9:14 am

Re: Option to treat .nfo as text

Post by tuska »

NotNull wrote: Thu Feb 06, 2025 12:52 pm windows 11 shows previews for .nfo files out of the box.
Not for me, and not in Explorer or ‘Everything’.
____________________________________________________________
Windows 11 Pro (x64) Version 24H2 (OS Build 26100.3037) - 2025-01-28
tuska
Posts: 1159
Joined: Thu Jul 13, 2017 9:14 am

Re: Option to treat .nfo as text

Post by tuska »

2eswul62

Hi,
it works as follows:
 
Perform the download (click...)
previewconfig.zip
(63.29 KiB) Downloaded 35 times
  
- Run PreviewConfig.exe (version 1.2.0.0) as administrator (right-click on file > Run as administrator)
- Confirm the UAC prompt (User Account Control)
- Type File types: .nfo and press ENTER
- Change the ‘Preview type’ from ‘None’ to ‘Plain text
- Click on the ‘Apply’ button (information will appear below)
- Click on the ‘X’ to close
- Done!

- In ‘Everything’, e.g. version 1.5.0.1391a (x64), a preview for the .nfo file extension can be displayed immediately.
  
2025-02-06_PreviewConfig_Version_1.2.0.0.png
2025-02-06_PreviewConfig_Version_1.2.0.0.png (156.4 KiB) Viewed 2934 times
 
Reference:
Preview Handler Association Editor:
Note: I was no longer able to download the ‘PreviewHandlerEditor.zip’ file from here.
____________________________________________________________
Windows 11 Pro (x64) Version 24H2 (OS Build 26100.3037) - 2025-01-28
'Everything' 1.5.0.1391a (x64) - "Portable on system drive C:"
eswul62
Posts: 141
Joined: Wed Jul 31, 2013 6:07 am

Re: Option to treat .nfo as text

Post by eswul62 »

Thanks for all the feedbacks. Really appreciated.
Outside Everything, there is no problem to view the .nfo files.
In Opus I hit the preview and contents are displayed.

At times it is a bit inconvenient to switch back and forth between Everything and Opus.

The registry entry regretfully did not work. Not on my 'host' PC not in VM (after rebooting).

Neither the previewhandler thing.

Bad luck.

Anyway, I hope, one day there will be a 'native solution'.

Again thanks!
SnagIt-07022025 150617.png
SnagIt-07022025 150617.png (103.34 KiB) Viewed 2832 times
tuska
Posts: 1159
Joined: Thu Jul 13, 2017 9:14 am

Re: Option to treat .nfo as text

Post by tuska »

2eswul62

Hm, that's strange.

I have set up previews for several file extensions in various Windows and Everything versions
in both Everything and Windows Explorer at the same time.

Which version of Everything or Windows did you use?
horst.epp
Posts: 1493
Joined: Fri Apr 04, 2014 3:24 pm

Re: Option to treat .nfo as text

Post by horst.epp »

For me, .nfo files were not previewed by default in Explorer or Everything.
Running actual Windows 11.

The following works now
I used the PreviewHandlerEditor.exe
and added MSInfoFile to the Windows TXT Previewer
Screenshot - 07.02.2025 , 17_48_46.png
Screenshot - 07.02.2025 , 17_48_46.png (7.7 KiB) Viewed 2794 times
______________________________________________________
Windows 11 Home Version 24H2 (OS Build 26100.3037)
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.1
TC 11.51RC4 x64 / x86
therube
Posts: 5188
Joined: Thu Sep 03, 2009 6:48 pm

Re: Option to treat .nfo as text

Post by therube »

(Just to note, PreviewConfig is also available from:
https://www.winhelponline.com/utils/previewconfig.zip
https://www.winhelponline.com/
& is identical to the above attached file.)
horst.epp
Posts: 1493
Joined: Fri Apr 04, 2014 3:24 pm

Re: Option to treat .nfo as text

Post by horst.epp »

therube wrote: Fri Feb 07, 2025 5:00 pm (Just to note, PreviewConfig is also available from:
https://www.winhelponline.com/utils/previewconfig.zip
https://www.winhelponline.com/
& is identical to the above attached file.)
The PreviewConfig is much limited compared to the PreviewHandlerEditor..
PreviewHandlerEditor-x64.zip
(90.18 KiB) Downloaded 32 times
therube
Posts: 5188
Joined: Thu Sep 03, 2009 6:48 pm

Re: Option to treat .nfo as text

Post by therube »

Is there difference between x86 & x64 version of PreviewHandlerEditor?
horst.epp
Posts: 1493
Joined: Fri Apr 04, 2014 3:24 pm

Re: Option to treat .nfo as text

Post by horst.epp »

therube wrote: Fri Feb 07, 2025 6:20 pm Is there difference between x86 & x64 version of PreviewHandlerEditor?
No, you can also have the x86 version.
eswul62
Posts: 141
Joined: Wed Jul 31, 2013 6:07 am

Re: Option to treat .nfo as text

Post by eswul62 »

NotNull wrote: Thu Feb 06, 2025 12:52 pm Will depend on your windows version.

windows 11 shows previews for .nfo files out of the box. Windows 10 doesn't.

To have these previews on Win10 too:

- Start Registry Editor (regedit.exe) as administrator
- Browse to HKEY_CLASSES_ROOT\MSInfoFile in the left pane
- Menu => Edit => New => String Value
- Name =
PerceivedType

- Value =
text

- OK


Now .nfo files will be shown as plain text in the preview pane, in Everything as well as Explorer itself.
Maybe in Windows 10 (am still running 10) things are is slightly different.

Go to HKEY_CLASSES_ROOT\.nfo
then create 2 value strings:
1. value string Content Type > text/plain
2. value string PerceivedType > text

Now Everything is showing the nfo preview as text.
SnagIt-08022025 065807.png
SnagIt-08022025 065807.png (21.18 KiB) Viewed 2591 times
-

Registry text

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.nfo]
@="MSInfoFile"
"Content Type"="text/plain"
"PerceivedType"="text"
NotNull
Posts: 5769
Joined: Wed May 24, 2017 9:22 pm

Re: Option to treat .nfo as text

Post by NotNull »

If this all fails, you can define a separate preview handler to be used in Everything exclusively:
  • Go to Menu => Tools => Options => Advanced
  • In the Show settings containing: field, type handlers
  • Select preview_handlers
  • Click the Edit button
  • Add Item
  • Filter =
    *.nfo
  • handler =
    {1531d583-8375-4d3f-b5fb-d23bbd169f22}
  • OK, OK, OK
  • Done
BTW: FreeCommander likely uses a viewer, not a Preview Handler. Two entirely different things.
BTW2: I successfully addded te registry keys to Window 10 and after tat .nfo could be previewed in Everything and Explorer.
Post Reply