Atrejoe / MarkdownPreview

A Windows Preview handler for Markdown files
MIT License
121 stars 9 forks source link

Installation question #2

Closed devel0 closed 5 years ago

devel0 commented 8 years ago

I tried from a cmd admin prompt but installation fail

2016-07-27  12:24    <DIR>          .
2016-07-27  12:24    <DIR>          ..
2014-11-29  21:10            34,304 Apex.WinForms.dll
2016-06-01  09:34            14,848 MarkdownPreview.dll
2016-06-01  09:34            17,920 MarkdownPreview.pdb
2016-06-01  09:34             3,025 MarkdownPreview.xml
2016-05-27  13:11            54,272 MarkdownSharp.dll
2014-11-30  19:17           172,032 ServerManager.exe
2014-11-30  19:16           384,512 SharpShell.dll
2014-11-30  22:12           347,648 SharpShell.pdb
2014-11-30  22:12           622,788 SharpShell.xml
2014-11-30  19:17           402,432 srm.exe

>**srm install MarkdownPreview.dll**

========================================
SharpShell - Server Registration Manager
========================================

Preparing to install (OS64Bit): MarkDown Preview Handler
**Failed to install and register the server.**

Trying from the GUI

ServerManager.exe -> Load ( choose of MarkdownPreview.dll ) capture

Clicking on the Server -> Register Server (x64) I got follow

capture2

Any hint ? Thanks in advice

Atrejoe commented 8 years ago

This is a SharpShell issue I think. It look like the installation tool (which is maintained by @dwmkerr) does not assert the correct registry keys.

Would you mind addressing it here: https://github.com/dwmkerr/sharpshell/issues ?

devel0 commented 8 years ago

I did it, just now.

Atrejoe commented 8 years ago

Have you tried different settings in the GUI? Like registering & installing the 32 bit version?

devel0 commented 8 years ago

yes, it results the same error.

tbone2k-git commented 8 years ago

It's the same here! Bummer! Tried srm.exe and the ServerManager GUI tool with all options to no avail.

It seems srm.exe gives "Failed to install and register the server." when called with "MarkdownPreview.dll" -codebase. It's also quite unclear with which DLL to run srm.exe, since there are 3 of them in your release download. Tried them all, "MarkdownSharp.dll, SharpShell.dll" seem to pass installation at least, not knowing if this is correct or even necessary.

With the ServerManager GUI tool, I get the "MarkdownPreview.dll" file to appear under "Installation" for x86/x64 in the right pane, but not under "Registration", which I guess is required as well.

Thanks!

Atrejoe commented 8 years ago

The correct dll would be MarkdownPreview.dll, this has a dependency on the other two.

Even on my x64 system, I could only install the x86 version, resulting is:

image

Atrejoe commented 7 years ago

@tbone2k-git did you try both installing and registering using x86?

image

tbone2k-git commented 7 years ago

@Atrejoe Thanks for your response! o) Yes I did. "Install Server" seems to work for both (x86 and x64), but "Register Server" does _not_ work. "Register Server" always fails for both versions with "The specified path is invalid". Any ideas appreciated, would really like to use this gem! o)

JohnTasler commented 7 years ago

My intuition tells me that srm.exe is a 32-bit app. Because of this, it can't load a 64-bit dll.

ewa commented 7 years ago

There seems to still be some issue. I added a comment on #4 .

stanpetit commented 6 years ago

Hi I had trouble installing with same symptoms as described above and at #4,
So I checked the SharpShell.dll versions :
MarkdownPreview uses SharpShell.dll : 2.2.0.0

Get the proper release of ServerManager.zip here

It works for my Windows7, register and install as x86, the preview is lagging a bit but I wouldn't be able to do any better ! So usefull ! @Atrejoe :+1: Thanks a lot !

Hope it helps. Best Stan

Atrejoe commented 6 years ago

That's cool to hear. I just had a fresh Win10 reinstall, so it's time to install this gem again ;).

I may have a go at updating the dependencies and releasing an updated version too.

Thanks for your enthusiastic response @stanpetit !

stanpetit commented 6 years ago

Hi @Atrejoe ! I am definitely enthusiastic about what can make my life easier ! You did that, that's an interesting effort when Markdown is everywhere today ... thanks a lot !

About an updated release :

With that kind of framework, I guess that SharpShell is providing interfaces to implement the event handlers, maybe even a cache mechanism.

Good luck, Best Stan

Atrejoe commented 6 years ago

@stanpetit I have the scrolling issue too, I'm completely unable to scroll (see #3).

I'm about to release a new version, upgrading SharpShell (fingers crossed) and replacing the obsolete MarkDown-interpretation engine with Markdig.

stanpetit commented 6 years ago

@Atrejoe Hi! The quite random behavior of the scrolling makes me think of an over-usage in the md interpreter, because it doesn't just forbid to scroll : it seems just too busy to release the action to the user ... Maybe an event makes it do it over and over. I would seek this way before to look into a SharpShell issue, because SharpShell seems to do it's job ok : the binding to the preview is done, even if the event loop is weird ! Good luck, Best Stan

stanpetit commented 6 years ago

@Atrejoe : last reply was late ! I saw your comment at new version and I am convinced that an event or a state forbids the md interpreter to take a rest when the temporary html file is produced. It should be produced once and cached to to some tmp ...

Atrejoe commented 6 years ago

@stanpetit let's continue that discussion at #3 (but I don't think it's a loading/performance issue, when I add a static counter and display it, it behaves nicely)

Atrejoe commented 5 years ago

Marked as fixed by release 0.6-alpha