Skip to content

Fix: Place start menu shortcuts under "Programs" Shell folder instead of root#5658

Open
fidel-ying wants to merge 1 commit into
sumatrapdfreader:masterfrom
fidel-ying:master
Open

Fix: Place start menu shortcuts under "Programs" Shell folder instead of root#5658
fidel-ying wants to merge 1 commit into
sumatrapdfreader:masterfrom
fidel-ying:master

Conversation

@fidel-ying
Copy link
Copy Markdown

Description

This PR fixes an issue where the installer incorrectly creates start menu shortcuts directly in the current user's (or all users') Start Menu root directory, rather than inside the standard "Programs" Shell folder.

In src/Installer.cpp, the shortcut directory array previously contained CSIDL_COMMON_STARTMENU and CSIDL_STARTMENU. This has been updated to use CSIDL_COMMON_PROGRAMS and CSIDL_PROGRAMS to ensure shortcuts are placed neatly within the appropriate subfolder, aligning with Windows user experience standards.

Changes Made

  • src/Installer.cpp:
    • Replaced CSIDL_STARTMENU with CSIDL_PROGRAMS for current user shortcuts.
    • Replaced CSIDL_COMMON_STARTMENU with CSIDL_COMMON_PROGRAMS for all users shortcuts.
    • Updated outdated code comments to match the new variables.

Verification

  • Verified that shortcuts are now correctly created under ...\Start Menu\Programs instead of cluttering the root Start Menu directory during installation.
CSIDL_STARTMENU

Replace incorrect CSIDL_COMMON_STARTMENU/CSIDL_STARTMENU with CSIDL_COMMON_PROGRAMS/CSIDL_PROGRAMS and update comments to reflect the Programs folder path. This ensures shortcuts are created in the Start Menu\Programs locations for both all-users and current-user contexts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant