Preview .msg files "No Preview Available"

Things you’d like to miss in the future...
Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Preview .msg files "No Preview Available"

Post by Horst »

The text get("previewhandler"); requires an open preview.
For me msg preview works now
but you must add it as user defined preview handler in XY.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Preview .msg files "No Preview Available"

Post by admin »

You never replied to this post: viewtopic.php?p=190444#p190444

You can still download and try version v22.10.0206 here: viewtopic.php?p=190436#p190436

jreynolds
Posts: 74
Joined: 09 Nov 2009 19:48

Re: Preview .msg files "No Preview Available"

Post by jreynolds »

I'm on 22.20.0100 now, and no joy on previewing .msg files.
Anything I can help provide for troubleshooting?

Best,
-J

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Preview .msg files "No Preview Available"

Post by admin »

If you don't react to my attempts to help I'm losing my interest, so bye and good luck.

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Preview .msg files "No Preview Available"

Post by Horst »

Lets try together
As msg preview is blocked in the current version
you have to define your preview handler under User-defined Preview Handlers
First make shure there is a functional preview handler by testing with Windows Explorer.
If there is none, use the attached tool to assign msg to your existing preview handler and test again in Explorer.
PreviewHandlerEditor-x64.zip
(90.18 KiB) Downloaded 78 times
Then search for the GUId of this preview handler in the registry and add its Id from the Default entry in XY config.
The following is an example how it looks for the msg entry in the registry
Screenshot - 03.09.2021 , 18_42_52.png
Screenshot - 03.09.2021 , 18_42_52.png (13.97 KiB) Viewed 1650 times
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

jreynolds
Posts: 74
Joined: 09 Nov 2009 19:48

Re: Preview .msg files "No Preview Available"

Post by jreynolds »

admin wrote: 03 Sep 2021 18:46 If you don't react to my attempts to help I'm losing my interest, so bye and good luck.
I'm really sorry, I didn't mean to offend. I'm trying to follow the topics and forum posts. I'm not always sure what's directed to me vs. Horst.
I'll go back and re-read.

jreynolds
Posts: 74
Joined: 09 Nov 2009 19:48

Re: Preview .msg files "No Preview Available"

Post by jreynolds »

Hello,

I have tried a great number of permutations and combinations based off previous posts. I don't have anything positive to report unfortunately.

I don't have a shellex entry in the registry for the path described. However, previewing .msg files works fine in both Windows Explorer and Directory Opus.

I then proceeded to try each of the GUIDs (a few are repeated) I found below from attempting to search for preview handlers. The testing is quite monotonous mainly because I don't know if I change something in the 64 bit handler area, if I have to close and restart the app or not... so I did just to be on the safe side. For each test I added the GUID, ensured it was checked, and then toggled the states of the 64 bit preview and bitness flags. The Mime preview handler looked close like it was going to do something, but ultimately didn't.

Using the built in Office format check box doesn't work which was stated a while back, so I created a new user-defined preview handler based on an older forum post. Still nothing.

So - that's where I'm at. Here is the list of the various GUIDs I tried.

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PreviewHandlers
=====================

Microsoft Windows MAPI Preview Handler
{53BEDF0B-4E5B-4183-8DC9-B844344FA104}
Results:   (nothing, no matter what settings)

Microsoft Windows Mail Mime Preview Handler
{92DBAD9F-5025-49B0-9078-2D78F935E341}

Microsoft Windows Mail Mime Preview Handler
{B9815375-5D7F-4CE2-9245-C9D4DA436930}
When set to Use 64 bit preview handlers, I get a white screen, shows "From: To: Subject:" but nothing else populated in the window
If I turn 64 bit preview off, goes back to blank black preview window.

ShellExView (64 bit)
=====================

MAPI Mail Previewer - MAPI/Attachment, .msg, MAPI/Attachment
{53BEDF0B-4E5B-4183-8DC9-B844344FA104}

Microsoft Office Outlook - Windows Explorer Shell Folder and Previewer
{138508BC-1E03-49EA-9C8F-EA9E1D05D65D}


ShellExView (32 bit)
=====================

MAPI Mail Previewer
{53BEDF0B-4E5B-4183-8DC9-B844344FA104}

Microsoft Office Outlook - Windows Explorer Shell Folder and Previewer
{138508BC-1E03-49EA-9C8F-EA9E1D05D65D}

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Preview .msg files "No Preview Available"

Post by admin »

jreynolds wrote: 03 Sep 2021 20:18
admin wrote: 03 Sep 2021 18:46 If you don't react to my attempts to help I'm losing my interest, so bye and good luck.
I'm really sorry, I didn't mean to offend. I'm trying to follow the topics and forum posts. I'm not always sure what's directed to me vs. Horst.
I'll go back and re-read.
Version v22.10.0206 was made especially for you: viewtopic.php?p=190436#p190436

