Install all C++ runtimes

//Install all C++ runtimes
Install all C++ runtimes 2015-09-01T19:30:15+00:00

The Toolkit Forums Deployment Scripts Install all C++ runtimes

  • Author
    Posts
  • Alan
    Participant
    Post count: 14
    #591 |

    not a very hard script but maybe it will save someone sometime.

    If ($psArchitecture -eq “x64”) { Execute-process -path “$dirfiles\2005\vcredist_X64.exe” -parameters ‘/Q’
    Execute-process -path “$dirfiles\2008\vcredist_X64.exe” -parameters ‘/q /norestart’
    Execute-process -path “$dirfiles\2010\vcredist_X64.exe” -parameters ‘/q /norestart’
    Execute-process -path “$dirfiles\2012\vcredist_X64.exe” -parameters ‘/q /norestart’
    Execute-process -path “$dirfiles\2013\vcredist_X64.exe” -parameters ‘/q /norestart’}

    ElseIf ($psArchitecture -eq “x86”) { Execute-process -path “$dirfiles\2005\vcredist_X86.exe” -parameters ‘/Q’
    Execute-process -path “$dirfiles\2008\vcredist_X86.exe” -parameters ‘/q /norestart’
    Execute-process -path “$dirfiles\2010\vcredist_X86.exe” -parameters ‘/q /norestart’
    Execute-process -path “$dirfiles\2012\vcredist_X86.exe” -parameters ‘/q /norestart’
    Execute-process -path “$dirfiles\2013\vcredist_X86.exe” -parameters ‘/q /norestart’}

You must be logged in to reply to this topic.