-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
Check VCRT and show installed/shipped version #4847
Conversation
.CI/chatterino-installer.iss
Outdated
@@ -56,7 +65,8 @@ SetupWindowTitle=Setup - %1 (Nightly) | |||
#endif | |||
|
|||
[Tasks] | |||
Name: "vcredist"; Description: "Install the required Visual C++ 2015/2017/2019/2022 Redistributable"; | |||
; Only show this option if the VCRT can be updated. | |||
Name: "vcredist"; Description: "Install the required Visual C++ 2022 Redistributable ({code:VCRTDescription})"; Check: NeedsNewVCRT(); |
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.
maybe instead of hardcoding Visual C++ 2022 Redistributable
we could use VersionInfo.Product here?
it resolves to Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.36.32532
, would save some maintenance in future
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.
Thank you! I was actually looking for something like this.
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.
Hmm, VersionInfo.Product
doesn't seem to return anything for me (even though it's shown when stringifying the version info), so I used VersionInfo.FileDescription
.
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.
both Product and FileDescription have same content on all versions i had on hand, so should be fine
Description
For testing, you can change
Bld
to a lower number inHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64
and/or rename it (orVersion
) to simulate the case where it's not installed.Aside: The installer currently doesn't have the option to specify the installation directory. I'm not sure if that's intentional.
DisableDirPage=false
can be added to show the page.