Skip to content

Commit

Permalink
Revert "Revert "New C++ redistributable runtime for 15.9""
Browse files Browse the repository at this point in the history
pleroy authored Dec 7, 2018
1 parent 544c240 commit 57c3e75
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ksp_plugin_adapter/loader.cs
Original file line number Diff line number Diff line change
@@ -79,19 +79,20 @@ public static string LoadPrincipiaDllAndInitGoogleLogging() {

private static bool IsVCRedistInstalled() {
// NOTE(phl): This GUID is specific to:
// Microsoft Visual C++ 2017 Redistributable (x64) - 14.11.25325
// Microsoft Visual C++ 2017 Redistributable (x64) - 14.16.27012
// It will need to be updated when new versions of Visual C++
// Redistributable are released by Microsoft.
RegistryKey key = Registry.LocalMachine.OpenSubKey(
@"Software\Classes\Installer\Dependencies\,,amd64,14.0,bundle",
@"Software\Classes\Installer\Dependencies\" +
@"VC,redist.x64,amd64,14.16,bundle",
writable : false);
if (key == null) {
return false;
} else {
string version = (string)key.GetValue("Version");
// NOTE(phl): This string needs to be updated when new versions of Visual
// C++ Redistributable are released by Microsoft.
return version != null && version == "14.11.25325.0";
return version != null && version == "14.16.27012.6";
}
}

0 comments on commit 57c3e75

Please sign in to comment.