Skip to content

Commit

Permalink
Added script for downloading VC files
Browse files Browse the repository at this point in the history
  • Loading branch information
hajduakos committed Sep 13, 2017
1 parent e6a45e6 commit 038ab0a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/msvcp110.dll
/msvcr110.dll
/vcomp110.dll
21 changes: 21 additions & 0 deletions lib/Download-VCredist.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
$z3release = "z3-4.5.0"
$z3version = "z3-4.5.0-x64-win"

$currentPath = (Resolve-Path .\).Path

$clnt = new-object System.Net.WebClient
$url = "https://github.com/Z3Prover/z3/releases/download/$z3release/$z3version.zip"
$zipFilePath = "$currentPath\$z3version.zip"
$clnt.DownloadFile($url, $zipFilePath)

$shellApp = new-object -com shell.application
$zipFile = $shellApp.namespace($zipFilePath)
$dest = $shellApp.namespace($currentPath)
$dest.Copyhere($zipFile.items())

Copy-Item "$currentPath\$z3version\bin\msvcp110.dll" -Destination $currentPath
Copy-Item "$currentPath\$z3version\bin\msvcr110.dll" -Destination $currentPath
Copy-Item "$currentPath\$z3version\bin\vcomp110.dll" -Destination $currentPath

Remove-Item $zipFilePath
Remove-Item "$currentPath\$z3version" -Recurse

0 comments on commit 038ab0a

Please sign in to comment.