paradadf / recaltools

Toolbox for Recalbox
GNU General Public License v2.0
37 stars 40 forks source link

Fails to set version, fails to download with manual inclusion of version... #16

Open RitchieTheBrit opened 6 years ago

RitchieTheBrit commented 6 years ago

Windows 10, up to date, 64bit, confirmed PowerShell is intalled.

Long story short, it doesn't download scraper.exe. I tried to echo scraperVersion, the variable is empty.

I added a SET command on scraperVersion at line 160 and manually inputted the correct version. I echo'd the scraperURL after line 172 and verified it through my browser. The download fails with the following error...

Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure
channel."
At line:1 char:1
+ (New-Object System.Net.WebClient).DownloadFile('https://github.com/ss ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

ERROR: Unable to download the scraper. Exiting...
RitchieTheBrit commented 6 years ago

It should be noted that when the entire ScraperEXE section is commented out, it works fine. Output from a further modified file (shows modification of variable and echos corrected url)...

ERROR: The system was unable to find the specified registry key or value.
Can't get OS's language. English will be used.
scraperVersion=
Downloading sselph scraper , please wait...

scraperURL=https://github.com/sselph/scraper/releases/download//scraper_windows_amd64.zip
Setting manual version...

C:\Users\Ben Robson\Desktop\retropie\roms>set scraperVersion=v1.4.5

C:\Users\Ben Robson\Desktop\retropie\roms>set scraperURL=https://github.com/sselph/scraper/releases/download/v1.4.5/scraper_windows_amd64.zip

C:\Users\Ben Robson\Desktop\retropie\roms>echo off
Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure
channel."
At line:1 char:1
+ (New-Object System.Net.WebClient).DownloadFile('https://github.com/ss ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

ERROR: Unable to download the scraper. Exiting...