mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-28 03:48:30 +08:00
65df14036c
* [Installer]Ship Windows App SDK as self-contained * Include windows app sdk localization files * fix spellcheck * Upgrade Win3.14 version * Add RunWixToolsOutOfProc to try fixing wix hang * fix spellcheck * Try to get more information from wix build * Remove unneeded flags * Fix spellchecker * Add version check exception for dll with 1.0.0.0
26 lines
1.2 KiB
PowerShell
26 lines
1.2 KiB
PowerShell
$ProgressPreference = 'SilentlyContinue'
|
|
|
|
$WixDownloadUrl = "https://wixtoolset.org/downloads/v3.14.0.6526/wix314.exe"
|
|
$WixBinariesDownloadUrl = "https://wixtoolset.org/downloads/v3.14.0.6526/wix314-binaries.zip"
|
|
|
|
# Download WiX binaries and verify their hash sums
|
|
Invoke-WebRequest -Uri $WixDownloadUrl -OutFile "$($ENV:Temp)\wix314.exe"
|
|
$Hash = (Get-FileHash -Algorithm SHA256 "$($ENV:Temp)\wix314.exe").Hash
|
|
if ($Hash -ne 'FADEB00B1FCCD9BB2FDD6CE28D4C3ECDA339C8906A72586515C14A93CEADB6FE')
|
|
{
|
|
Write-Error "$WixHash"
|
|
throw "wix314.exe has unexpected SHA256 hash: $Hash"
|
|
}
|
|
Invoke-WebRequest -Uri $WixBinariesDownloadUrl -OutFile "$($ENV:Temp)\wix314-binaries.zip"
|
|
$Hash = (Get-FileHash -Algorithm SHA256 "$($ENV:Temp)\wix314-binaries.zip").Hash
|
|
if($Hash -ne '4C89898DF3BCAB13E12F7CA54399C35AD273475AD2CB6284611D00AE2D063C2C')
|
|
{
|
|
throw "wix314-binaries.zip has unexpected SHA256 hash: $Hash"
|
|
}
|
|
|
|
# Install WiX
|
|
Start-Process -Wait -FilePath "$($ENV:Temp)\wix314.exe" -ArgumentList "/install /quiet"
|
|
|
|
# Extract WiX binaries and copy wix.targets to the installed dir
|
|
Expand-Archive -Path "$($ENV:Temp)\wix314-binaries.zip" -Force -DestinationPath "$($ENV:Temp)"
|
|
Copy-Item -Path "$($ENV:Temp)\wix.targets" -Destination "C:\Program Files (x86)\WiX Toolset v3.14\" |