-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Added a check for Visual C++ Redistributable during install time. #7609
Conversation
I really don't like the idea of forcing people to install additional prerequisites. We have gone for years without this being a problem. |
Okay, reverting back to Microsoft Visual C++ 6.0 compiler in #7611 for FreeType2 which we used before. |
Superseded by #7579. |
I am bringing this back, but ask for the 2010 (instead of 2012) one which is enough now. Fixes #8493. |
@@ -170,6 +170,24 @@ Section "-DotNet" DotNet | |||
done: | |||
SectionEnd | |||
|
|||
Section "-MSVC100" MSVC100 | |||
ClearErrors | |||
ReadRegDWORD $0 HKLM "Software\Microsoft\DevDiv\vc\Servicing\10.0\RuntimeMinimum" "Install" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me the "RuntimeMinimum" key is in "11.0", while "10.0" doesn't have such, so this would give me a false positive.
Also this looks like it would give false positives in general, if the user has VC++ newer than 2010, but not 2010 (just guessing here).
I would suggest looking at #8360, because it checks for the exact same thing - whether VC++ 2010 or later is installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that is possible with NSIS scripts.
Also I can't really test this on Linux so someone else may take over who actually uses Windows. |
as proposed in #7579 (comment) by @obrakmann.
Took https://github.com/UberEnt/NSISInstallers/blob/master/VCRedist11.nsh as a reference.