Kommandoer for å installere jdReplace uten spørsmål, fjerne programmet igjen og gjenkjenne det i distribusjonsverktøy. En kommando vises bare når den er sikker: fra manifestet eller som dokumentert standard for installasjonsteknologien.
Relatert veiledning: Parametre for stille installasjon: MSI, NSIS, Inno · Avinstaller et program via registeret eller PowerShell
Med 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 --silentPer installasjonsfil
64-bit · EXE (NSIS) · Gjeldende bruker
Stille installasjon
download /SEgen mappe
download /S /D=C:\Apps\jdreplace64-bit · EXE (NSIS) · Alle brukere
Stille installasjon
download /SEgen mappe
download /S /D=C:\Apps\jdreplacePowerShell: last ned, kontroller, installer
Laster ned den offisielle filen, kontrollerer SHA256-summen og installerer i stillhet.
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