sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.59k stars 1.73k forks source link

Installer cmd line argument -uninstall triggers installation #4601

Open Palciny opened 3 days ago

Palciny commented 3 days ago

SumatraPDF version

Describe the bug Based on https://www.sumatrapdfreader.org/docs/Installer-cmd-line-arguments Argument -uninstall : uninstalls SumatraPDF

When I run .\SumatraPDF-prerel-64-install.exe -uninstall It just open installer

To Reproduce Steps to reproduce the behavior:

  1. Download Installer
  2. Open powershell
  3. .\SumatraPDF-prerel-64-install.exe -uninstall
  4. See installation window open

Expected behavior Uninstall windows should open

File that reproduces the problem SumatraPDF-3.5.2-64-install.exe, SumatraPDF-prerel-64-install.exe installer

Screenshots image

GitHubRulesOK commented 3 days ago

yes the doc is perhaps not specific that it is the installed.exe needs the uninstall command so for example

"%programfiles%\sumatrapdf\SumatraPDF.exe" -uninstall

Note for "all users" it may need to elevate to remove system wide registry keys