[Windows] wdk: remove iso installer (#4232)

This commit is contained in:
Aleksandr Chebotov
2021-10-06 18:47:15 +03:00
committed by GitHub
parent 3264ac55cf
commit 9ff76f18b9
2 changed files with 4 additions and 20 deletions

View File

@@ -6,7 +6,7 @@
# Requires Windows SDK with the same version number as the WDK
if (Test-IsWin19)
{
$winSdkUrl = "https://go.microsoft.com/fwlink/?linkid=2166460"
$winSdkUrl = "https://go.microsoft.com/fwlink/?linkid=2173743"
$wdkUrl = "https://go.microsoft.com/fwlink/?linkid=2166289"
$FilePath = "C:\Program Files (x86)\Windows Kits\10\Vsix\VS2019\WDK.vsix"
$VSver = "2019"
@@ -25,25 +25,8 @@ else
$argumentList = ("/features", "+", "/quiet")
if (Test-IsWin19)
{
# Download WDK ISO file
$isoPath = Start-DownloadWithRetry -Url $winSdkUrl -Name winsdk.iso
$diskImage = Mount-DiskImage -ImagePath $isoPath
$driveLetter = ($diskImage | Get-Volume).DriveLetter
$sdkPath = Join-Path "${driveLetter}:\" "winsdksetup.exe"
# `winsdksetup.exe /features + /quiet` installs all features without showing the GUI
Install-Binary -FilePath $sdkPath -ArgumentList $argumentList
# Dismount ISO
Dismount-DiskImage -DevicePath $diskImage.DevicePath | Out-Null
}
else
{
# `winsdksetup.exe /features + /quiet` installs all features without showing the GUI
Install-Binary -Url $winSdkUrl -Name "winsdksetup.exe" -ArgumentList $argumentList
}
# `winsdksetup.exe /features + /quiet` installs all features without showing the GUI
Install-Binary -Url $winSdkUrl -Name "winsdksetup.exe" -ArgumentList $argumentList
# `wdksetup.exe /features + /quiet` installs all features without showing the GUI
Install-Binary -Url $wdkUrl -Name "wdksetup.exe" -ArgumentList $argumentList

View File

@@ -339,6 +339,7 @@
"Microsoft.VisualStudio.Component.Windows10SDK.18362",
"Microsoft.VisualStudio.Component.Windows10SDK.19041",
"Microsoft.VisualStudio.Component.Windows10SDK.20348",
"Microsoft.VisualStudio.Component.Windows11SDK.22000",
"Microsoft.VisualStudio.Component.WinXP",
"Microsoft.VisualStudio.Component.Workflow",
"Microsoft.VisualStudio.ComponentGroup.Azure.CloudServices",