Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Installing GraphViz/PsGraph #107

Open
oliwex opened this issue Jul 16, 2021 · 2 comments
Open

Error with Installing GraphViz/PsGraph #107

oliwex opened this issue Jul 16, 2021 · 2 comments

Comments

@oliwex
Copy link

oliwex commented Jul 16, 2021

Hi i try to install PsGraph and graphviz and have problem. Try this two sollutions:

#1.First way install GraphViz

Install GraphViz from the Chocolatey repo

Register-PackageSource -Name Chocolatey -ProviderName Chocolatey -Location http://chocolatey.org/api/v2/
Find-Package graphviz | Install-Package -ForceBootstrap

Install PSGraph from the Powershell Gallery

Find-Module PSGraph | Install-Module

Import Module

Import-Module PSGraph

######################################################################################################################
#2.Second way install GraphViz
#idea: PrateekKumarSingh/AzViz#12
#Set TLS 1.3
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Server' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Server' -name 'Enabled' -value '0' -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Server' -name 'DisabledByDefault' -value 1 -PropertyType 'DWord' -Force | Out-Null
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Client' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Client' -name 'Enabled' -value '0' -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Client' -name 'DisabledByDefault' -value 1 -PropertyType 'DWord' -Force | Out-Null

#Change .NET default TLS Version
reg add HKLM\SOFTWARE\Microsoft.NETFramework\v4.0.30319 /v SystemDefaultTlsVersions /t REG_DWORD /d 1 /f /reg:64
reg add HKLM\SOFTWARE\Microsoft.NETFramework\v4.0.30319 /v SystemDefaultTlsVersions /t REG_DWORD /d 1 /f /reg:32

#Install chocolatey
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

#Install GraphViz
choco install graphviz

################################################################################################

To sum up none of this works:

After using the second one i must manually install: C:\Chocolatey\lib\Graphviz.2.47.3\tools\stable_windows_10_cmake_Release_x64_graphviz-install-2.47.3-win64.exe.exe

And then it works.

Could you please update Install-module cmdlet to properly install graphviz and psgraph?

@KevinMarquette
Copy link
Owner

Thank you, I will review the process.

One issue with this project is that it depends on graphviz as an external application and Install-Module does not support the functionality to install it. So the graphviz install will always be its own process.

I was recommending the use of Chocolatey for installing that package, but if it has become that complicated, then I will re-evaluate that guidance.

@oliwex
Copy link
Author

oliwex commented Jul 18, 2021

So maybe install-module function can install chocolatey and the rest, because it can be better for newbie devs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants