Polecenia do instalacji programu Codey 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 SuperGness.Codey -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SuperGness.Codey -e --silentwinget uninstall --id SuperGness.Codey -e --silentWedług instalatora
64-bit · EXE (NSIS) · Bieżący użytkownik
Cicha instalacja
Codey-1.3.7-windows-x64-setup.exe /SWłasny folder
Codey-1.3.7-windows-x64-setup.exe /S /D=C:\Apps\codey- Klucz odinstalowania w rejestrze
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Codey
- Folder instalacji
- %LocalAppData%\Programs\Codey
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-codey.ps1
$url = 'https://github.com/SuperGness/codey/releases/download/v1.3.7/Codey-1.3.7-windows-x64-setup.exe'
$sha256 = 'B28C521D5E09C8B655EFFC2023482F8D16A5F98AB30FA1A768F1E7CC0C454478'
$file = Join-Path $env:TEMP 'Codey-1.3.7-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 '/S' -Wait