Profile Explorerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Microsoft.ProfileExplorer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.ProfileExplorer -e --silentwinget uninstall --id Microsoft.ProfileExplorer -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
profile_explorer_installer_1.4.0_x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
profile_explorer_installer_1.4.0_x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\profile-explorer"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Profile Explorer_is1
- インストール先フォルダー
- %ProgramFiles%\Profile Explorer
ARM64 · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
profile_explorer_installer_1.4.0_arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
profile_explorer_installer_1.4.0_arm64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\profile-explorer"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Profile Explorer_is1
- インストール先フォルダー
- %ProgramFiles%\Profile Explorer
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-profile-explorer.ps1
$url = 'https://github.com/microsoft/profile-explorer/releases/download/v1.4.0/profile_explorer_installer_1.4.0_x64.exe'
$sha256 = '88232849BB04C235E085C182BAB51092B9AF2D4ED629C658EBA3E682A52FB1A5'
$file = Join-Path $env:TEMP 'profile_explorer_installer_1.4.0_x64.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-profile-explorer.ps1
$url = 'https://github.com/microsoft/profile-explorer/releases/download/v1.4.0/profile_explorer_installer_1.4.0_arm64.exe'
$sha256 = '19789969570C9C89F19E803B8F928FED2602630646AE13AEEF113DBF574E729D'
$file = Join-Path $env:TEMP 'profile_explorer_installer_1.4.0_arm64.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