简体   繁体   English

inno setup需要有关开始菜单下图标组的帮助

[英]inno setup need help about icon group under start menu

I'm using Inno setup. 我正在使用Inno设置。 I need to put my program icon in the Start menu under my company group. 我需要将我的程序图标放在公司组下的“开始”菜单中。

My #defines: 我的#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) 游戏名称(游戏exe)
          • uninstall game name 卸载游戏名称
          • website game name 网站游戏名称

but what I need is 但我需要的是

  • start menu 开始菜单
    • all programs 所有节目
      • publisher 出版者
        • game name 游戏名称
          • game name(game exe) 游戏名称(游戏exe)
          • uninstall game name 卸载游戏名称
          • website game name 网站游戏名称

What should I do to get the layout I want? 我该怎么做才能得到我想要的布局?

Set DefaultGroupName like this: 像这样设置DefaultGroupName

[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}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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