简体   繁体   中英

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

  • start menu
    • all programs
      • game name
        • publisher
          • game name(game exe)
          • uninstall game name
          • website game name

but what I need is

  • start menu
    • all programs
      • publisher
        • game name
          • game name(game exe)
          • uninstall game name
          • website game name

What should I do to get the layout I want?

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}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM