Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Could not install the project on windows 7 #219

Closed
m-ahmadi opened this issue Jun 22, 2019 · 6 comments
Closed

Could not install the project on windows 7 #219

m-ahmadi opened this issue Jun 22, 2019 · 6 comments
Assignees
Labels

Comments

@m-ahmadi
Copy link

m-ahmadi commented Jun 22, 2019

Question
I tried to install the project on windows following the instructions from this page where I got these 2 error message in my PowerShell window.

Here's what I ran:
Set-ExecutionPolicy Bypass

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString('https://wiki.js.org/install.ps1'))

Here are the error messages:
Exception setting "SecurityProtocol": "Cannot convert null to type "System.Net.SecurityProtocolType" due to invalid enumeration values.
Specify one of the following enumeration values and try again.
The possible enumeration values are "Ssl3, Tls"."
At line:1 char:28

  • [Net.ServicePointManager]:: <<<< SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString('https://wiki.js.org/install.ps1'))
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyAssignmentException

Exception calling "DownloadString" with "1" argument(s): "The underlying connection was closed: An unexpected error occurred on a send."
At line:1 char:135

  • [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString <<<< ('https://wiki.js.org/install.ps1'))
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : DotNetMethodException

Host Info:
OS: [Windows 7]
Wiki.js version: [1.0.117]
Database engine: [mongo 4.0.2]

@NGPixel NGPixel transferred this issue from requarks/wiki Jun 22, 2019
@NGPixel
Copy link
Member

NGPixel commented Jun 22, 2019

In an elevated powershell prompt:

# For x64:
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord

# For x86:
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord 

Then try again in a new powershell prompt.

@m-ahmadi
Copy link
Author

I tried your solution and got the same 2 error messages.
still unable to install.

@NGPixel
Copy link
Member

NGPixel commented Jun 22, 2019

Then I suggest downloading the script manually and executing it locally:

https://wiki.js.org/install.ps1

@m-ahmadi
Copy link
Author

I downloaded the script and ran:
powershell -executionpolicy bypass -File .\install.ps1
and
Set-ExecutionPolicy Bypass
powershell -File install.ps1

both in normal and elavated prompts, and here are the error messages:

issue

`Exception setting "SecurityProtocol": "Cannot convert value "tls12, tls11, tls" to type "System.Net.SecurityProtocolType" due to invalid enumeration values. Specify on
e of the following enumeration values and try again. The possible enumeration values are "Ssl3, Tls"."
At C:\install.ps1:1 char:28

  • [Net.ServicePointManager]:: <<<< SecurityProtocol = "tls12, tls11, tls"
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyAssignmentException

Add-Type : Cannot add type. The assembly 'System.IO.Compression.FileSystem' could not be found.
At C:\install.ps1:2 char:9

  • Add-Type <<<< -AssemblyName System.IO.Compression.FileSystem
    • CategoryInfo : ObjectNotFound: (System.IO.Compression.FileSystem:String) [Add-Type], Exception
    • FullyQualifiedErrorId : ASSEMBLY_NOT_FOUND,Microsoft.PowerShell.Commands.AddTypeCommand

Add-Type : Cannot add type. One or more required assemblies are missing.
At C:\install.ps1:2 char:9

  • Add-Type <<<< -AssemblyName System.IO.Compression.FileSystem
    • CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
    • FullyQualifiedErrorId : ASSEMBLY_LOAD_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand

/ / /\ \ () | () ()___
\ / / / | |/ / | | / |
\ /\ /| | <| |
| _

/ / |||__()/ |/
|
/
< INSTALL >

Specify the full path where Wiki.js should be installed (e.g. C:\wiki):
Path: C:\wiki
[1/6] Fetching 7zip helper... OK
[2/6] Fetching latest build... Exception calling "DownloadFile" with "2" argument(s): "The underlying connection was closed: An unexpected error occurred on a send."
At C:\install.ps1:62 char:25

OK
[3/6] Fetching dependencies... Exception calling "DownloadFile" with "2" argument(s): "The underlying connection was closed: An unexpected error occurred on a send."
At C:\install.ps1:66 char:25

OK
[4/6] Extracting app files...
ERROR: The system cannot find the file specified.
C:\wiki\wiki-js.tar.gz

System ERROR:
The system cannot find the file specified.
Error: 7-Zip encountered a fatal error while extracting the files
At C:\install.ps1:46 char:14

  • 2 { throw <<<<  "Error: 7-Zip encountered a fatal error while extracting the files" }
    
    • CategoryInfo : OperationStopped: (Error: 7-Zip en...cting the files:String) [], RuntimeException
    • FullyQualifiedErrorId : Error: 7-Zip encountered a fatal error while extracting the files`

@NGPixel
Copy link
Member

NGPixel commented Jun 23, 2019

It seems like your version of Windows is too old for this script. Try installing the app manually:

@NGPixel NGPixel added the help label Jun 23, 2019
@m-ahmadi
Copy link
Author

It seems like your version of Windows is too old for this script. Try installing the app manually:

My Windows version is: Windows 7 Ultimate Service Pack 1

This solution worked and I was able to install and use the project. Thanks a lot!

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

No branches or pull requests

2 participants