Skip to content

Commit 03e832a

Browse files
committed
Updated version stats
1 parent 1388ed4 commit 03e832a

File tree

4 files changed

+5
-28
lines changed

4 files changed

+5
-28
lines changed

Client/core/CVersionUpdater.cpp

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3162,14 +3162,7 @@ int CVersionUpdater::DoSendDownloadRequestToNextServer ( void )
31623162
}
31633163
}
31643164

3165-
// Get version of installed VS2015 runtime
3166-
SString strVS2015Version = "0";
3167-
SString strVS2015Install = GetSystemRegistryValue ( (uint)HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\DevDiv\\vc\\Servicing\\14.0\\RuntimeMinimum", "Install" );
3168-
if ( strVS2015Install == "\x01" )
3169-
{
3170-
strVS2015Version = GetSystemRegistryValue ( (uint)HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\DevDiv\\vc\\Servicing\\14.0\\RuntimeMinimum", "Version" );
3171-
}
3172-
3165+
bool bSecureBootEnabled = (GetSystemRegistryValue((uint)HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Control\\SecureBoot\\State", "UEFISecureBootEnabled") == "\x01");
31733166
// Compile some system stats
31743167
SDxStatus dxStatus;
31753168
g_pGraphics->GetRenderItemManager ()->GetDxStatus ( dxStatus );
@@ -3212,16 +3205,16 @@ int CVersionUpdater::DoSendDownloadRequestToNextServer ( void )
32123205
, dxStatus.videoCard.depthBufferFormat
32133206
);
32143207

3215-
SString strSystemStats3 ( "3_%d"
3208+
SString strSystemStats3 ( "3_0" // Was VS2013 runtime installed
32163209
"_%s"
32173210
"_%s"
32183211
"_%d"
3219-
"_%s"
3220-
, GetApplicationSettingInt( "vs2013-runtime-installed" )
3212+
"_0" // Was VS2015 runtime version
3213+
"_%d"
32213214
, *GetApplicationSetting ( "real-os-build" )
32223215
, *GetApplicationSetting ( "locale" ).Replace( "_", "-" )
32233216
, (uint)FileSize( PathJoin( GetSystemSystemPath(), "normaliz.dll" ) )
3224-
, *strVS2015Version
3217+
, bSecureBootEnabled
32253218
);
32263219

32273220
SString strConnectUsage = SString("%i_%i", GetApplicationSettingInt ( "times-connected-editor" ), GetApplicationSettingInt ( "times-connected" ) );

Client/loader/CInstallManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ namespace
3131
SetApplicationSetting ( "is-admin", IsUserAdmin () ? "1" : "0" );
3232
SetApplicationSettingInt ( "last-server-ip", 0 );
3333
SetApplicationSetting ( "real-os-build", SString ( "%d", GetRealOSVersion ().dwBuild ) );
34-
SetApplicationSettingInt ( "vs2013-runtime-installed", IsVS2013RuntimeInstalled () ? 1 : 0 );
3534
}
3635

3736
// Comms between 'Admin' and 'User' processes

Client/loader/Utils.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,20 +1121,6 @@ bool IsWindows10Threshold2OrGreater ( void )
11211121
}
11221122

11231123

1124-
///////////////////////////////////////////////////////////////
1125-
//
1126-
// IsVS2013RuntimeInstalled
1127-
//
1128-
// Only checks registry settings, so install could still be invalid
1129-
//
1130-
///////////////////////////////////////////////////////////////
1131-
bool IsVS2013RuntimeInstalled( void )
1132-
{
1133-
SString strInstall = GetSystemRegistryValue( (uint)HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\DevDiv\\vc\\Servicing\\12.0\\RuntimeMinimum", "Install" );
1134-
return strInstall == "\x01";
1135-
}
1136-
1137-
11381124
///////////////////////////////////////////////////////////////
11391125
//
11401126
// IsUserAdmin

Client/loader/Utils.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ SOSVersionInfo GetRealOSVersion ( void );
7373
bool IsWindows10OrGreater ( void );
7474
bool IsWindows10Threshold2OrGreater ( void );
7575

76-
bool IsVS2013RuntimeInstalled ( void );
7776
BOOL IsUserAdmin ( void );
7877

7978
void UpdateMTAVersionApplicationSetting ( bool bQuiet = false );

0 commit comments

Comments
 (0)