Melancholy Whiterabbit
Melancholy Whiterabbit

Reputation: 187

inno setup need help about icon group under start menu

I'm using Inno setup. I need to put my program icon in the Start menu under my company group.

My #defines:

MyAppPublisher = publisher
MyAppName = game name

Some example code:

[Icons]
Name: {group}\{#MyAppPublisher}\{#MyAppName}; Filename: {app}\{#MyAppExeName}; IconFilename: {app}\{#MyAppIcon}
Name: {group}\{#MyAppPublisher}\{cm:ProgramOnTheWeb,{#MyAppName}}; Filename: {#MyAppURL}
Name: {group}\{#MyAppPublisher}\{cm:UninstallProgram,{#MyAppName}}; Filename: {uninstallexe}
Name: {commondesktop}\{#MyAppName}; Filename: {app}\{#MyAppExeName}; Tasks: desktopicon

I got

but what I need is

What should I do to get the layout I want?

Upvotes: 4

Views: 2709

Answers (1)

RobeN
RobeN

Reputation: 5456

Set DefaultGroupName like this:

[Setup]
DefaultGroupName={#MyAppPublisher}\{#MyAppName}

[Icons]
Name: {group}\{#MyAppName}; Filename: {app}\{#MyAppExeName}; IconFilename: {app}\{#MyAppIcon}
Name: {group}\{cm:ProgramOnTheWeb,{#MyAppName}}; Filename: {#MyAppURL}
Name: {group}\{cm:UninstallProgram,{#MyAppName}}; Filename: {uninstallexe}

Upvotes: 8

Related Questions