MoI discussion forum
MoI discussion forum

Full Version: MOI 5. snatching commands from Mixcraft?

Show messages: All  1-4  5-6

From: RIL
26 Apr 2022   [#5] In reply to [#4]
>> Michael wrote: What happens if you use the Windows Run dialog (Win+R keyboard shortcut) and put in the PDF file name with full path in it, does it launch Edge or MoI?

That works as normal. Edge is opening the PDF as it should.

>> Michael wrote: If only Mixcraft is launching MoI and not any OS shell functions then that would point to a bug in Mixcraft where it must have some custom code manually going through the registry instead of calling the system ShellExecute() function like it ought to.

After trying your suggestions, I'll post on Mixcraft's forum with a link back to this trhead and ask them to have a closer look at what's really happening behind that Help menu command.

>> Michael wrote: If you go in regedit to HKEY_CLASSES_ROOT\.pdf there should be a sub-key "OpenWithProgids" that then contains an entry "MoI.PDFFile.1", if you delete the "MoI.PDFFile.1" maybe that will make Mixcraft not try to open MoI for handling .pdf files.

I deleted that key, but the problem remained. But then I found that the parent folder to those keys (".pdf") had the same setting! (the "MoI.PDFFile.1" value). So I deleted that value as well, and there it was! Now Mixcraft Help file opens with Edge again as before. Thank you for your assistance!

Fig 1. The Key Value is deleted in the picture below, and that solved the problem:

Image Attachments:
2022-04-26 - 458.png 


From: Michael Gibson
26 Apr 2022   [#6] In reply to [#5]
Hi Rolf, that's great I'm glad it is solved.

As best as I can tell it seems to be a bug in Mixcraft where it must be going through
the registry with its own custom code to find a program to launch under the .pdf file
type.

That's not advisable because it can end up launching a program other than the one
that the OS shell has set as the default handler.

The solution is to call the OS ShellExecute() function instead, passing in the path to
the help .pdf file.

- Michael

Show messages: All  1-4  5-6