Kommandoer til at installere PowerSetSetup uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
Med winget
PowerShell
winget install --id BrocatScript.PowerSetSetup -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BrocatScript.PowerSetSetup -e --silentwinget uninstall --id BrocatScript.PowerSetSetup -e --silentPr. installationsfil
64-bit · EXE (Inno Setup)
Lydløs installation
PowerSetSetup_Installer-1.02.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
PowerSetSetup_Installer-1.02.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\powersetsetup"PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
install-powersetsetup.ps1
$url = 'https://github.com/BrocatScript/PowerSetSetup/releases/download/v1.02.2/PowerSetSetup_Installer-1.02.2.exe'
$sha256 = '63F3F8AED617F3A2B6144D7A557AE6B3B72437805AF8CB3A4CB22F08FBD103F7'
$file = Join-Path $env:TEMP 'PowerSetSetup_Installer-1.02.2.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait