Include Windows 10 Universal C Runtime in the installer#250
Conversation
Current coverage is 33.80% (diff: 100%)@@ master #250 diff @@
==========================================
Files 43 43
Lines 5457 5457
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 1845 1845
Misses 3612 3612
Partials 0 0
|
scowalt
left a comment
There was a problem hiding this comment.
Ideally, I think we would pull the redistributable from a server upon making the installer rather than checking a binary into source control. However, I think that is fine too put off as a future improvement.
| StrCmp \$1 1 installed | ||
| \${EndIf} | ||
|
|
||
| ; If not installed run the installer |
There was a problem hiding this comment.
Should we also run the x64 installer on 64-bit systems? Using the vcredist2015 chocolatey package as reference, it looks like we may want to install both x86 and x64 on 64-bit systems
There was a problem hiding this comment.
As far as I understand it, we use the 32 bit Python and thus only require the x86 version of the VC runtime.
There was a problem hiding this comment.
As for pulling it from a remote server, I considered it but thought it would cause less problems to just include the binary, less chance of it not working :-)
|
This looks fine to me, have you guys finished all the testing you want to do? |
|
Having trouble building the binary for this. If @beardypig could share a the installer built with this script I will test it in the Chocolatey environment. |
|
Sure I'll build one in a bit a link to it in the top post. |
|
@scowalt I have added a link to a build of the installer in the first post :) |
|
OK @scowalt, maybe the x64 installer does need to be included as well... I will try some stuff on the chocolatey test env :) |
|
Yeah, sounds like you also need some Windows update for Server 2012 and Windows 8.1 for it to work... |
|
@scowalt I'd go with adding vcredist2015 as a dependency to the Chocolatey package. This could turn in to a bit of rabbit warren, with Windows updates, etc. It might just be better to tell people they need to install the VC 2015 Runtimes and make sure all the Windows updates are installed. What about if we give a warning yes/no dialog before the installer if the VC2015 runtimes are not installed? Something like: |
|
I'll add I'm fine with a pre-install warning. Maybe a link to the runtime if we're not going to bundle it? Also, listing it as a requirement in the README would be nice. I would just confirm that whatever warning you add will still allow the installation to run silently. I'm running the installer silently using the command |
|
@scott Walters --
I have seen this "failed to create process" error on streamlink on Windows -- the issue relates to where the Python install directory is located. If it has spaces in the path you will see this error, for some reason.
…________________________________
From: Scott Walters <[email protected]>
Sent: Tuesday, December 6, 2016 3:59:45 AM
To: streamlink/streamlink
Subject: Re: [streamlink/streamlink] Include Visual Studio 2015 Runtime in the installer (#250)
Looks like I still get the same error after running the executable and restarting the machine:
[image]<https://cloud.githubusercontent.com/assets/1100550/20919008/93ef59c2-bb4e-11e6-97b5-1da67f053d2b.png>
[image]<https://cloud.githubusercontent.com/assets/1100550/20918996/8888e6c0-bb4e-11e6-96d0-20a8210eac76.png>
My only thought is that the vcredist2015 chocolatey package seems to install some windows updates that could be important in getting everything to run.
Either way, I'm not sure how much you want to block on this. I could always add vcredist2015 to the dependencies in the Chocolatey package. This would potentially cause us to contribute to the VC++ wall of doom, but at least we'll know it's working for everyone:
[wall of doom]<https://cloud.githubusercontent.com/assets/1100550/20919144/2dbe8258-bb4f-11e6-9a7f-e58af2bab209.png>
-
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#250 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AESJ1r4qsxojQORR60fEL-A5hvKtTVOTks5rFSQBgaJpZM4LEROh>.
|
|
I feel pretty dumb as I have updated the installer script, and also the docs to say that XP is not supported 😃 |
|
Wouldn't it be better to use |
|
@bastimeyer didn't work when I tried it... |
|
Must have been a temporal anomaly, cos it works fine now .... :| |
|
@scowalt I've updated the installer in the top post, and I tested it on the Chocolatey vagrant machine and it worked as expected. Do you want to give it a go. I think this is good to merge unless anyone has any objections :-) |
|
@beardypig I'm fine with it, I'll leave it unmerged for a bit in case there are any other comments, if not I'll merge it tonight. |
|
Thanks @beardypig! |
|
@beardypig Is Visual Studio 2015 Runtime included in the nightly builds? |
|
Thanks for getting this done @beardypig! This will get picked up in Chocolatey when the executable gets built for the next release (0.1.1 or 0.2.0 😄). Until then, I have a Chocolatey package in the moderation queue that adds |
|
@thinkpad4 sure is, did you have a problem with it? |
|
@beardypig Nope just making sure. Thanks |
|
@Rosadintv for your portable installer, you might need to add the UCRT DLLs (if you don't already, I'm not sure if you do), so that users don't run in to the same problem when they don't have KB2999226 (Windows 10 Universal C Runtime) installed. |
|
@beardypig If i use your "streamlink\python" folder is right? (I see it contains api-ms-xx dll's) |
|
@Rosadintv there are two zip files in the repo that you can use, an x86 one and an x64 one, it might be cleaner for you to use those :-) |
|
@beardypig I will use the x86 one, thanks ❤️ |



As pointed out by @scowalt in #246, the Visual Studio 2015 Runtimes are required for some versions Windows. I have modified the installer to install the VC runtimes if they aren't already installed. The Python Embedded Distribution page also points out that the runtimes are not included and should be installed by the installer. This is possibly an oversight of
pynsist, but we can fix it ourselves :)I tested this out of a vanilla Windows Vista 32bit VM, it would be good if @scowalt could test it out on the Chocolatey test environment and if some other people could test it out :)
I have build a version of the installer that people can use to test this out: streamlink-0.1.0-vcredist-7a50314.exe.