user3209752
user3209752

Reputation: 649

Inno Setup: How do I change the text used for the shortcut it makes?

I have a main application, MainProgram.exe and another application, Launcher.exe that simply does a little bit of work, launches the main application (MainProgram.exe) and shuts itself down. I don't want my users to know that the launcher is being run.

Using Inno setup I can install both programs into a folder, make a short cut to Launcher.exe and even start Launcher.exe when setup finishes.

But how do I tell Inno setup to set the text of the shortcut or menu item that the user sees to be MainProgram.exe and not Launcher.exe, even though the file actually being pointed to is Launcher.exe (same for the text of the 'Uninstall ...' menu item).

I did check both of these SO questions but neither gave the answer.

Renaming/replacing ShortCut During Inno Setup Installation

Inno Setup Shortcut Issue

I guess I could just swap the filenames round but thay would be just too confusing!

Upvotes: 0

Views: 653

Answers (1)

Ken White
Ken White

Reputation: 125651

Set this up using the [Icons] section in your install script. An example would be:

Name: "{group}\Main Program"; FileName: "{app}\Launcher.exe"; WorkingDir: "{app}"; IconFIleName: "{app}\MainProgram.exe"; Comment: "This is your launcher program in disguise". 

Upvotes: 1

Related Questions