Windows SDK ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id Microsoft.WindowsSDK.10.0.17134 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WindowsSDK.10.0.17134 -e --silentwinget uninstall --id Microsoft.WindowsSDK.10.0.17134 -e --silentInstaller အလိုက်
32-bit · EXE (WiX Burn) · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
winsdksetup.exe /qဖယ်ရှားခြင်း (Uninstall)
msiexec /x {5F83CCDA-0498-4B97-A298-16A642BF49F2} /qn /norestart- MSI product code
- {5F83CCDA-0498-4B97-A298-16A642BF49F2}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{5F83CCDA-0498-4B97-A298-16A642BF49F2}
- UpgradeCode
- {6D9EE685-40C2-4292-F6D6-F60F00BC91C8}
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-windows-sdk.ps1
$url = 'https://download.microsoft.com/download/5/A/0/5A08CEF4-3EC9-494A-9578-AB687E716C12/windowssdk/winsdksetup.exe'
$sha256 = '93C9DCA3A9F28061A601F3E6B737DEDE40C2C77CFD200ED5CB6EFE2AB0C9D5CC'
$file = Join-Path $env:TEMP 'winsdksetup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/q' -Wait