คำสั่งสำหรับติดตั้ง SourceGear DiffMerge โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id SourceGear.DiffMerge -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SourceGear.DiffMerge -e --silentwinget uninstall --id SourceGear.DiffMerge -e --silentแยกตามตัวติดตั้ง
64 บิต · MSI · ผู้ใช้ทุกคน · en-US
ติดตั้งแบบเงียบ
msiexec /i DiffMerge_4.2.0.697.stable_x64.msi /qn /norestartบันทึกไฟล์ log
msiexec /i DiffMerge_4.2.0.697.stable_x64.msi /qn /norestart /l*v "%TEMP%\sourcegear-diffmerge-install.log"ถอนการติดตั้ง
msiexec /x {F6BEC317-F689-4158-B1F0-F229B794CFBA} /qn /norestart- รหัสผลิตภัณฑ์ MSI
- {F6BEC317-F689-4158-B1F0-F229B794CFBA}
- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F6BEC317-F689-4158-B1F0-F229B794CFBA}
PowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-sourcegear-diffmerge.ps1
$url = 'https://download.sourcegear.com/DiffMerge/4.2.0/DiffMerge_4.2.0.697.stable_x64.msi'
$sha256 = '364C07906BAC332B9FCF36F7DC1B0BB666C8EC4AB66177AA9DA12B9E3DC0C48D'
$file = Join-Path $env:TEMP 'DiffMerge_4.2.0.697.stable_x64.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