Polecenia do instalacji programu Annotator 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 Snijderlab.Annotator -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Snijderlab.Annotator -e --silentwinget uninstall --id Snijderlab.Annotator -e --silentWedług instalatora
64-bit · EXE (NSIS) · Bieżący użytkownik
Cicha instalacja
Annotator_1.2.1_x64-setup.exe /SWłasny folder
Annotator_1.2.1_x64-setup.exe /S /D=C:\Apps\annotator- Klucz odinstalowania w rejestrze
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Annotator
64-bit · MSI · Wszyscy użytkownicy
Cicha instalacja
msiexec /i Annotator_1.2.1_x64_en-US.msi /qn /norestartZapis dziennika
msiexec /i Annotator_1.2.1_x64_en-US.msi /qn /norestart /l*v "%TEMP%\annotator-install.log"Odinstalowanie
msiexec /x {CD54010F-22D5-4D73-BBF3-D0BEC5AB75CE} /qn /norestart- Kod produktu MSI
- {CD54010F-22D5-4D73-BBF3-D0BEC5AB75CE}
- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CD54010F-22D5-4D73-BBF3-D0BEC5AB75CE}
- UpgradeCode
- {7EEB6BC5-23EA-51E1-B28D-FC9633D3F90D}
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-annotator.ps1
$url = 'https://github.com/snijderlab/annotator/releases/download/v1.2.1/Annotator_1.2.1_x64-setup.exe'
$sha256 = '8E33ECE379158DB40133992A0BF176B67F1C802EDBA409DD28FCE687D2C88452'
$file = Join-Path $env:TEMP 'Annotator_1.2.1_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 install-annotator.ps1
$url = 'https://github.com/snijderlab/annotator/releases/download/v1.2.1/Annotator_1.2.1_x64_en-US.msi'
$sha256 = '0DC50728D0D487B5AAD1B3F73498C2FD9579BDD311DA453385ABE4DEFD5677F6'
$file = Join-Path $env:TEMP 'Annotator_1.2.1_x64_en-US.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait