Kommandon för att installera GhostPen 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 Highercomve.GhostPen -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Highercomve.GhostPen -e --silentwinget uninstall --id Highercomve.GhostPen -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
ghostpen-0.2.12-setup.exe /SEgen mapp
ghostpen-0.2.12-setup.exe /S /D=C:\Apps\ghostpen- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\dev.ghostpen.Oriel
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-ghostpen.ps1
$url = 'https://github.com/highercomve/GhostPen/releases/download/v0.2.12/ghostpen-0.2.12-setup.exe'
$sha256 = 'D097EDAB485B76CC413C5D3937785E1A98CAB199C3F7ED091F1316DE3905AD46'
$file = Join-Path $env:TEMP 'ghostpen-0.2.12-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