Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MSI installer always creates a desktop shortcut #8711

Closed
Vanerio opened this issue Oct 30, 2022 · 7 comments · Fixed by #9380
Closed

MSI installer always creates a desktop shortcut #8711

Vanerio opened this issue Oct 30, 2022 · 7 comments · Fixed by #9380

Comments

@Vanerio
Copy link

Vanerio commented Oct 30, 2022

Steps to Reproduce

  1. Install MSI x64 file in windows 10. Uncheck creating a shortcut in desktop. (it may happen with other options too)
  2. Check desktop icons

Expected Behavior

Desktop shortcut not created.

Actual Behavior

Desktop shortcut is created.

KeePassXC - 2.7.4

Operating System: Windows 10

@Vanerio Vanerio added the bug label Oct 30, 2022
@Vanerio Vanerio changed the title MSI installer always creates a shortcut MSI installer always creates a desktop shortcut Oct 30, 2022
@droidmonkey
Copy link
Member

Can't reproduce this at all, are you sure this is happening from our installer or something setup on your computer specifically. Your other issue seems highly suspect as well, not reproducible.

@philipmgrant
Copy link

I get the same behaviour on Windows 10 with the MSI installer for KeePassXC 2.7.4 and 2.7.3 (I can't remember whether I had this on previous versions).

@Vanerio
Copy link
Author

Vanerio commented Oct 30, 2022

Yes. This happens to me with your installer.

@philipmgrant
Copy link

Looking in my registry, KeePassXC has set a property "DesktopShortcut" with a value of 1: presumably from a previous install.

When I run the installer, the checkbox for "Create Desktop Shortcut" is checked by default, which seems reasonable given the registry entry.

The problem is that manually unchecking that checkbox does not stop the creation of a desktop shortcut for the current install (and nor does it remove or change the value of that registry entry).

I'm guessing that if I deleted the registry key, subsequent installs would work correctly. But the current behaviour seems suboptimal: my choice on a past install means that only by going into the Registry Editor can I ever suppress the creation of the shortcut in future.

@droidmonkey
Copy link
Member

That's a good finding but certainly not unique to 2.7.3. The installer code to add desktop shortcut hasn't changed for years.

@philipmgrant
Copy link

Sure, I definitely wouldn't swear to it not being an issue on previous versions :)

Looks like the WIX config was overhauled in June 2021 - possibly the SetProperty on INSTALLDESKTOPSHORTCUT here is involved? 724f691

@Vanerio
Copy link
Author

Vanerio commented Oct 30, 2022

well seen!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants