admin管理员组

文章数量:1125931

I've read several old posts including How do I create a Start Menu folder with InnoSetup? None have provided what I think is a good example of how to do this. I am able to create a desktop folder with a link to my application, but, I'd like to create a start menu item (folder) and have it show up on the Windows 11 start menu. After reading the Help file, my setup code currently consists of this:

[Icons]
Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\{#MyAppIcoName}"; Tasks: cfmdesktopicon
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";

[Tasks]
Name: "cfmdesktopicon"; Description: "{cm:CreateDesktopIcon}"; \
    GroupDescription: "{cm:AdditionalIcons}"

When I use the above code, I get a desktop folder, but, I can't find a start menu item. How do I create a start menu item for my application on the Widows 11 start menu?

I've read several old posts including How do I create a Start Menu folder with InnoSetup? None have provided what I think is a good example of how to do this. I am able to create a desktop folder with a link to my application, but, I'd like to create a start menu item (folder) and have it show up on the Windows 11 start menu. After reading the Help file, my setup code currently consists of this:

[Icons]
Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\{#MyAppIcoName}"; Tasks: cfmdesktopicon
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";

[Tasks]
Name: "cfmdesktopicon"; Description: "{cm:CreateDesktopIcon}"; \
    GroupDescription: "{cm:AdditionalIcons}"

When I use the above code, I get a desktop folder, but, I can't find a start menu item. How do I create a start menu item for my application on the Widows 11 start menu?

Share Improve this question edited 2 days ago rrirower asked 2 days ago rrirowerrrirower 4,5924 gold badges30 silver badges51 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I changed {group} to {userstartmenu} and the code now creates a start menu item.

本文标签: windowsInno Setupdefine start menu itemStack Overflow