dependency-analyser icon indicating copy to clipboard operation
dependency-analyser copied to clipboard

Break dependency upon WinGraphviz

Open GoogleCodeExporter opened this issue 9 years ago • 7 comments

WinGraphviz is great, but it increases the barrier to entry for this tool.

See this question on StackOverflow that details various options.

Original issue reported on code.google.com by drewnoakes on 22 Apr 2011 at 8:55

GoogleCodeExporter avatar Oct 13 '15 20:10 GoogleCodeExporter

Maybe the barrier for entry is the lack of an installer? If the GraphViz COM DLL could be embedded and automatically unpacked/used, that could solve the issue... Registration-Free COM Interop - https://msdn.microsoft.com/en-us/library/fh1h056h(v=vs.110).aspx

jeremysimmons avatar Oct 15 '15 19:10 jeremysimmons

Another possibility would be bootstrapping the GraphVIZ DLL.

  1. upload the DLL to the git repository
  2. add code to download the DLL via cdn.rawgit.com to the machine if it's missing

On second though. This is a bad idea. The DLL is 340 zipped. Adding as an assembly resource and uncompressing/loading should be more than sufficient.

jeremysimmons avatar Oct 15 '15 19:10 jeremysimmons

Avoiding separate installation of GraphViz would be great. Can it just be included in the release zip, and picked up from the local directory somehow at runtime, without needing any registry tweaks or other admin-rights-requiring activities.

On 15 October 2015 at 20:28, Jeremy Simmons [email protected] wrote:

Another possibility would be bootstrapping the GraphVIZ DLL.

  1. upload the DLL to the git repository
  2. add code to download the DLL via cdn.rawgit.com to the machine if it's missing

On second though. This is a bad idea. The DLL is 340 zipped. Adding as an assembly resource and uncompressing/loading should be more than sufficient.

— Reply to this email directly or view it on GitHub https://github.com/drewnoakes/dependency-analyser/issues/2#issuecomment-148497370 .

drewnoakes avatar Oct 15 '15 20:10 drewnoakes

Picking up the com registrations is what registry free com is all about. Good set of resources on building the manifest definitions http://stackoverflow.com/questions/465882/generate-manifest-files-for-registration-free-com

jeremysimmons avatar Oct 16 '15 04:10 jeremysimmons

Another option is to migrate to WPF and use Graph#.

Graph# looks pretty dead though. There's a port here with one author's modifications:

https://github.com/andypelzer/GraphSharp

drewnoakes avatar Oct 17 '15 20:10 drewnoakes

an option worth considering for sure!

any downsides?

Sent from my iPhone

On Oct 17, 2015, at 2:44 PM, Drew Noakes [email protected] wrote:

Another option is to migrate to WPF and use Graph#.

— Reply to this email directly or view it on GitHub.

jeremysimmons avatar Oct 18 '15 03:10 jeremysimmons

Another option: https://github.com/microsoft/automatic-graph-layout

drewnoakes avatar Jun 14 '21 09:06 drewnoakes

This has been completed.

drewnoakes avatar Dec 03 '22 04:12 drewnoakes