Kommandon för att installera alter utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id thechandanbhagat.alter -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id thechandanbhagat.alter -e --silentwinget uninstall --id thechandanbhagat.alter -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare
Tyst installation
alter-1.3.2-windows-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
alter-1.3.2-windows-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\alter"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B7C4D3E2-F1A0-4B5C-9D8E-2F3A1B4C5D6E}_is1
- DisplayVersion
- 1.3.2
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-alter.ps1
$url = 'https://github.com/thechandanbhagat/alter-pm/releases/download/v1.3.2/alter-1.3.2-windows-x64-setup.exe'
$sha256 = '23849AF754D796DC323FE2EF034031E0A36B0A70E9B9A5D8F7F9336A3742AEBA'
$file = Join-Path $env:TEMP 'alter-1.3.2-windows-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait