diff --git a/.appveyor.yml b/.appveyor.yml index f6f1c4fe3..ddc32f11a 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -9,6 +9,7 @@ environment: - platform: win32 install: - ps: "& .\\win32\\install-openssl.ps1" +- ps: "& .\\win32\\install-coapp.ps1" cache: - c:\OpenSSL-Win32 - c:\OpenSSL-Win64 diff --git a/win32/install-coapp.ps1 b/win32/install-coapp.ps1 new file mode 100644 index 000000000..0bfb0d291 --- /dev/null +++ b/win32/install-coapp.ps1 @@ -0,0 +1,11 @@ +# Download the CoApp tools. +$msiPath = "$($env:USERPROFILE)\\CoApp.Tools.Powershell.msi" + +(New-Object Net.WebClient).DownloadFile('http://coapp.org/files/CoApp.Tools.Powershell.msi', $msiPath) + +# Install the CoApp tools from the downloaded .msi. +Start-Process -FilePath msiexec -ArgumentList /i, $msiPath, /quiet -Wait + +# Make the tools available for later PS scripts to use. +$env:PSModulePath = $env:PSModulePath + ';C:\\Program Files (x86)\\Outercurve Foundation\\Modules' +Import-Module CoApp