คำสั่งสำหรับติดตั้ง Vagrant โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id Hashicorp.Vagrant -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Hashicorp.Vagrant -e --silentwinget uninstall --id Hashicorp.Vagrant -e --silentแยกตามตัวติดตั้ง
64 บิต · MSI · ผู้ใช้ทุกคน
ติดตั้งแบบเงียบ
msiexec /i vagrant_2.4.9_windows_amd64.msi /qn /norestartบันทึกไฟล์ log
msiexec /i vagrant_2.4.9_windows_amd64.msi /qn /norestart /l*v "%TEMP%\vagrant-install.log"ถอนการติดตั้ง
msiexec /x {865E13BB-1BDF-4867-9093-18817E1A4CBF} /qn /norestart- รหัสผลิตภัณฑ์ MSI
- {865E13BB-1BDF-4867-9093-18817E1A4CBF}
- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{865E13BB-1BDF-4867-9093-18817E1A4CBF}
- UpgradeCode
- {1A672674-6722-4E3A-9061-8F539A8B0ED6}
32 บิต · MSI · ผู้ใช้ทุกคน
ติดตั้งแบบเงียบ
msiexec /i vagrant_2.4.9_windows_i686.msi /qn /norestartบันทึกไฟล์ log
msiexec /i vagrant_2.4.9_windows_i686.msi /qn /norestart /l*v "%TEMP%\vagrant-install.log"ถอนการติดตั้ง
msiexec /x {900081C6-7578-472A-ADD6-EDADAC54F0EF} /qn /norestart- รหัสผลิตภัณฑ์ MSI
- {900081C6-7578-472A-ADD6-EDADAC54F0EF}
- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{900081C6-7578-472A-ADD6-EDADAC54F0EF}
- UpgradeCode
- {1A672674-6722-4E3A-9061-8F539A8B0ED6}
PowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-vagrant.ps1
$url = 'https://releases.hashicorp.com/vagrant/2.4.9/vagrant_2.4.9_windows_amd64.msi'
$sha256 = '3BDD967927705872A70C7C98E0576AFD5ACD9DD73B527695F4D9DD75DD26CBE3'
$file = Join-Path $env:TEMP 'vagrant_2.4.9_windows_amd64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-vagrant.ps1
$url = 'https://releases.hashicorp.com/vagrant/2.4.9/vagrant_2.4.9_windows_i686.msi'
$sha256 = '6A093C498F4A568D0CE4F6170779FDD55EF5EE1707B33DE1D88B9FFCE6489207'
$file = Join-Path $env:TEMP 'vagrant_2.4.9_windows_i686.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait