requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Could not install the project on windows 7 #219

Closed m-ahmadi closed 5 years ago

m-ahmadi commented 5 years ago

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

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

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

NGPixel commented 5 years ago

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 commented 5 years ago

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

NGPixel commented 5 years ago

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

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

m-ahmadi commented 5 years ago

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

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

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

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

NGPixel commented 5 years ago

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

m-ahmadi commented 5 years ago

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!