Commands for installing LeafView 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 sprout2000.LeafView -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id sprout2000.LeafView -e --silentwinget uninstall --id sprout2000.LeafView -e --silentBy installer
64-bit · EXE (NSIS) · Current user · en-US
Silent install
LeafView-4.5.1-win32-x64-installer.exe /SCustom folder
LeafView-4.5.1-win32-x64-installer.exe /S /D=C:\Apps\leafviewUninstall
msiexec /x {8A6068BC-6694-57D2-9871-8AEDABBB31B1} /qn /norestart- MSI product code
- {8A6068BC-6694-57D2-9871-8AEDABBB31B1}
- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8A6068BC-6694-57D2-9871-8AEDABBB31B1}
64-bit · EXE (NSIS) · All users · en-US
Silent install
LeafView-4.5.1-win32-x64-installer.exe /SCustom folder
LeafView-4.5.1-win32-x64-installer.exe /S /D=C:\Apps\leafviewUninstall
msiexec /x {8A6068BC-6694-57D2-9871-8AEDABBB31B1} /qn /norestart- MSI product code
- {8A6068BC-6694-57D2-9871-8AEDABBB31B1}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8A6068BC-6694-57D2-9871-8AEDABBB31B1}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-leafview.ps1
$url = 'https://github.com/sprout2000/leafview/releases/download/v4.5.1/LeafView-4.5.1-win32-x64-installer.exe'
$sha256 = 'E94DCA927E271BC5E5B9E1555A9F8618653419E06E4661DC4A7918D576C2CEEC'
$file = Join-Path $env:TEMP 'LeafView-4.5.1-win32-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 '/S' -Wait install-leafview.ps1
$url = 'https://github.com/sprout2000/leafview/releases/download/v4.5.1/LeafView-4.5.1-win32-x64-installer.exe'
$sha256 = 'E94DCA927E271BC5E5B9E1555A9F8618653419E06E4661DC4A7918D576C2CEEC'
$file = Join-Path $env:TEMP 'LeafView-4.5.1-win32-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 '/S' -Wait