DSViewを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id DreamSourceLab.DSView -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DreamSourceLab.DSView -e --silentwinget uninstall --id DreamSourceLab.DSView -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
DSView_v1.3.2_x64_setup.exe /Sインストール先を指定
DSView_v1.3.2_x64_setup.exe /S /D=C:\Apps\dsview- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DSView
64ビット · EXE(NSIS) · すべてのユーザー · zh-CN
サイレントインストール
DSView_v1.3.2_x64_setup.exe /Sインストール先を指定
DSView_v1.3.2_x64_setup.exe /S /D=C:\Apps\dsview- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DSView
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-dsview.ps1
$url = 'https://www.dreamsourcelab.com/software/DSView_v1.3.2_x64_setup.exe'
$sha256 = '6109EDFB66EBCCADC3725ACDA6F7C4E73D1A8022FEB7D9774130CC2F51ED6D14'
$file = Join-Path $env:TEMP 'DSView_v1.3.2_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-dsview.ps1
$url = 'https://dreamsourcelab.cn/software/DSView_v1.3.2_x64_setup.exe'
$sha256 = '6109EDFB66EBCCADC3725ACDA6F7C4E73D1A8022FEB7D9774130CC2F51ED6D14'
$file = Join-Path $env:TEMP 'DSView_v1.3.2_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