Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSIS CreateShortCut: Shortcuts order on Start menu

I am using NSIS to create an installer for one of my apps, and I am using this code to create shortcuts on the start menu:

;create start-menu items
  CreateDirectory "$SMPROGRAMS\myFolder"
  CreateShortCut "$SMPROGRAMS\myFolder\app.lnk" "$INSTDIR\app.exe" "" "$INSTDIR\app.exe" 0
  CreateShortCut "$SMPROGRAMS\myFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0

It works, but the Uninstaller shortcut on the start menu > myFolder appears before the app.exe shortcut.

Is there a way to control the order of the shortcuts?

like image 300
Meredith Avatar asked Nov 26 '22 12:11

Meredith


1 Answers

Usually the installation order is ignored, Windows arranges them automatically. In older Windows versions the start menu has a context menu option for ordering them alphabetically, but newer versions order them automatically.

like image 113
rmrrm Avatar answered Feb 01 '23 03:02

rmrrm