Visual Controls ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
winget install --id AcuityBrands.VisualControls -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AcuityBrands.VisualControls -e --silentwinget uninstall --id AcuityBrands.VisualControls -e --silentInstaller အလိုက်
64-bit · ZIP · အသုံးပြုသူအားလုံး
Download.aspx /quiet /norestartmsiexec /x {E1520DAF-BE0F-47FC-A12B-F319F77F2FEC} /qn /norestart- MSI product code
- {e1520daf-be0f-47fc-a12b-f319f77f2fec}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e1520daf-be0f-47fc-a12b-f319f77f2fec}
- UpgradeCode
- {7FD69ED7-722E-4AF3-B48B-81EDE198680E}
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
$url = 'https://www.visual-3d.com/Tools/Download.aspx?file=vc-releases-production'
$sha256 = '79484F59292BA1DB98780D0CA68C31CCE8118519B50D6349833A68A96BCAD54F'
$file = Join-Path $env:TEMP 'Download.aspx'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait