From 17bdf61dc4da11611749337b1c38c4a7df373fbd Mon Sep 17 00:00:00 2001 From: Pavel Andreev Date: Sat, 15 Apr 2023 20:00:44 +0500 Subject: [PATCH 1/2] Update for VC++ 2022 --- .../Install-MicrosoftVisualC++x86x64.wsf | 198 +++++------------- 1 file changed, 55 insertions(+), 143 deletions(-) diff --git a/Tools/Install-X86-X64-C++/Install-MicrosoftVisualC++x86x64.wsf b/Tools/Install-X86-X64-C++/Install-MicrosoftVisualC++x86x64.wsf index a4db35d..21b485c 100644 --- a/Tools/Install-X86-X64-C++/Install-MicrosoftVisualC++x86x64.wsf +++ b/Tools/Install-X86-X64-C++/Install-MicrosoftVisualC++x86x64.wsf @@ -1,248 +1,160 @@ - \ No newline at end of file + From b8882257e95371cd5389668855000aae57e755ac Mon Sep 17 00:00:00 2001 From: Pavel Andreev Date: Sat, 30 Mar 2024 17:14:59 +0500 Subject: [PATCH 2/2] Remove Visual C++ 2012 --- .gitignore | 3 ++ .../Install-MicrosoftVisualC++x86x64.wsf | 38 +------------------ 2 files changed, 4 insertions(+), 37 deletions(-) diff --git a/.gitignore b/.gitignore index 96374c4..1d79acf 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,9 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk +# Visual Studio +.vs/ + # ========================= # Operating System Files # ========================= diff --git a/Tools/Install-X86-X64-C++/Install-MicrosoftVisualC++x86x64.wsf b/Tools/Install-X86-X64-C++/Install-MicrosoftVisualC++x86x64.wsf index 21b485c..0a8e94d 100644 --- a/Tools/Install-X86-X64-C++/Install-MicrosoftVisualC++x86x64.wsf +++ b/Tools/Install-X86-X64-C++/Install-MicrosoftVisualC++x86x64.wsf @@ -14,7 +14,7 @@ '// Version: 2.2 - November 14, 2015 - Mikael Nystrom '// Version: 2.3 - September 27, 2017 - Mikael Nystrom '// Version: 2.4 - April 15, 2023 - Pavel Andreev -'// - Removed C++ 2005-2010 +'// - Removed C++ 2005-2012 '// - Added C++ 2015, 2017, 2019, 2022 (Universal package) '// '// This script is provided "AS IS" with no warranties, confers no rights and is not supported by the authors. @@ -35,8 +35,6 @@ Function ZTIProcess() oLogging.CreateEntry oUtility.ScriptName & ": Starting installation", LogTypeInfo - Dim sSetupFile2012x86 - Dim sSetupFile2012x64 Dim sSetupFile2013x86 Dim sSetupFile2013x64 Dim sSetupFile2022x86 @@ -47,8 +45,6 @@ Function ZTIProcess() '// Disable Zone Checks oEnv("SEE_MASK_NOZONECHECKS") = 1 - sSetupFile2012x86 = oUtility.ScriptDir & "\Source\VS2012\vcredist_x86.exe" - sSetupFile2012x64 = oUtility.ScriptDir & "\Source\VS2012\vcredist_x64.exe" sSetupFile2013x86 = oUtility.ScriptDir & "\Source\VS2013\vcredist_x86.exe" sSetupFile2013x64 = oUtility.ScriptDir & "\Source\VS2013\vcredist_x64.exe" sSetupFile2022x86 = oUtility.ScriptDir & "\Source\VS2022\vc_redist.x86.exe" @@ -56,11 +52,6 @@ Function ZTIProcess() sArguments = "/Q" '// Checking x86 distributives - If not oFSO.FileExists(sSetupFile2012x86) then - oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2012x86 & " was not found, unable to install", LogTypeError - ZTIProcess = Failure - Exit Function - End if If not oFSO.FileExists(sSetupFile2013x86) then oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2013x86 & " was not found, unable to install", LogTypeError ZTIProcess = Failure @@ -72,17 +63,6 @@ Function ZTIProcess() Exit Function End if - '// Install 2012 x86 - oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2012x86, LogTypeInfo - iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2012x86 & """ " & sArguments) - if (iRetVal = 0) or (iRetVal = 3010) then - ZTIProcess = Success - Else - ZTIProcess = Failure - End If - oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo - oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo - '// Install 2013 x86 oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2013x86, LogTypeInfo iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2013x86 & """ " & sArguments) @@ -109,11 +89,6 @@ Function ZTIProcess() If oEnvironment.Item("Architecture") = "X64" then '// Checking x86 distributives - If not oFSO.FileExists(sSetupFile2012x64) then - oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2012x64 & " was not found, unable to install", LogTypeError - ZTIProcess = Failure - Exit Function - End if If not oFSO.FileExists(sSetupFile2013x64) then oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2013x64 & " was not found, unable to install", LogTypeError ZTIProcess = Failure @@ -125,17 +100,6 @@ Function ZTIProcess() Exit Function End if - '// Install 2012 x64 - oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2012x64, LogTypeInfo - iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2012x64 & """ " & sArguments) - if (iRetVal = 0) or (iRetVal = 3010) then - ZTIProcess = Success - Else - ZTIProcess = Failure - End If - oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo - oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo - '// Install 2013 x64 oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2013x64, LogTypeInfo iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2013x64 & """ " & sArguments)