Nisteo Posted February 15, 2023 Share Posted February 15, 2023 This simple script installs all Visual C Redistributables (2005, 2008, 2010, 2012, 2013, 2015+ both 32 and 64 bit) on Windows 10/11 x64 via winget utility. Flag "--force" helps avoid a bug when version checker of winget doesn't see difference between 32 and 64 bit versions of packages. Warning: some special editions of Windows (like Windows 10 Enterprise LTSC) are distributed without winget. #include <String.au3> $STR = "2005.x86,2005.x64,2008.x86,2008.x64,2010.x86,2010.x64,2012.x86,2012.x64,2013.x86,2013.x64,2015+.x86,2015+.x64" $aVersion = _StringExplode($STR, ",") For $i = 0 To UBound($aVersion) - 1 Sleep(250) RunWait("winget install Microsoft.VCRedist." & $aVersion[$i] & " --force") Next Skeletor 1 Link to comment Share on other sites More sharing options...
kut0 Posted February 16, 2023 Share Posted February 16, 2023 thank you very much for your tips Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now