Custom Cursorを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id BLife.CustomCursor -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BLife.CustomCursor -e --silentwinget uninstall --id BLife.CustomCursor -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
CustomCursor.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
CustomCursor.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\custom-cursor"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C8D6928F-1E7E-4DEC-998A-1B8B86FBBAD2}_is1
32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
CustomCursor.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
CustomCursor.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\custom-cursor"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{C8D6928F-1E7E-4DEC-998A-1B8B86FBBAD2}_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-custom-cursor.ps1
$url = 'https://custom-cursor.com/downloads/1.0.25/CustomCursor.exe'
$sha256 = '3F303F1FD9D94C367D491FAF932226EB987FDF0965ABC3CB390DDB2C19EA44CA'
$file = Join-Path $env:TEMP 'CustomCursor.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 install-custom-cursor.ps1
$url = 'https://custom-cursor.com/downloads/1.0.25/CustomCursor.exe'
$sha256 = '3F303F1FD9D94C367D491FAF932226EB987FDF0965ABC3CB390DDB2C19EA44CA'
$file = Join-Path $env:TEMP 'CustomCursor.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