Nitrocidを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Aptivi.Nitrocid.0.1.0.x -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Aptivi.Nitrocid.0.1.0.x -e --silentwinget uninstall --id Aptivi.Nitrocid.0.1.0.x -e --silentインストーラー別
64ビット · EXE(WiX Burn)
サイレントインストール
nitrocid-win-x64-installer.exe /quiet /norestartARM64 · EXE(WiX Burn)
サイレントインストール
nitrocid-win-arm64-installer.exe /quiet /norestartPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-nitrocid.ps1
$url = 'https://github.com/Aptivi/Nitrocid/releases/download/v0.1.0.88/nitrocid-win-x64-installer.exe'
$sha256 = '88094503CD0A775AD98FB8F8EB2AAED5DDB177B56CF1CB3BCB491B8FEC773EF9'
$file = Join-Path $env:TEMP 'nitrocid-win-x64-installer.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 '/quiet /norestart' -Wait install-nitrocid.ps1
$url = 'https://github.com/Aptivi/Nitrocid/releases/download/v0.1.0.88/nitrocid-win-arm64-installer.exe'
$sha256 = '86E8C7A5DD5F78EFBD030CC2F711F8F5F4085FF8616D4AE2E2CB6FAFE48438D4'
$file = Join-Path $env:TEMP 'nitrocid-win-arm64-installer.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 '/quiet /norestart' -Wait