Polecenia do instalacji programu jdReplace bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez winget
PowerShell
winget install --id JakobDev.jdReplace -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id JakobDev.jdReplace -e --silentwinget uninstall --id JakobDev.jdReplace -e --silentWedług instalatora
64-bit · EXE (NSIS) · Bieżący użytkownik
Cicha instalacja
download /SWłasny folder
download /S /D=C:\Apps\jdreplace64-bit · EXE (NSIS) · Wszyscy użytkownicy
Cicha instalacja
download /SWłasny folder
download /S /D=C:\Apps\jdreplacePowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-jdreplace.ps1
$url = 'https://sourceforge.net/projects/jdreplace/files/4.3/jdReplace-4.3-WindowsInstaller.exe/download'
$sha256 = 'C63B10C9022DF74A789DF143A2E7758B974127662192DE99BDFD434537EC36C2'
$file = Join-Path $env:TEMP 'download'
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 install-jdreplace.ps1
$url = 'https://sourceforge.net/projects/jdreplace/files/4.3/jdReplace-4.3-WindowsInstaller.exe/download'
$sha256 = 'C63B10C9022DF74A789DF143A2E7758B974127662192DE99BDFD434537EC36C2'
$file = Join-Path $env:TEMP 'download'
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