Download Wix tools v3.10.2
Security vulnerability with earlier Wix versions - https://www.firegiant.com/blog/2016/1/20/wix-v3.10.2-released/
This commit is contained in:
parent
8179958342
commit
e9d2a37427
1 changed files with 9 additions and 12 deletions
|
@ -15,27 +15,24 @@ $InstallFilesWixobj = "install-files.wixobj"
|
||||||
|
|
||||||
function AcquireWixTools
|
function AcquireWixTools
|
||||||
{
|
{
|
||||||
Write-Host Downloading Wixtools..
|
|
||||||
|
|
||||||
$result = Join-Path $OutputDir WiXTools
|
$result = Join-Path $OutputDir WiXTools
|
||||||
|
|
||||||
if(Test-Path "$result\tools\candle.exe")
|
if(Test-Path "$result\candle.exe")
|
||||||
{
|
{
|
||||||
return Join-Path $result tools
|
return $result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Host Downloading Wixtools..
|
||||||
New-Item $result -type directory -force | Out-Null
|
New-Item $result -type directory -force | Out-Null
|
||||||
Invoke-WebRequest -Uri https://api.nuget.org/packages/wix.3.10.1.nupkg -Method Get -OutFile $result\WixTools.zip
|
# Download Wix version 3.10.2 - https://wix.codeplex.com/releases/view/619491
|
||||||
Expand-Archive $result\WixTools.zip -dest $result\
|
Invoke-WebRequest -Uri https://wix.codeplex.com/downloads/get/1540241 -Method Get -OutFile $result\WixTools.zip
|
||||||
|
|
||||||
|
Write-Host Extracting Wixtools..
|
||||||
|
[System.IO.Compression.ZipFile]::ExtractToDirectory("$result\WixTools.zip", $result)
|
||||||
|
|
||||||
if($LastExitCode -ne 0)
|
if($LastExitCode -ne 0)
|
||||||
{
|
{
|
||||||
$result = ""
|
throw "Unable to download and extract the WixTools."
|
||||||
Write-Host "Unable to download and extract the WixTools."
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result = Join-Path $result tools
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result
|
return $result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue