Skip to content

Commit c8ae5ee

Browse files
committed
Added VS2015 installed runtime reporting
1 parent 7d89dfb commit c8ae5ee

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

MTA10/core/CVersionUpdater.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2030,7 +2030,7 @@ void CVersionUpdater::_DialogUpdateResult(void)
20302030
{
20312031
// 'files'/'silent' - Self extracting archive
20322032
SetOnQuitCommand ( "restart" );
2033-
SetOnRestartCommand ( "files", m_JobInfo.strSaveLocation );
2033+
SetOnRestartCommand ( "files", m_JobInfo.strSaveLocation, m_JobInfo.strParameters );
20342034
_PollAnyButton();
20352035
SetPostUpdateConnect( m_strServerSaysHost );
20362036
_ExitGame();
@@ -3177,6 +3177,14 @@ int CVersionUpdater::DoSendDownloadRequestToNextServer ( void )
31773177
}
31783178
}
31793179

3180+
// Get version of installed VS2015 runtime
3181+
SString strVS2015Version = "0";
3182+
SString strVS2015Install = GetSystemRegistryValue ( (uint)HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\DevDiv\\vc\\Servicing\\14.0\\RuntimeMinimum", "Install" );
3183+
if ( strVS2015Install == "\x01" )
3184+
{
3185+
strVS2015Version = GetSystemRegistryValue ( (uint)HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\DevDiv\\vc\\Servicing\\14.0\\RuntimeMinimum", "Version" );
3186+
}
3187+
31803188
// Compile some system stats
31813189
SDxStatus dxStatus;
31823190
g_pGraphics->GetRenderItemManager ()->GetDxStatus ( dxStatus );
@@ -3232,6 +3240,7 @@ int CVersionUpdater::DoSendDownloadRequestToNextServer ( void )
32323240
, *GetApplicationSetting ( "real-os-build" )
32333241
, *GetApplicationSetting ( "locale" ).Replace( "_", "-" )
32343242
, (uint)FileSize( PathJoin( GetSystemSystemPath(), "normaliz.dll" ) )
3243+
, *strVS2015Version
32353244
);
32363245

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

MTA10/loader/Install.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ SString CheckOnRestartCommand ( void )
295295
{
296296
// If extract failed and update file is an exe, try to run it
297297
if ( ExtractExtension ( strFile ).CompareI ( "exe" ) )
298-
ShellExecuteBlocking ( "open", strFile, "-s" );
298+
ShellExecuteBlocking ( "open", strFile, strParameters.SplitRight( "###" ) );
299299
}
300300

301301
// Stop progress bar

0 commit comments

Comments
 (0)