Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create a Start Menu folder with InnoSetup?

Tags:

inno-setup

I want to create a folder under the Start Menu using InnoSetup. On Windows 7 the start menu should show a highlight and then show my app's folder highlighted after clicking All Programs like I see when installing other apps. If I put multiple items in [icon] like below, will it automatically create a group? Or if not, how do I specify the folder?

This didn't work (taken directly from InnoIDE wizard):

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"

It only created a shortcut to the app, not a folder in the Start Menu.

Edit: It works fine on XP, but on Windows 7 I just see one shortcut when I bring up the start menu and nothing inside All Programs.

like image 907
Edwin Evans Avatar asked Nov 14 '11 05:11

Edwin Evans


2 Answers

Apparently Windows 7 will just not show start folders after you get so many in your "all users" directory. I went to "C:\ProgramData\Microsoft\Windows\Start Menu\Programs" and deleted a few links for software I didn't use often and viola - my missing start group appeared.

like image 55
Mitchell V Avatar answered Nov 05 '22 21:11

Mitchell V


  1. You're basically on the right track. A "folder in the start menu" is indeed a "start menu group", with the InnoSetup variable "{group}".

  2. Please bear in mind that Windows has two different start menus:

    {userstartmenu} & {commonstartmenu}

  3. Here are a couple of good links (besides, of course, the actual InnoSetup documentation):

    • http://www.vincenzo.net/isxkb/index.php?title=Installation_considerations

    • http://www.jrsoftware.org/iskb.php?startmenuorder

PS: Vista and Windows 7 organize shell settings and user preferences completely differently from Windows XP. For example, "SendTo" and "Startup Folder" are now located way under

c:\users\SOMEUSER\AppData\Roaming\Microsoft\Windows\Start Menu\Programs.  
like image 35
paulsm4 Avatar answered Nov 05 '22 21:11

paulsm4