PriceCheaperton
PriceCheaperton

Reputation: 5349

How to create a hotkey for desktop icon using Inno Setup

How do I create a shortcut hotkey for an icon in Inno Setup?

The website says add this:

HotKey: ctrl + alt + k

Does anyone have sample code?

Upvotes: 1

Views: 304

Answers (1)

TLama
TLama

Reputation: 76693

The HotKey is an optional parameter for [Icons] section entries, so simply add it to your icon entry e.g. this way:

[Icons]
Name: "{group}\My Program"; Filename: "{app}\MYPROG.EXE"; WorkingDir: "{app}"; \
    HotKey: "ctrl+alt+k"

Upvotes: 1

Related Questions