Commands for installing Log Parser 2.2 without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Microsoft.LogParser -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.LogParser -e --silentwinget uninstall --id Microsoft.LogParser -e --silentBy installer
32-bit · MSI · en-US
Silent install
msiexec /i LogParser.msi /qn /norestartWrite a log
msiexec /i LogParser.msi /qn /norestart /l*v "%TEMP%\log-parser-2-2-install.log"Uninstall
msiexec /x {4AC23178-EEBC-4BAF-8CC0-AB15C8897AC9} /qn /norestart- MSI product code
- {4AC23178-EEBC-4BAF-8CC0-AB15C8897AC9}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{4AC23178-EEBC-4BAF-8CC0-AB15C8897AC9}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-log-parser-2-2.ps1
$url = 'https://download.microsoft.com/download/f/f/1/ff1819f9-f702-48a5-bbc7-c9656bc74de8/LogParser.msi'
$sha256 = '7BBFDFB52A8D92A105ED2FCCDF0E44D8FB2ED49F0358390DD921886C14E9E32C'
$file = Join-Path $env:TEMP 'LogParser.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