Príkazy na inštaláciu programu Diff bez otázok, na jeho odinštalovanie a na detekciu v nástrojoch na nasadzovanie. Príkaz je uvedený iba vtedy, keď je presne známy: z manifestu alebo zo zdokumentovaných parametrov technológie inštalátora.
Súvisiaci návod: Parametre tichej inštalácie: MSI, NSIS, Inno Setup · Odinštalovanie programu cez register alebo PowerShell
Cez winget
PowerShell
winget install --id DBAdminX.Diff -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DBAdminX.Diff -e --silentwinget uninstall --id DBAdminX.Diff -e --silentPodľa inštalátora
64-bit · EXE (NSIS) · Aktuálny používateľ · en-US
Tichá inštalácia
Diff.Viewer_1.3.0_x64-setup.exe /SVlastný priečinok
Diff.Viewer_1.3.0_x64-setup.exe /S /D=C:\Apps\diff- Kľúč odinštalovania v registri
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Diff Viewer
- Inštalačný priečinok
- %LocalAppData%\Diff Viewer
PowerShell: stiahnuť, overiť, nainštalovať
Stiahne oficiálny súbor, overí SHA256 a program nainštaluje v tichom režime.
install-diff.ps1
$url = 'https://github.com/ZeroMarker/Diff/releases/download/v1.3.0/Diff.Viewer_1.3.0_x64-setup.exe'
$sha256 = '5BE0A175BD581DAE41BFBDDE4AAFC3067DF8488296CEF364B0A8D70614426348'
$file = Join-Path $env:TEMP 'Diff.Viewer_1.3.0_x64-setup.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 '/S' -Wait