Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to create a start menu shortcut in NSIS in Windows 11?

I’m looking for a way to add a shortcut of my program to the Windows 11 start menu using NSIS. The previously recommended way seems to not work anymore in Windows 11.

Section /o "Start Menu Shortcut"
CreateShortcut "$SMPROGRAMS\${APPNAME}.lnk" "$INSTDIR\${APPNAME}.exe" "" "$INSTDIR\${ICON}"
SectionEnd

This only creates a new shortcut file in the "AppData\Roaming\Microsoft\Windows\Start Menu\Programs" directory. However the shortcut does not automatically appear in the start menu.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The Start Menu in Windows 11 displays only pinned applications in the initial view. There is no documented way for you to pin your own application. It may appear in the recommended section the first time the application is installed, you don’t have any control over this.

The user can pin your application by opening the Start Menu and clicking on "All apps" or search for you application, and then pin it…

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading