简体   繁体   English

如何使 Inno Setup 在开始菜单中创建单个快捷方式/图标而不是文件夹(程序组)

[英]How to make Inno Setup create single shortcut/icon in Start menu instead of a folder (program group)

I want to make Inno Setup create a single application shortcut/icon in Start menu, instead of placing a folder (aka program group) in Start menu with the icon in it.我想让 Inno Setup 在“开始”菜单中创建一个应用程序快捷方式/图标,而不是在“开始菜单中放置一个带有图标的文件夹(又名程序组)。 May I know how to achieve this?我可以知道如何实现这一目标吗?

I don't want the Start menu to have uninstall shortcut either.我也不希望开始菜单有卸载快捷方式。 To uninstall, I expect the user either right click the exe from Start Menu and select "Uninstall" , or go to program features to uninstall the app.要卸载,我希望用户从“开始”菜单和 select "Uninstall"或 go 中右键单击 exe 来编程功能以卸载应用程序。

To create an icon in the top-level of the Start menu use the *programs constants :要在“开始”菜单的顶层创建图标,请使用*programs常量

[Icons]
Name: "{autoprograms}\My Program"; Filename: "{app}\MyProgram.exe"

Inno Setup does not create any icons in the Start menu on its own, not even the uninstall icon. Inno Setup 不会自行在开始菜单中创建任何图标,甚至卸载图标也不会。 If your installer is creating the uninstaller icon, you must have an explicit entry in the [Icons] section for that.如果您的安装程序正在创建卸载程序图标,则您必须在[Icons]部分中有一个明确的条目。 Remove it.去掉它。

Though Windows 10 won't show such icons anyway:虽然 Windows 10 无论如何都不会显示这样的图标:
Inno Setup Start menu uninstall shortcut is not shown on Windows 10 Windows 10 上未显示 Inno Setup 开始菜单卸载快捷方式

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

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