jreynolds
Posts: 74
Joined: 09 Nov 2009 19:48

Re: Preview .msg files "No Preview Available"

Post by jreynolds »

admin wrote: 04 Sep 2021 11:26
jreynolds wrote: 03 Sep 2021 20:18
admin wrote: 03 Sep 2021 18:46 If you don't react to my attempts to help I'm losing my interest, so bye and good luck.
I'm really sorry, I didn't mean to offend. I'm trying to follow the topics and forum posts. I'm not always sure what's directed to me vs. Horst.
I'll go back and re-read.
Version v22.10.0206 was made especially for you: viewtopic.php?p=190436#p190436
I'm back at work today, and am testing. I installed the beta 22.10.0206 over the (more recent version). I have tried a number of things to no avail. However, I am wondering what you want me to test in particular - i.e. should I be using the Office Files .msg preview format check box, or should I be adding my own user-defined preview format and testing that? If the latter, what GUID would be appropriate?

Also - in the Shell integration areas, I'm assuming the, "Use 64 bit preview handlers for preview" and "Fall back to preview handlers of the other bitness" should not be checked?

Thank you,
--J

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Preview .msg files "No Preview Available"

Post by admin »

v22.10.0206 is the only existing version where the 64-bit process can be used to preview MSG files, so you should tick "Use 64 bit preview handlers for preview" in this version. It does not work here but since your system seems to be different I would just like to see what happens when you try.

jreynolds
Posts: 74
Joined: 09 Nov 2009 19:48

Re: Preview .msg files "No Preview Available"

Post by jreynolds »

admin wrote: 07 Sep 2021 19:33 v22.10.0206 is the only existing version where the 64-bit process can be used to preview MSG files, so you should tick "Use 64 bit preview handlers for preview" in this version. It does not work here but since your system seems to be different I would just like to see what happens when you try.
Good news!

This works in the v22.10.0206 version:

Checked:
Other => Shell integration => 64 bit windows =>
- Use 64-bit preview handlers for preview
- Fall back to preview handlers of the other bitness
note that the fall back being checked does not seem to matter.

Changed:
Preview => Previewed Formats => Categories =>
- Unselected .eml and .msg in the Office and Text areas.
- Added a new User-defined Preview handler of "msg>{53BEDF0B-4E5B-4183-8DC9-B844344FA104}"

The preview matches what I see in Windows Explorer.
I should add that these same settings did not work in the most recent production version, as expected.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Preview .msg files "No Preview Available"

Post by admin »

Cool!

I will add a way to force the bitness of a UDPH, probably like this:
msg>{53BEDF0B-4E5B-4183-8DC9-B844344FA104}>64

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Preview .msg files "No Preview Available"

Post by highend »

The new feature to be able to state which bitness a preview handler has, is imho a bit fishy...

msg>{37742665-fa1f-4da6-9c29-59fdfba13fd7}>64

Leads to:
1.png
1.png (7.29 KiB) Viewed 1534 times

Code: Select all

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: The object's type must be __ComObject or derived from __ComObject.
Parameter name: o
   at System.Runtime.InteropServices.Marshal.FinalReleaseComObject(Object o)
   at PreviewHandlers.PreviewHandlerHost.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at Preview64.Form1.DelegateMethodQuit()


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3928.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
XY64
    Assembly Version: 1.0.7911.23526
    Win32 Version: 1.0.0.24
    CodeBase: file:///D:/Tools/XYplorer/XY64.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3928.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3928.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3928.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
msgpreview
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Tools/@Preview%20handlers/MSGPreviewer64/msgpreview.DLL
----------------------------------------
SharpShell
    Assembly Version: 2.2.1.0
    Win32 Version: 2.2.1.0
    CodeBase: file:///D:/Tools/@Preview%20handlers/MSGPreviewer64/SharpShell.DLL
----------------------------------------
System.ComponentModel.Composition
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
But this is definitely a 64-bit handler^^
2.png
2.png (15.85 KiB) Viewed 1534 times
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Preview .msg files "No Preview Available"

Post by admin »

@jreynolds
admin wrote: 07 Sep 2021 21:09 Cool!

I will add a way to force the bitness of a UDPH, probably like this:
msg>{53BEDF0B-4E5B-4183-8DC9-B844344FA104}>64
Okay, I made it like this in the new beta (v22.20.0201 - 2021-09-09 12:00). Please try.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Preview .msg files "No Preview Available"

Post by admin »

highend wrote: 09 Sep 2021 12:29 The new feature to be able to state which bitness a preview handler has, is imho a bit fishy...

msg>{37742665-fa1f-4da6-9c29-59fdfba13fd7}>64

...
1) Does it work without the ">64"?

2) Let's wait what jreynolds reports.

Post Reply