status-im / status-desktop

Status Desktop client made in Nim & QML
https://status.app
Mozilla Public License 2.0
293 stars 78 forks source link

[Windows] Deinstalling the .exe app does not remove shortcuts / task bar pins #2929

Closed anastasiyaig closed 3 years ago

anastasiyaig commented 3 years ago
  1. install the app to windows with .exe
  2. create a shortcut for it on desktop
  3. pin the app to task bar
  4. deinstall the app

As result, shortcut and pin are not removed while the application itself is deleted

Screenshot 2021-07-15 at 17 30 28
pinebit commented 3 years ago

@anastasiyaig I created a PR for this issue, but we cannot fix "pin/unpin" issue. Microsoft made it impossible to pin/unpin items to/from taskbar programmatically. Only fileexplorer.exe process is allowed to do this. Therefore, we cannot automatically unpin Status from taskbar in case a user has it pinned. This is true for the recent Windows 10 versions and I did not want to enable this feature for older Windows version, except for Windows 10 2021.

The new features I added:

  1. Creates program group (start menu) with Launch Status link and Uninstall Status link.
  2. Adds "Launch Status" option when installation is finished.
  3. Uninstall shall remove everything from the user machine (as long as the application was not running in background).