PrateekKumarSingh / AzViz

⚡ ☁ Azure Visualizer aka 'AzViz' : A #powershell module to automatically generate Azure resource topology diagrams by just typing a PowerShell cmdlet and passing the name of one or more Azure Resource groups
MIT License
602 stars 151 forks source link

Get-DOTExecutable.ps1 do not support Graphviz installed with Scoop #75

Open TheLeftMoose opened 3 years ago

TheLeftMoose commented 3 years ago

Hi great people

I keept getting the error: Export-AzViz : 'GraphViz' is not installed on this system and is a prerequisites for this module to work. Please download and install from here: https://graphviz.org/download/ and re-run this command.

But looking in the Get-DOTExecutable.ps1 it is only looking in specific folders on the filesystem.

Now I have installed graphviz with Scoop on my win 10 and it works like a charm, but is not placed in the specific folders in Get-DOTExecutable.ps1.

Wouldn't it be better for the Get-DOTExecutable.ps1 to first call the command "dot" or what ever i needed, and establish if graphviz is installed, and first after that looking in the specific folders?

In case I am wrong, would it be possible to add the folder C:\Users\\scoop\apps\graphviz\current in the script?

Thanks in advance.