- 1 year ago
How to make Inno Setup create single shortcut/icon in Start menu instead of a folder (program group)
To create a single shortcut or icon in the Start menu using Inno Setup instead of a folder (program group), you can modify the [Icons]
section of your Inno Setup script. Here's an example:
ini[Icons]
Name: "{group}\MyApp"; Filename: "{app}\MyApp.exe"
In this example, {group}
represents the program group or folder in the Start menu, and MyApp
is the name of the shortcut or icon that will be created. The Filename
attribute specifies the path to the executable file that the shortcut will point to. Update {app}\MyApp.exe
with the appropriate path to your application's executable file.
By specifying {group}\MyApp
as the name of the icon, the shortcut will be created directly in the Start menu without a separate folder or program group.
You can customize the icon's display name and other properties as needed. Refer to the Inno Setup documentation for further details on available options and additional customization options.
Once you've made the necessary modifications, compile and build your Inno Setup script to generate the installer. When the installer is executed, it will create a single shortcut or icon in the Start menu without using a separate folder or program group.